on 08-06-2016 10:27 AM
Hi all,
As part of design , I am printing single header row per page followed by item rows. I have some free text field as part of item row which might flow to many pages.
Now the requirement is if the page contains only the free text data and no new item row, then do not print the header row.
I am trying the below java script in the header row sub form to hide the header row if no item are printed in the current page,but this hides header row in all pages.
Kindly advise.
Regards
Suman Kalyan
Code -
var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
var flag = 0
for (var i=0; i <= fields.length-1; i++) {
if (fields.item(i).name == "IV_ItemNo") {
flag = 1;
}
}
if (flag ==0)
{
this.presence = "hidden";
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
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.