on 05-25-2010 10:31 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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://help.adobe.com/en_US/livecycle/es/FormCalc.pdf
Regards Otto
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.