on 11-29-2009 6:14 PM
Hi,
I'm using conditional breaks, works fine. (for example all rows with "A" in the first column on one page, with "B"" on the second and third page, and so on)
But I want to change a Header field dependent on a value of the first VISIBLE row of each page:
if I am on the first page with the "A" ("A" rows are visible) --> Field X in the Header shuold be "ANGRY"
if I am on the pages with the "B" ("B" rows are visible)--> Field X in the Header shuold be "BETTER"....
if I am on the first page with the "B" ("A" rows areNOT visible) --> Field X in the Header shuold be "BETTER"
thanks in advance!
norbert
Check the following thread for looping over a table -->
Then as specified in the thread in the "for" loop of Table write an "if" condition for the 1st column to check whether it is "A" or "B".
if ( xfa.resolveNode("data.tablesubform.table1.row["+i+"].column1").rawValue == "A" )
{
HeaderField.rawValue = "ANGRY";
}
else if ( xfa.resolveNode("data.tablesubform.table1.row["+i+"].column1").rawValue == "B" )
{
HeaderField.rawValue = "BETTER";
}
I have not checked this but see if it helps.
Chintan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you try to get the page number of the each "first-on-page" row and manipulate your header from here? I guess you know how to script page numbers/ get the page no for the form element. Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
done
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.