Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Subform data not flowing

Former Member
0 Likes
1,183

Hi Expert,

I have developed an adobe form which contain multiple subform. One subform contain line item data and below that there is a subform containing few fields which should come after all line items got printed. But, now it is not working like that, the second subform has been constant irrespective of line item data in first subform. Can you please suggest how to make the subform dynamic so that it will automatically get placed after line item get printed.

I tried to make the subform flowed, but the screen elements are getting misplaced. Please provide help on this issue which will be really appreciated.

Any code snippet will be really helpful.

Thanks for your time and support.

6 REPLIES 6
Read only

Patrick_vN
Active Contributor
0 Likes
1,129

Put both subforms in a third. Make sure the third has a fixed layout and the one with the line items flowed. The other would depend on the content.

Read only

0 Likes
1,129

Hi Patrick,

In below pic, subform1 contain the line item table along with other fields. If i make it flowed all the individual screen elements are getting misplaced. subform2 and subform3 are having positioned layout. Please help in resolving this issue.

Thanks and Regards,

Ajaya Moharana

Read only

0 Likes
1,129

Can you wrap the "Subform2" and "Subform3" in another subform and make that subform as flowed?

Also, try posting Adobe related questions in http://scn.sap.com/community/interactive-forms-by-adobe

-Chandra

Read only

0 Likes
1,129

Hi Chandra,

Thanks for your suggestion. The above issue is resolved by making subform1 as flowed and remaining two form as positioned. But, i have one more issue now that is i want to display a static text based on a table value(Ex: If vbdkr-vbtyp = 'U" then display the text else don't).

Can anybody please suggest the script code needs to be written for this and in which event.

Thanks and Regards,

  Ajaya Moharana

Read only

0 Likes
1,129

var norows = xfa.resolveNodes("SUPERNODE.SUBFM.MYNODE.DATA[*]").length;

for ( var i =0; i < norows; i++) {  

     if( xfa.resolveNode("SUPERNODE.SUBFM.MYNODE.DATA["i"].DELETE").rawValue == "")     {       

          xfa.resolveNode("SUPERNODE.SUBFM.MYNODE.FIELDNAME").presence = "hidden";   

     }

}

try this on initialisation of the subform, change the names accordingly

Read only

0 Likes
1,129

Hi Ansari,

Thanks for your reply.

The above issue has been resolved in driver program itself by checking the value of VBDKR-VBTYP and binding the text field value based on VBTYP value.