1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
<html dir="ltr"><head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META HTTP-EQUIV="assetid" CONTENT="HV01023271"><META NAME="lcid" CONTENT="1033"><title>Editing context in the Structural Editing developer sample form</title><link rel="stylesheet" type="text/css" href="office10.css"><script type="text/javascript" language="Javascript" src="ExpCollapse.js"></script><script type="text/javascript" language="JavaScript" src="inline.js"></script></head><body><p id="ExpandAllLine" class="ExpFav"><a href="#" onclick="ExpandAll()" onkeypress="ExpandAll()" class="DropDown"><img id="picHeader" border="0" src="expandtri.gif" alt="Show All"><span id="ExpandAll">Show All</span></a></p><h1>Editing context in the Structural Editing developer sample form</h1><div class="ofvbanav"><span class="ofvbanavreuse" id="seealso" onclick="toggleList()" onkeypress="toggleList()"></span><span class="ofvbanavreuse" id="specifics" onclick="toggleList()" onkeypress="toggleList()"></span></div><p><i>Editing context</i> in a Microsoft Office InfoPath 2003 form
is the dependence of editing actions on the current selection or insertion point. For example, if a row in the Structural Editing developer sample form Parts table is selected, the buttons for adding or removing parts on the <b class="ui">Part Toolbar</b> custom toolbar are enabled and will insert or remove rows in the Parts table at a position based on the current context. If current selection is not on or within one of the rows in the table,
the buttons are disabled.</p><p><b>Note</b> The <b class="ui">Part Toolbar</b> custom toolbar was created by modifying the default Form toolbar.</p><p>The following are some of the areas in the InfoPath user interface in which editing context
is applicable:</p><ul><li><b class="runinhead">Insert menu</b> Menu items available on the <b class="ui">Insert</b> menu. These typically include menu items for inserting items in a table or section.</li><li><b class="runinhead">Shortcut menu</b> Menu items available on the shortcut menu. These typically include menu items for inserting or removing items in a table, section, or list.</li><li><b class="runinhead">Table menu</b> Menu items available on the <b class="ui">Table</b> menu. These typically include menu items for inserting or removing items in a table.</li><li><b class="runinhead">Custom toolbar</b> Buttons and menu items available on a custom toolbar. These typically include buttons or menu items for inserting or removing items in a table or section, or buttons that call scripting code.</li></ul><p>In the Structural Editing developer sample form, a <a href="#" class="glossary" onclick="AppendPopup(this,'xdrepeatingtable')" onkeypress="AppendPopup(this,'xdrepeatingtable')">repeating table</a> control is used to implement a table that allows users to edit a list of parts in an invoice. When a user chooses to edit the table using the <b class="ui">Insert</b> menu, the <b class="ui">Part Toolbar</b> custom toolbar, or the shortcut menu, InfoPath determines the control being used, and based on the editing actions set in <a href="#" class="glossary" onclick="AppendPopup(this,'xddesignmode')" onkeypress="AppendPopup(this,'xddesignmode')">design mode</a> for that control, performs the appropriate editing of the source XML document.</p><p>The structural editing controls have predetermined editing actions that can be associated with toolbar buttons and menu items in
InfoPath user interface areas. The <b class="ui">Commands</b> dialog box that is available from a structural editing control's <b class="ui">Properties</b> 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 buttons or menu items. In the Parts table of the Structural Editing developer sample form, the following editing actions are enabled:</p><ul><li><b class="runinhead">Insert</b> Enabled on the <b class="ui">Insert</b> menu. Allows a user to insert a new row in the Parts table.</li><li><b class="runinhead">Insert Above</b> Enabled on the shortcut menu and the <b class="ui">Part Toolbar</b> custom toolbar. Allows a user to insert a new row in the Parts table that is above the currently selected row.</li><li><b class="runinhead">Insert Below</b> Enabled on the shortcut menu and the <b class="ui">Part Toolbar</b> custom toolbar. Allows a user to insert a new row in the Parts table that is below the currently selected row.</li><li><b class="runinhead">Remove</b> Enabled on the shortcut menu and the <b class="ui">Part Toolbar</b> custom toolbar. Allows a user to remove the currently selected row.</li></ul><p><b>Note</b> Other editing actions can be used in a repeating table control that
are not implemented in the Structural Editing developer sample form.</p><script type="text/javascript" language="JScript" src="ofvbanl.js"></script><span id="ofVBAISpan" class="ofvbaispan"><iframe id="ofVBAIFrame" frameborder="0" marginheight="0" marginwidth="4" scrolling="auto" width="100%" src="../links/inconEditingContextInSEForm_l.htm"></iframe></span><center><a href="XMLSchemaCopyright_HV01147162.htm">©2003-2004 Microsoft Corporation. All rights reserved.</a>
Permission to copy, display and distribute this document is available at: <a
href="http://r.office.microsoft.com/r/rlidAWSContentRedir?AssetID=XT010988631033&CTT=11&Origin=HV011232471033"
target="_new">http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp</a></center></body></html>
|