-
Hi,
To loop through your nodes, use something like:
IXMLDOMNodeList oNodeList = thisXDocument.DOM.selectNodes(''my:myFields/my:group1/my:group2'');
if (oNodeList.length>0)
{
foreach (IXMLDOMNode oN in oNodeList)
{
if( oN.nodeType == DOMNodeType.NODE_ELEMENT )
{
IXMLDOMNode oField = oN.selectSingleNode(''my:field1'');
...
-
Thanks franck. I was hoping for an easier way out. But I am exploring your suggestion. Can you also tell me the syntax on how to check whether I have reached the last row of the repeating table as I am implementing a FOR or do-until loop? Thanks again!
-
Hi,
What are you trying to do exactly? Tell us more..
Regards,
Franck Dauché
-
Hi Espo,
Have a look at this:http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1057
Regards,
Franck Dauché
-
Hi,
You can loop through your repeating section (group2) using scripting (JScript):
var nodeList = XDocument.DOM.selectNodes(''//my:group1/my:group2'');
if (nodeList.length>0)
{
for (var i=0;i<nodeList.length;i++)
{
var node = nodeList.selectSingleNode(''my:field1'');
XDocument.UI.Alert(node.text);
}
}
Here field1 is one of ...
-
Is the SP Member list accessible from INfoPath - it doesnt show up on a SP dat connector? Is it accessible thorugh a Webservice?
Our app needs user info and more granularity than roles provide - any suggestions?
THX
-
How to change menu for repeating table?
Is it possible at all?
-
I want to go to each field in tha table in the code.
How to get Count of rows and columns?
How I do it?
If somebody have example of code, I'll be glad to get it.
Regards.
-
Hi Fred,
Maybe you could try to adapt to your case a solution posted a few month ago by Rick Severson from MS:
1. OnLoad, submit to SQL to get a new record and autonumer
2. When this returns, the new autonumber will show in the form
3. Have the user fill out the fields and then do a submit to update that
record with the new ...
-
Patrick,
How do you work with retrieve/submit webservice using sql table with a identity field that you need retrieve to IP after submiting data.
Any advise?
Thanx
Fred Darwin Villareal