Hi
I want to get the value of a field for all records in a repeating table. In my current repeating table there are 3 records.
I use the following code to try to retrieve the value of the field for each record but it only ever gets the value of the 1st record in the repeating table:
var Records = XDocument.DOM.selectNodes("/my:myFields/my:Itemisations/my:ItemisationsTable");
for (var i=0; i < Records.length; i++)
{
var blah = Records[i].selectSingleNode("/my:myFields/my:Itemisations/my:ItemisationsTable/my:AllocationDetails/my:PaymentMethod");
//note that the below I have used for debugging to verify the value of the field.....
//FileObject.Write(blah.text + "\t");
}
What am I doing wrong here? It is only ever showing the field value of the 1st record in the repeating table???