-
If your form template is set to full trust security, InfoPath provides the Save() and SaveAs() methods for you to save your form via code. Although InfoPath does not provide a method for you to display the Save As dialog box to the user, it is possible...
-
An often overlooked fact about accessing a secondary data source via code behind an InfoPath form is the need to setup the correct namespaces. Tutorials presented throughout the Internet often presume that the process for setting up namespaces is already...
-
One very useful feature of Microsoft SharePoint is its ability to create and maintain lists that users can leverage to store, view, and share items with other users of the SharePoint site. It is often desirable to be able to view these items and to add...
-
When a form is used in several different countries the need for easy language localization becomes a very necessary goal. By leveraging expression boxes, a secondary data source, and data filtering techniques the ability to easily switch between languages...
-
When filling out a form with several different sections it is very convenient to use tabs to separate these sections. Tabs quickly and easily let the user know what sections are available and have become a vital part of graphical user interfaces. Using...
-
Custom task panes, and their ability to interface with objects and functions in InfoPath, can be very useful. One such example of utilizing this functionality is creating a custom task pane using some simple JavaScript code that dynamically generates...
-
The XDocument.View.SelectNodes() function can be very useful when you need to "jump" and give focus to a certain field on your form with code. However, the SelectNodes() function only allows for the selection of certain controls and there are...
-
When using InfoPath as a front end to a large database it is often convenient to be able to skim through the rows looking at only a few columns, such as a contact name, and then click a button to view the rest of the information. To obtain optimal performance...
-
When using InfoPath as a front end to a large database it is often convenient to be able to skim through the rows looking at only a few columns, such as a contact name, and then click a button to view the rest of the information. You can use an InfoPath...
-
InfoPath is a great tool for collecting and organizing data, but it lacks when it comes to print formatting. For example, when a dynamic table with a large set of rows must be formatted to print across several pages of a report, the column headers should...
-
To make the active field more visible to the form user, you can use conditional formatting, the OnContextChange event, and named node properties. This technique will not work for the following editable controls: Radio Button, Check Box, Bulleted List...
-
There is sometimes the need to pass arguments to InfoPath when opening a form. You either want to switch to a specific view, or maybe want to turn on a diagnostic feature in your code. By leveraging the merge functionality of InfoPath, you can pass simple...
-
When saving InfoPath forms to SharePoint document libraries you might need to limit the forms users see. For example, if you have an established workflow, you might want to limit users to see only those forms that are assigned to them. SharePoint provides...
-
It is common to need two or more list boxes where the choices in one are dependant on the value of another. This is known as a cascading list. A cascade can occur with as few as two levels up to any number of levels. Some common scenarios which require...
-
It is common to need two or more list boxes where the choices in one are dependant on the value of another. This is known as a cascading list. A cascade can occur with as few as two levels up to any number of levels. Some common scenarios which require...