You searched for the word(s): 2
-
We've updated the instructions for this download -- hopefully it will be easier for you to try now: http://www.infopathdev.com/files/folders/examples/entry29401.aspx
-
I believe you could resolve this by setting up a connection to GetListItems to query only the relevant data, but it's a bit tricky from the looks of it.
Perhaps this blog post would help:
http://www.infopathdev.com/blogs/agni/archive/2006/05/15/Query-for-Items-in-SharePoint-Form-Library-Using-GetListItems-Web-Method.aspx
-
I have a Section with some controls and tables in it that I use in multiple views. Right now I have to design it in each view and when I change one, need to make sure the exact changes are made elsewhere. This is simple enough by just copying and pasting, but is there a way to design a section in one view and actually reference it from ...
-
Don't worry about it. This InfoPath stuff can be tough to get used to but I can say from experience that it all starts to come together sooner or later. I'm glad I was able to help.
A Merry Christmas to you too!
-
You have got to be kiddiing me. I have been fooling around with this for hours and the rule works all by itself. Sometimes I can be an idiot. Thanks again for all your help and have a Merry Christmas!
-
Thank you, but all that code does is assign the value "/dfs:myFields/dfs:dataFields/d:Buyers/d:WorkOrders/@ALCOUN " to that field.
I'm pretty sure that if all you want to do is assign the user name to that field you can use a rule the way I described and skip using code altogether.
-
Nevermind. I fixed it. I set this:
xnUserName.SetValue(currentUser);
to this:
xnUserName.SetValue("/dfs:myFields/dfs:dataFields/d:Buyers/d:WorkOrders/@ALCOUN ");
and it worked fine. Thanks a bunch for the help!
-
Sorry to be dense....if my code is like this:
XPathNavigator xn = this.MainDataSource.CreateNavigator();
XPathNavigator xnUserName = xn.SelectSingleNode("/dfs:myFields/dfs:dataFields/d:Buyers/d:WorkOrders/@ALCOUN", this.NamespaceManager);
xnUserName.SetValue(currentUser);
I get build errors:
the name 'CurrentUser' does not ...
-
I have made three forms in InfoPath to use in SharePoint, all of them with the same rules and data connections. Two of them work just fine, but I am having trouble when submitting my form for Travel Expences, which is the largest and most complex of them.
Background:
My form automatically creates a filename when it is submitted the ...
-
Remove the line that uses System.Environment.UserName from your code
Place a button on the form in the designer.
Double-click the button.
Click Rules...
Click Add...
Click Add action...
Select "Set a field's value"
Select the /dfs:myFields/dfs:dataFields/d:Buyers/d:WorkOrders/@ALCOUN field
Click ...