Trying to hide a column but the header reappear on the following pages

Hi all

Here is my little problem, I have a table, a bit normal. What I try to do is the following:

I wish I could hide a full column based on the data. I was actually able to hide a column, but my problem is that when the table breaks into a second page, "header cell" on the second page of the column I hid reappear.

Here's how I did my stash:

-In table Initialize script, I check a condition, and if this condition is met, I'm hiding the header cell.

If (Verif.name4_we.rawValue == "" or Verif.name4_we.isNull) then

HeaderRow.Cell3.presence = "hidden".

endif

-For normal lines, I always check the same exact condition and if the condition is met, I hide the cell.

If (data. Page1.test.Table1.Verif.name4_we. RawValue == ' ' or data. Page1.test.Table1.Verif.name4_we. IsNull) then

.its presence $ = "hidden".

endif

This facility works pretty well if I only have one page:

Before.png
5 is my header name (I know it might be confusing, I'm sorry), it's page 1, column 6, and 7 are in fact hidden.

It's what happens on the following pages:

after.png
As you can see, only the header reappear, you can clearly see that the elements are still hidden, but because the header appear, it looks
as there was a full column.

Does anyone have an idea of what could be my problem?

Thank you very much!
Max

Are you able to change the width of your columns?

This is the last trip, I did:

You must first, double-click the rule to open the palettes of drawing AIDS (or go into the top-> palettes-> drawing AIDS menu) and set the units to Points.

You need tables and a structure, a table which will show real information and a structure that will be imported into your program with the correct width (column DialogResult.Cancel will have a value of 0.001 in the structure). The structure is hidden in the page layout.

In your table initialize script, write something like this:

Set the width of columns by using our structure.//Empty imported have a width of 0.001

var width = Concat (data. Page1.struct.Col1, "pt."

data. Page1.struct.col2, "pt."

data. Page1.struct.col3, "pt."

data. Page1.struct.COL4, "pt."

data. Page1.struct.col5, "pt."

data. Page1.struct.col6, "pt."

data. Page1.struct.col7, "pt."

data. Page1.struct.COL8, "pt."

data. Page1.struct.col9, "pt."

data. Page1.struct.col10, "pt")

Table.columnWidths = width

Explanation: You concatenate each rawValue of your table that contains the width of your columns with "pt" (the unit), in this way, you can set the widths of all columns in a single command (Table.columnWidths = width).

This should resize the entire column, including the header. (It works on my side)

Don't bother to ask if you have any other questions

Max

Tags: Adobe LiveCycle

Similar Questions

Maybe you are looking for

  • extract a part of a picture to manipulate

    I tried to extract a part of a picture so that I can work on only a part of it. First of all, I import an image and use the tools KING to get the global rectangle.  Then I try to use the global rectangle to extract the part of the image that I want t

  • left click of the mouse program

    I have a button on the Panel before the VI. I can set the key Focus on true property node. Then, I want to do a left click of the mouse. Apparently this can be done by calling user32.dll. Is there a better way? Is it possible to help generate the use

  • Comboxbox in the long term, already have the data case not able enter data same if U

    COMBOX Box is used to enter data at run time. "Allow Undefined strings" option enabled. Enter a given: "Abcde", it is stored in the list. Enter the data another: "ABcde" labview takes these data as "Abcde", its not to recognize the case-sensitive cha

  • DVC 170 Rev: 1.2 drivers

    drivers for a DVC 170 Rev: 1.2

  • Upgrade ram HP dv7 3133el

    Hello, I have a dv7 3133el, I have replace the HDD with a ssd, and now I want to increase the ram of 4 GB to 8 GB, wich type of ram I buy? Thank you