-
We have a tool for that. This blog post by Mel has more information which could help you decide if it would be useful to you.
-
Hi, Gerry:
Let's see. Moving an .xsn always upsets it -- when you open in design mode, do you get any warnings about needing to save the template again? If you open it in design mode and then publish the .xsn someplace new (like another location on your machine), can you open the published file? The previously created xml files -- were those ...
-
The field should exsist in the secondary data source -- it will just have a blank value. You should remove this line: newTestDetails.selectSingleNode("my:field11").text = node.selectSingleNode("Diameter").text; as you are setting that after you check for and remove the nil attribute. However, to test to see if a node is ...
-
For fields other than text, the xsi:nil attribute may be on the node -- for example, if you have a main data source element that is of a type decimal and it is NOT marked 'Cannot be blank', the xsi:nil attribute will be present. You'll need to remove it. Try looking at the script on some of the sample forms installed with InfoPath for ...
-
Your Xpath in your script is incorrect.
Looking at the section you currently have commented out:
//while(node = nodes.nextNode())
//{
// var newTestDetails = clone.cloneNode(true);
// XDocument.DOM.selectSingleNode("my:field10").text = node.selectSingleNode("Test_Serial_Number").text;
// ...
-
Can you reply to this post and attach your template? Look under the Options tab to find a place to add a file.
-
You get blank lines? So additional lines are added? Can you verify that your secondary data connection has values for whatever field you using from the GetListItemsStr data source?
-
Hi:
The XPathNavigator gets the form node. We use XPathNavigator.Value to get the value and .SetValue("newValue") to set the value.
So, if your XPathNavigator myGclassLicense were successfully returning a node (instead of null), you'd get the value like myGclassLicense.Value and you'd set the value like ...
-
I am so sorry, I didn't see this post! Attached is a fixed copy, as you probably guessed it was the xpath in your count formula....
-
Just at a quick glance, I'd suggest your xpath to Full_Name is wrong:
node.selectSingleNode("Full_Name")
Should probably be:
node.selectSingleNode("@Full_Name")