I have a requirement to addd a unique identifier with each new repeating group added. The way I am trying to do this is as follows:
var uidIncrementor = XDocument.DOM.selectSingleNode("//my:aspectUniqueID").nodeTypedValue;
uidIncrementor = uidIncrementor + 1;
XDocument.DOM.selectSingleNode("//my:aspectUniqueID").nodeTypedValue = uidIncrementor;
The aspectUniqueID field is an integer and I was rather hoping that the uidIncrementor would be recognized as such. But rather than adding the two integers it is creating a sting with both values in using concat. Something simple here I need to do just can't figure it out. Any guidance would be great.
Thanks