I created an XFA Dynamic form with 4 subforms. I used the instance manager to create repeating line items with auto line item numbering, a quantity field, various drop down lists and total field. I want to reset each subform separately. I used the below script to reset each of the line items fields except the automatically input line item number field.
xfa.host.resetData("TopmostSubform.Page1.OrderSection.OrderItems.Table1.Item.Quantity,
TopmostSubform.Page1.OrderSection.OrderItems.Table1.Item.Assembly,
TopmostSubform.Page1.OrderSection.OrderItems.Table1.Item.PartList
TopmostSubform.Page1.OrderSection.OrderItems.Tabel1.Item.Price")
It works for the most part, but it does not reset any repeated/added fields.
Is there a fix for this?
Thanks.
referenceSyntax.instanceManager.setInstances(1);
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs