Hello All,
I am trying to create an item subform based on the data in the XML, the item subform is reapeatable. I am using the code below to initiate the subform in the initialise event and fields to be displayed are under the ItemBody Subform.
var List = ref(xfa.datasets.data.Invoice.InvoiceDetail.ListOfInvoiceItemDetail)
for i=0 upto List.nodes.length step 1 do
_ItemBody.addInstance(1)
xfa.form.recalculate(1)
endfor
Can anyone suggest the steps to create the subforms dynamically via scripting(Using addinstance).
Regards,
Harry