The reason I needed to find the current member of the group is because when I used this statement in the button code, it always pulled the first instance of d:vw_Fedex_SPOD_N
trackingnum = eventObj.Source.selectsingleNode("/dfs:myFields/dfs:dataFields/d:vw_Fedex_SPOD_N/@TrackingNumber").text;
(Not sure why that didn't get the current instance. Everything I read said it would....)
Now (thanks to you), I have a number on the form that evaluates correctly to the current instance index. The index variable is instance_nbr, and it does evaluate correctly to the current instance of d:vw_Fedex_SPOD_N in the button code.
var nodesDetail = XDocument.DOM.selectNodes("/dfs:myFields/dfs:dataFields/d:vw_Fedex_SPOD_N");
var row = nodesDetail.item(instance_nbr);
trackingnum = row.selectSingleNode("@TrackingNumber").text
But the last statement throws an error - null is null or not an object.
How can I use this index to load the correct instance values into fields?
THANK YOU