on 11-04-2014 11:41 AM
I have below data
POSCODE DESC QUAN
1 A 10
1 A 20
2 B 34
2 B 42
2 B 43
Now the Table above has a conditional Break when the poscode changes. Now Posode 1 will appear on page 1 and Pocode 2 will appear on Page 2.
Now requirement is that I need the print the POSCODE which appears in the table on the specific page , the value should be printed on the Header which exist on the page.
Please help me on this.
Regards,
Rajiv
Hello Rajiv,
Click on the Header field where you want to print the Poscode value. Write the below JavaScript code in the Ready Layout event of this field.
var currpage = xfa.layout.page(this);
var fields = 0;
fields = xfa.layout.pageContent(currpage-1, "field", 0);
for ( i=0; i<= fields.length-1; i++ )
{
if ( fields.item(i).name == "POSCODE" )
// ---- Here I have considered the table field name as POSCODE. Change the field name if it is different in your case.
{
this.rawValue = fields.item(i).rawValue;
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.