on 03-11-2011 5:45 AM
Hello Experts,
I am working on static adobe forms. My requirement iis to hide a subform totally when there is no data in the internal table / field and unhide when there is data.
I have subform table under which there are two subforms(Table Header subform and body row subform 1).
Now if there is a data in one of the field of Bodyrow, I want to display the total table form. Else if the field of the body row is blank i want to hide the table subform totally. So the check should be on the field leven and entire table subform shud be hided. Could anyone please help me in this?
Any help would be really appreciated.
Thanks.
Mahesh
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mahesh,
I have done a similar exmaple for a sdn post just 2 days back using table.
but the approach for the subform based table is also the same.
Consider an example of employee list where empno is a not null field.
in this case if you check at the 1st row if the field empno is null then it makes sense there is no list comming from the backend.
then just hide the subform.
//at the subform which hold theis table, form ready event
if(xfa.resolveNode("form1.AAAA.Green.EmpList.Data[0]").Empno.rawValue == null || xfa.resolveNode("form1.AA.xx.Table1.Row1[0]").Cell1.rawValue == "")
this.presence = "hidden";
if you can send me a test mail, I will reply you with the example file to get a better understanding.
Cheers,
Sai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.