‎2016 Mar 11 2:21 PM
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.
‎2016 Mar 11 5:22 PM
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.
‎2016 Mar 16 4:44 PM
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
‎2016 Mar 16 7:01 PM
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
‎2016 Mar 17 12:53 PM
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
‎2016 Mar 18 5:16 AM
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
‎2016 Mar 22 11:42 AM
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.