-
HiLook at the following link which might help you: http://www.infopathdev.com/forums/thread/1564.aspx. And Just check what is the security level for the form? (in Designer, go to Tools->Form Options->SecurityUser cannot submit a form to SharePoint if the security level is ‘Restricted’ . You need to have ...
-
Great..var objXMLNode;
objXMLNode = XDocument.DOM.selectNodes("//dfs:myFields/dfs:dataFields/d:Service_Receipts/d:SR_Employees");
objXMLNode.removeAll();Thanks for the code. I've started adapting it to my form. I can delete all records in the Employees section using the code above. But when I modify the selectNodes line ...
-
I have an InfoPath 2003 form published to a SharePoint form library. The form has one drop-down control which is populated by a SharePoint list on that same site. (The name of the list is phases.) One user out of several dozen cannot open the form. The message she gets is:
The following DataObject either cannot be ...
-
While you can set values with rules, the most useful method is using code. This will allow you to properly pinpoint the correct row and fields.
Using code you can also get by the limitation about adding/removing rows in a 2DS repeating table. In code you can simply insert a new row node, or remove one. Set up buttons that call into the code to ...
-
I've just discovered that if I bind it to a secondary data source then a user can't insert new items.
The most desirable solution is to set the repeating table values through a rule or code using the secondary datasource. Is this possible?
-
Unfortunately filtering isn't available on secondary data sources. However, you can use conditional formatting which can accomplish the same thing.
-
Please ignore the suggestion for using "var = new ..." that is for JScript, not VBScript. It won't work in your situation because you are using VBScript.
-
Great! Glad to have helped.
-
Hi Akjal,
You want to iterate the data repeat the section in that repeating section right. For this you need to use code like for[/] or [b]foreach as below:
IXMLDOMNodeList outerRepeatingSectionNodeList = thisXDocument.DOM.selectNodes(“Xpath of your outer repeating section node”);
foreach (IXMLDOMNode outerRepeatingSectionNode in ...
-
Hi Akjal,
You want to iterate the data repeat the section in that repeating section right. For this you need to use code like for or foreach as below:
IXMLDOMNodeList outerRepeatingSectionNodeList = thisXDocument.DOM.selectNodes(“Xpath of your outer repeating section node”);
foreach (IXMLDOMNode outerRepeatingSectionNode in ...