cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Print Forms - Dynamically hide the Table columns

Former Member
0 Kudos

Hi all,

In adobe print forms, I have to dynamically hide the table columns.

Example: There are 10 columns, out of which 3 columns filled with values, remaining 7 columns are not filled or null values.

So these 7 columns need to be hidden.

Any inputs highly appreciated.

Thanks & Regards,

Rajesh P

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

Yes you can hide the columns dynamcally.

You just have write in the initialise event of the header field and also in the corresponding table field a code to make the presense "hidden".

Thanks & Regards,

Omkar Mirvankar.

OttoGold
Active Contributor
0 Kudos

Omkar, I like your messages, you prove you can read:)) Keep going, Otto

Former Member
0 Kudos

Thats right .. after reading I decided to simplify things for him so that he wont have to spend more time in understanding.

The motive is to answer the question.

OttoGold
Active Contributor
0 Kudos

Glad you follow me to simplify my answers for the "ordinary" people...

Former Member
0 Kudos

Hi all,

Thanks for the immediate response.

If I could get an example, it will be helpful.

Example: I have a table with 10 fields likewise, F1, F2, F3....F10 (At runtime the no. of records differ)

This table is inside a subform which is of type 'Flowed'.

My requirement is, if the value of the field F3(all the records in that column) is '0' , then the column F3...F10 is hidden with the respective header row.

Thanks

Rajesh P

OttoGold
Active Contributor
0 Kudos

My requirement is, if the value of the field F3(all the records in that column) is '0' , then the column F3...F10 is hidden with the respective header row.

On a field (field = F3), you will place the script like this (outline!):

if (this.rawValue == '0'){

this.parent.F4.presence = "hiden";

...

this.parent.F10.presence = "hiden";

}

Next time you´d better use the scripting guides:

http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_ba...

http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf

Regards Otto

Former Member
0 Kudos

Hi Otto,

I had the same requirement, where i need to hide the columns based on the row header value. I am getting the header value through a structure and item data of the table from the database table. Now, i have used the code which you mentioned but when displaying its getting hide only in the first page. From the next page its again showing the header row but item is getting hidden. So, how to handle this.

Regards,

Mohammed Shukoor.

Former Member
0 Kudos

Hi Abdul,

I sent you the test file.

Have the script on calculate event for the header.

That will do the job for all the subsequent instances of the header.

Cheers,

Sai

Former Member
0 Kudos

hi, can you send me the solution for this problem?

i have to hide some columns dependend from footer-entries and its working on first page but not on following!

thanks!

Nayan
Explorer
0 Kudos

Dear Dietmar,

try to put your logic inside Master Page.

OttoGold
Active Contributor
0 Kudos

1) do you use the table like the MS Office Word table or the table created from subforms and fields?

2) if you use subforms and fields, then you can easily put a script onto every row of the table (the repeated subform) where you set the relevant fields invisible (i mean this.field.presence = "hidden";)

3) if you use tables like the MS office, then I don´t know how to help, I don´t even know if that is possible.

Otto