Hi all,
I was wondering if there was a way of determining whether a given node is a 'Group', or a 'Field', via JScript code.
I've tried several ways to get that information, but none have succeeded.
Since I can actually see whether it is a Group or Field in the InfoPath GUI, I would figure there is a way of getting that information with code.
I tried:
var Node = XDocument.DOM.selectSingleNode("/my:myFields");
which sets Node to the group in the dataSource, and then I try to get its Type with:
XDocument.UI.Alert( Node.nodeType )
but this returns the value 1.
Likewise, if I access a field in the dataSource
var Node = XDocument.DOM.selectSingleNode("/my:myFields/my:myField1");
and get its nodeType, it returns 1 as well.
I believe the 1 that is being returned, actually represents that it is an element,
but is there a way of knowing whether a node is set to a field or group?
Any help would be welcomed,
Thanks,
- Reg.