Highlighted

Unable to read the data

Avatar

Guest

11-07-2008

I am unable to read the data from dataconnection (from schema).

Here Equipment aggregate is repeated mulitple times. Under the Equipment there is another element Status for which I need to read the value.



I am doing like this.

xfa.data.PurchaseOrderForm.POData.Equipment[i].Status.value;



But it is always blank or null.



Please help where I am doing wrong.



Thanks for your help.

Replies

Highlighted

pguerett

14-07-2008

The issue is the i. You will need to use the command like this that will pass a string to represent the object.



xfa.resolveNode("xfa.data.PurchaseOrderForm.POData.Equipment[" + i + "].Status").value



Now the string will reolve out the value of i then the object will be resolved.