InfoPath 2007 Frequently Asked Questions (FAQ)

Frequently Asked Questions (FAQ) about InfoPath 2007 and Forms Server 2007.

ADVERTISEMENTS

Questions

  1. Which InfoPath 2007 features are not supported in InfoPath 2003?
  2. What are browser-compatible forms?
  3. Can I use browser-compatible forms without installing Microsoft Office SharePoint Server 2007 (MOSS)?
  4. What is Forms Server?
  5. What do I need to be able to run Forms Server?
  6. How do I make InfoPath 2007 forms to be compatible with InfoPath 2003?
  7. How do I retrieve the value of an InfoPath field through code?
  8. How do I set the value of an InfoPath field through code?
  9. How do I call a web service through code?

Answers

  1. Which InfoPath 2007 features are not supported in InfoPath 2003?

    A brief overview can be found here: InfoPath 2007 features that are unavailable in InfoPath 2003.

  2. What are browser-compatible forms?

    InfoPath 2007 introduced the possibility to fill out InfoPath forms by using a browser such as Internet Explorer, Firefox, Netscape, or Safari. These types of forms are called InfoPath 2007 browser-compatible forms. For a complete list of browsers that can be used to fill out InfoPath forms, see Plan browser support (Office SharePoint Server).

    For more information see Introduction to browser-compatible form templates.

  3. Can I use browser-compatible forms without installing Microsoft Office SharePoint Server 2007 (MOSS)?

    Yes, you can, but you will have to install Forms Server to be able to run browser-compatible forms.

  4. What is Forms Server?

    Forms Server is the extracted version of Forms Services that comes with Microsoft Office SharePoint Server 2007 (MOSS). It is sold and can be used separately from MOSS to run and fill out InfoPath 2007 browser-compatible forms.

    For more information see Introduction to Office Forms Server.

  5. What do I need to be able to run Forms Server?

    Windows SharePoint Services 3.0, which you can download, install, and use free of charge.

  6. How do I make InfoPath 2007 forms compatible with InfoPath 2003?

    1. Open the form template that you want to save in InfoPath 2003 format.
    2. On the File menu, click Save As.
    3. In the Save as type list, click InfoPath 2003 Form Template.
    4. Click Save.
    For more information see Design a form template that works with InfoPath 2003 [link unavailable] in the InfoPath 2007 Help and How-to.
  7. How do I retrieve the value of an InfoPath field through code?

    In C# code:

    XPathNavigator nav = MainDataSource.CreateNavigator();
    string fieldValue = nav.SelectSingleNode("//my:field1", NamespaceManager).Value;

    In VB.NET code:

    Dim nav As XPathNavigator = MainDataSource.CreateNavigator()
    Dim fieldValue As String = nav.SelectSingleNode("//my:field1", NamespaceManager).Value
  8. How do I set the value of an InfoPath field through code?

    In C# code:

    XPathNavigator nav = MainDataSource.CreateNavigator();
    nav.SelectSingleNode("//my:field1", NamespaceManager).SetValue("myValue");

    In VB.NET code:

    Dim nav As XPathNavigator = MainDataSource.CreateNavigator()
    nav.SelectSingleNode("//my:field1", NamespaceManager).SetValue("myValue")
  9. How do I call a web service through code?

    In C# code:

    // Create an XPathNavigator object to navigate the data source of the web service
    XPathNavigator nav = DataSources["HelloWorld"].CreateNavigator();

    // Set the value of the parameter to pass to the web service
    nav.SelectSingleNode("//dfs:queryFields/tns:HelloWorld/tns:name", NamespaceManager).SetValue("myValue");

    // Call the web service
    DataSources["HelloWorld"].QueryConnection.Execute();

    // Retrieve the results returned by the web service
    string results = nav.SelectSingleNode("//dfs:dataFields/tns:HelloWorldResponse/tns:HelloWorldResult", NamespaceManager).Value;

    where HelloWorld is the name of a data connection to a web service.

    In VB.NET code:

    ' Create an XPathNavigator object to navigate the data source of the web service
    Dim nav As XPathNavigator = DataSources("HelloWorld").CreateNavigator()

    ' Set the value of the parameter to pass to the web service
    nav.SelectSingleNode("//dfs:queryFields/tns:HelloWorld/tns:name", NamespaceManager).SetValue("myValue")

    ' Call the web service
    DataSources("HelloWorld").QueryConnection.Execute()

    ' Retrieve the results returned by the web service
    Dim results As String = nav.SelectSingleNode("//dfs:dataFields/tns:HelloWorldResponse/tns:HelloWorldResult", NamespaceManager).Value

    where HelloWorld is the name of a data connection to a web service.

 
 Subscribe for updates via RSS or Email

Copyright: This article may not be used on web sites (whether personal or otherwise), copied, disseminated, altered, printed, published, broadcasted, or reproduced in any way without an expressed written consent of S.Y.M. Wong-A-Ton. The techniques demonstrated in this article may be used within any Microsoft InfoPath project. This article is provided without any warranties. Copyright for this article is non-transferrable and remains with the author, S.Y.M. Wong-A-Ton.

InfoPath 2013 Cookbook: 121 Codeless Recipes for Beginners
InfoPath 2013 Cookbook 2: 121 Codeless Recipes for SharePoint 2013
InfoPath 2010 Cookbook: 101 Codeless Recipes for Beginners
InfoPath 2010 Cookbook 2: 101 Codeless Recipes for SharePoint 2010
InfoPath 2010 Cookbook 3: 101 Code Recipes for C# Developers
InfoPath 2010 Cookbook 5: Integrating InfoPath with Excel and Excel Services


Related InfoPath Articles:

ADVERTISEMENTS

InfoPath 2013 Cookbook: 121 Codeless Recipes for Beginners

InfoPath 2013 Cookbook 2: 121 Codeless Recipes for SharePoint 2013

InfoPath 2010 Cookbook: 101 Codeless Recipes for Beginners

InfoPath 2010 Cookbook 2: 101 Codeless Recipes for SharePoint 2010

InfoPath 2010 Cookbook 3: 101 Code Recipes for C# Developers

InfoPath 2010 Cookbook 4: 101 Code Recipes for VB Developers

InfoPath 2010 Cookbook 5: Integrating InfoPath with Excel and Excel Services