-
If you want a version history of your templates, then save them in another SharePoint library for storage. You know how when you publish, it always makes you save it first? Well, where are you saving it? Probably on your file system or a shared drive, right? Instead of that, save it to a SharePoint doc library along with ...
-
Where is the data coming from, and where is this filter that you're referring to? If you're referring to a SharePoint list with 100+ items, then simply create a view only showing the most recent 100 items and create a data connection accordingly (for a rich client form). For a browser-enabled form, create a custom view that ...
-
The Forms Server URL itself defines where you return upon closing. If you open a form and look at the URL, go to the Source attribute, and look at that URL. That portion of the URL is auto-generated based on your entry point. If you click on the form from a certain view or location, then that's what gets put into the Souce ...
-
Sometimes a sample simplifies things. I've attached a zip with code and a form -- right click the link in the heading of the reply and select save as to save locally. Open the xsn in design mode --you'll need to repoint it to the source code folder under Tools, Form Options, Programming....
-
Perhaps if I explain what I am trying to do a little better this will make more sense.
I have an InfoPath form that I want to have two sections. The first section contains text boxes that a user can input a name and address. The second section contains text and Expression Boxes that take the name and address and put them in certain sections of ...
-
Your second if statement is simply verifying the existance of the showInput node. Is that what you want? Or do you want to know if the node is blank? As far as setting values in the node, try:
XPathNavigator showInputControl = MainDataSource.CreateNavigator();if (showInputControl != null)
{ XPathNavigator showInput = ...
-
This is my code:XPathNavigator showInputControl = MainDataSource.CreateNavigator();if (showInputControl != null)
{
XPathNavigator showInput = showInputControl.SelectSingleNode("/my:myFields/my:showInput", NamespaceManager);if (showInput != null)
{showInputControl.Select("/my:myFields/my:showInput").InnerXml = ...
-
Thank you for the input.
On this line:
navigator.SelectSingleNode("/my:myFields/my:showInput").InnerXml = "False";
I get the error:
XPathException was unhandled by user code
Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function.
Any guidance as far as what this means? Thanks.
-
Hi RRaseley and welcome,
You can achieve this with the following piece of code:
XPathNavigator navigator = this.MainDataSource.CreateNavigator();
if(Some Condition == true)
{
navigator.selectSingleNode("/my:myFields/my:ShowInput").InnerXml = "True";
}
else{
...
-
I have an InfoPath form that has sections that are either hidden or not hidden based upon a boolean variable that I created called "ShowInput". I want to modify that variable from "TRUE" to "FALSE" as part of my custom Submit code. I am writing this in C#, how would I do this?