Use our Google Custom Search for best site search results.
Search
-
Jonesie,
If you're not afraid of writing a little code, you can set the field's value with one line of C# in the form's onload event:
MainDataSource.CreateNavigator().SelectSingleNode("//[xpath expression here]").SetValue(Application.User.UserName);
This is what I do, but with the code behind the form, it requires a little ...
-
I assume this is not possible but want to make sure before I give up:
I want to automatically submit a form every five minutes while it's open in the browser. I do this to maintain a "lock" on the form, which is actually rendered as a secondary data source in another form.
I was hoping to use System.Timers, but I can't access ...
-
Thanks for the reply. Replacing buttons with images does not work in browser forms, though.
-
I'm trying to use images as navigational tools (wrapping images in hyperlinks to other forms).
Without going into much detail about why I'm doing this, well, suffice to say that I am. I have it working really well - except Forms Services always add a "target=_blank" attribute to the links.
This isn't something the client ...
-
Amazing. Again, thanks.
If anyone has a list of behavioral idiosyncrasies between client and web versions of forms, here's another: xml files as secondary data sources do not contain the XML declaration or processing instructions in the InfoPath client, but they do in the browser.
-
It did not work for me in Forms Server. Unfortunately, I don't have access to the server logs, so I can't do much debugging.
-
Wow. That works. Suffice to say I would never have figured that out. Thank you so much, David!
-
It turns out that "Only XPathNavigators from a DataObject are allowed" to use Submit Data methods. Great idea, though.
-
David,
That's correct. For whatever reason, CreateNavigator() positions itself at the document element.
The parameterized version of execute allows you to use a data connection to submit data other than the form's main data source.
I will try option #2 and get back. Thanks for the reply.
Chris
-
I am new to C# and InfoPath 2007 but pretty experienced with IP2003 and JScript.
One thing I often did in IP2003 was link two forms together programatically - i.e., if a user changes a field in Form X, a field in Form Y was also changed. To do this, I would use two data connections: one to grab Form Y from SharePoint and another to re-submit Form ...