I am working on a template that has a table with rows added at the run time. I have to attach fields in each row to an XML tag and child tags. I am using SOM Expression to identify each field in the run time. I have written the code to go in a loop and bind the field at run time but it was not working. So I am just kind of trying out for binding one field using the SOM Expression.
This code was written in the initialize event of the TextField2 with Java Script as the scripting language.
var fieldPath = xfa.resolveNode("xfa.template.Message.Page1.Table1.Row1[" + 0 +"].TextField2");
fieldPath.bind.ref = "$record.COMMAND.sendApplicationInformationRequest.formNumber";
I also tried by changing the reference this way but no luck..
var fieldPath = xfa.resolveNode("xfa.template.Message.Page1.Table1.Row1[" + 0+ "].TextField2");
Can any one help on this?
Rather than write script use the InstanceManager to add/delete rows.
I have attached a sample dynamic PDF that uses InstanceManager to enable row addtion/deletion. I have included the embedded schema and an XML instance to test in Preview PDF.
Thank you for your response..
I could not able to open your attachments.. They both say QUEUED..