-
Catching this up to our email thread -- the namespaces are incorrect in the xpath. If you don't have IP 2007 with its wonderful Copy XPath capability, you can save your form as source files and look at template.xml in a text editor to see what the correct namespaces are for your xpath.
-
I'm a lazy girl, so I save my forms as source files, then open up manifest.xsf with a text editor and use find and replace to replace my server name in my data connections. You'll be looking for xsf:adoAdapter and in the connection string property, you'll see Data Source=OldDataSource. You can change to NewDataSource and save. Open ...
-
Have you added rules to the button? To add rules to a button, you can right click the button while in design mode and select Button Properties. In the properties window is another button that says Rules. Click that. Then click Add to add a rule. Give the rule a name. Then, add an action by clicking Add Action. Under Action, select Query using ...
-
Hi, and welcome --
Is your form based off your database? That is, when you created it, did you select 'Database' under Based on in the Design a new window?
If so, your data source will show query fields and data fields. You can pull over the query fields for first and last name, and then add a button that has for a rule 'Query using ...
-
Under Tools / Default Values, find the group you want multiple rows for. Right click and select to add another. You will then default to 5 (or however many you add) when the form opens.
-
Actually, Google University isn't that bad -- working from code samples can definitely get you started. As you have time, may I suggest the C# tutorials on MSDN? Located here, they may help you with the basics, so that the InfoPath code samples you find and adapt won't be as perplexing.
-
Hi -- I'm wondering if it is because you are calling your DeleteFirstEmptyItemMemory() method inside your for each loop. It is set to delete the first node, whether it is blank or not, so I'd imagine it would delete a row each time you went through the loop.... might be safer to do something like this:
XPathNavigator itemNav = ...
-
Post back with questions as they arise. Understanding what the code is doing is the first step to writing your own!
-
Well, let's try this -- append the cloned node, then, since that will be the new last node in the ApplicationAccess group, we'll grab that and set the value. So this:
newNode.SelectSingleNode("@Applications", this.NamespaceManager).SetValue(auxDomNode.Value);
parent.AppendChild(newNode);
To ...
-
That is kind of annoying -- this is something I've done in IP 2003 Object Model, and my rules fire when I append first. In the test form I was using for the original code I posted, the behavior is as you report, which would mean a change between IP 2003 and 2007.
Where is your field that is being set located in your data structure? Do you ...