on 10-26-2010 3:28 PM
Help.
I have 6 columns in a table .
I need to write a script in adobe form to check the value of the 5th column
if 5th column = 'T' then I need merge 1th,2th,3th columns
If 5th column = ' ' then do nothing
I write JavaScript
data.#subform[0].TABLE.DATA::initialize
if ( this.COLUMN5.rawValue == "T" )
{
this.COLUMN1.colSpan = "3" ;
}
The cell's merged but not correct. In the row with column = 'T' appear the new columns.
try same thing in DOCREADY event. bcoz u r changing the form alignment. else do one more thing is hide the three cells and
increase the 5th cell width. but if u want to change alignment of form u should write in DOC READY event.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well you are on right track. Just use the code in your first post and second post for complete solution.
I tried with a simple table with 1 row and below is the JavaScript code I used in the initialize event of Subform:-
Table1.Row1.Cell5.rawValue = "T";
if(Table1.Row1.Cell5.rawValue == "T")
{
Table1.Row1.Cell1.colSpan = "3" ;
Table1.Row1.Cell2.presence = "hidden";
Table1.Row1.Cell3.presence = "hidden";
}
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.