Another super-helpful place to get help on InfoPath

Check out this location.   Seems to be pretty active    Some people who I’m in contact with are very diligent about responding to questions posted here, and it looks like a great resource to get your sticky InfoPath questions answered. Thanks, Tim


Tips and Tricks for Tuning Forms Services Performance

Folks, I’m hearing a lot of issues about people having trouble getting InfoPath 2007 forms published to Forms Services on MOSS 2007 to run well.   People complain that the rendering and roundtripping operations just take too darn long.   There is some guidance available on how to build performant forms for the Rich Client (, and…


Copying Data from a Secondary Datasource to a Child Table in a Main Datasource

This code sample documents a block of VB.Net code I had to write recently for retrieving a block of data from a secondary datasource, and then copying that data into a child table of a dataset in the main datasource.    I’ve copied it over as is for my benefit as much as yours – I lost…


XPathNavigator Control in VB.NET

VB.NET and probably the other managed code languages uses a new syntax for specifying nodes and traversing XML in a form.   I don’t claim to have a firm grasp on this, I only know what works.   Let’s say you’ve got a field in your form whose value you set via rules or defaults, like a datetime field.  …


Custom Task Panes in InfoPath 2007 Using VB.NET

Folks, Just starting to get involved in dealing with VB.NET and VSTA in InfoPath 2007.   A lot of what I’ve taken for granted in InfoPath 2003 and JScript no longer applies.   Take Custom Task Panes for example.   A neat idea, and super-useful.   Doesn’t work the same way in InfoPath 2007.   Well some of it does.   For…


New Control for Picking People out of the GAL

From   This basically provides a control for GAL selection that supercedes my custom code that appears earlier in this blog.   From what I’m reading, this is strictly a Forms Services thing from MOSS 2007.  Haven’t had a chance to play with it but looks to be a godsend.    The Contact Selector Control  [This topic is pre-release documentation and…


Retrieving URL Path With No Code

Recent request from a customer: What we need to be able to do is to somehow programmatically access, in infopath, the sharepoint form library folder name from which the form was opened. Cool way to get this done (from Scott Heim’s inexhaustible code sample archive): substring-before(substring-after(/processing-instruction(), ‘href=”‘), ‘”‘)   Used as the default value in…


InfoPath 2007 No Code UserName Retrieval

Just posted on using C# and the new object model in InfoPath 2007 to retrieve the current user.   I have 3 other posts that deal with this issue as well.  Believe it or not, the product team has actually addressed this in with a no code solution in InfoPath 2007.  Follow these steps to see…


Getting Current User in InfoPath 2007 via C#

Folks, Got a little code sample from a fellow watcher of Pashman’s Goldmine (thanks Huseyin) on how to retreive the username of the current user via C# code.  Since all code samples are useful, I’ve posted it below: public void FormEvents_Loading(object sender, LoadingEventArgs e) { string xpath = “/my:oneriForm/my:nameTxt”; string userName1; XPathNavigator field1 = MainDataSource.CreateNavigator().SelectSingleNode(xpath,…


Programmatically Launching Another Form from Within a Form

Application.XDocuments.NewFromSolution(urlToXsnFile) or Application.XDocuments.Open(urlToXmlFile)   Your form will need to require full trust in order to use either of these OM methods.   Keep it simple, right? Tim