Expand my Community achievements bar.

Iterate through XML

Avatar

Former Community Member
I have a form that has a dataconnection with XSD. In my XML there can be more that one secondary owners and I need to display them all separated by commas. here is my code:



var str = "";



for(var i=0; i<$record.deliveringAccount.delSecondaryOwners.resolveNode"(delOwner[*]").length; i++){

str += $record.deliveringAccount.delSecondaryOwners.resolveNode("delOwner[i]").firstName.value + ",";

}

this.rawValue = str;



It does not work. What am I doing wrong here?
0 Replies