Structural editing in the Structural Editing developer sample form

Microsoft Office InfoPath

Show All Show All

Structural editing in the Structural Editing developer sample form

Structural editing in a Microsoft Office InfoPath 2003 form occurs when a user is filling out a form, and the type of editing actions that the user performs results in a structural change to the form's underlying XML document. Structural changes involve inserting or removing elements and attributes in the underlying XML document that the form is bound to. For example, in the Structural Editing developer sample form, structural changes are made when a user inserts or removes items from the Parts table or the Notes bulleted list.

Structural editing controls have predetermined editing actions that can be associated with toolbar buttons and menu items in InfoPath user interface areas. The Commands dialog box that is available from a structural editing control's Properties dialog box allows you to choose which editing actions of the control are available to users, which user interface area they appear in, and the labels that are used for the associated button or menu items. The structural editing controls used in this sample form include a repeating table and a bulleted list.

Structural editing can be implemented by using an InfoPath structural editing control, or by using scripting code to directly manipulate the data contained in the form's underlying XML document. If the form includes a control such as a repeating section that is bound to the modified (inserted or deleted) data, the data displayed in the form will be updated automatically.

ShowUsing controls for structural editing

ShowUsing script for structural editing