Implementing Business Logic with Script in the Web Service Purchase Order and Invoice Sample Forms [InfoPath 2003 SDK Documentation]

Applies to:

Microsoft Office InfoPath 2003

Microsoft Office InfoPath 2003 Service Pack 1

The Microsoft Office InfoPath Web Service Purchase Order and Invoice developer sample forms use custom task panes to display information and provide user interface controls. The Purchase Order sample form uses a custom task pane to display a catalog of the products available to be ordered, and both forms display a list that tracks the current stage of the form's workflow processing.

Much of the functionality in the Catalog section of the task pane in the Purchase Order form is the same or similar to that of the custom task pane used in the Information Lookup developer sample form. As with the Information Lookup sample form, the Web Service Purchase Order form uses the LoadCatalog custom function defined in the form's script file to dynamically create the list of available products. Another script call to the InsertCatalogItem function from the task pane file (taskpane.htm) allows the Catalog section of the task pane to insert items from the catalog into the order form when a user double-clicks the item. For a detailed discussion of the implementation of these functions in a custom task pane, see Custom Task Panes in the Information Lookup Developer Sample Form.

The Web Service Purchase Order and Invoice sample forms also share some of the same functionality with the BizTalk sample forms. For more information, see the sections on "Calculating and recalculating product totals" and "Displaying the current workflow stage" in Implementing Business Logic with Script in the BizTalk Sample Forms.

See Also | Custom Task Panes in the Information Lookup Developer Sample Form | Implementing Business Logic with Script in the BizTalk Sample Forms