Header DisplayThe following figures shows the structure browser header section in view mode: This table defines the header, sub header, and table filter:
The following is a URL example for the header and Table Filter display: common/ emxIndentedTable.jsp?header=emxEngineeringCentral.part.eBOM&sub Header=emxEngineeringCentral.part.AllLevels&tableMenu=ENCEBOMVi ews Page ToolbarThe page toolbar in the structure browser header is the regular toolbar shown using the URL parameter toolbar. The structure browser adds a toolbar button Mode (after the Actions menu), if one is defined in the toolbar menu. If the structure browser displays non-object based data, Object Compare is not supported. The following shows the page toolbar's default display: You can include the generic delete command, AEFGenericDelete, as part of a toolbar or Actions menu in a toolbar. This command provides delete functionality for the table. In Edit mode, this command immediately deletes the selected nodes (after confirmation received from user), it does not mark the rows for deletion. You can also include the AEFGenericDeleteRMB command as part of a right-mouse-button menu.
In addition, column sorting is disabled if there are any pending edits (user must Apply edits before sorting). You can also define a custom toolbar filter as defined in Filter for a Structure Browser Page that displays beneath the page toolbar. You can define separate toolbars for Edit and View mode of the structure browser using the Mode setting on the toolbar. When the Mode=view setting is defined for the toolbar, that toolbar only shows in View mode. When Mode=edit, that toolbar only shows in Edit mode. If the Mode setting is not defined, the toolbar shows in both Edit and View mode. See Menus and Toolbars for more details. For example, this sample URL shows 3 toolbars being passed to the structure browser: ${COMMON_DIR}/emxIndentedTable.jsp?table=part_list
&program=myJPO:myFunc&relationship=myrelation&toolbar=toolbar1,
toolbar2,toolbar3&editLink=true
In this URL, toolbar1 could be set with Mode=view; toolbar2 with Mode=edit, and toolbar3 with no mode setting defined. In View mode, toolbar1 and toolbar3 are displayed; in Edit mode, toolbar2 and toolbar3 are displayed. In addition, you can apply the Mode setting to submenus and commands within menus. In this case, the command is enabled or disabled depending on the current structure browser mode. For example, you can add the Mode=edit setting defined to a submenu for an existing menu. In View mode, the user can see but not access that submenu; in Edit mode, the user can access it. ENOVIA Business Process Services Supported ActionsIn addition to the Actions implemented specifically for the custom structure browser page, ENOVIA Business Process Services provides commands for Add To Selected and Remove Selected that can be included in an Actions menu. These commands are available to the user if one or more items are selected in the structure. Add To Selected Actions Menu Command For the Add To Selected command, you need to use a direct processing page or a custom search dialog (see Configurable Search Webform) to locate and connect the child objects. The Add To Selected command uses the emxTableRowId parameter to send the Object Id, Rel Id and parent Object ID of the selected row to the custom implementation. If a custom processing page is used, it must return XML code using this XML message format: <mxRoot> <action><![CDATA[<%= action %>]]></action> <message><![CDATA[<%= msg %>]]></message> <data status="committed OR pending"> <item oid="1234.6354.3843.8237" relId="1234.6354.3843.8237" direction="from" relType="relationship_EBOM"> <column name="Find Number">123</column> <column name="Description" actual="ActualValue">DisplayValue </column> </item> <item oid="5234.7354.6843.9237" relId="4134.8354.3682.1237" direction="from" relType="relationship_SubstitutePart"> <column name="Find Number">234</column> <column name="Description" actual="ActualValue">DisplayValue </column> </item> <item oid="8664.2343.7723.9823" relId="8234.5354.7843.4237" direction="to" relType="relationship_AlternatePart"> <column name="Find Number">567</column> <column name="Description" actual="ActualValue">DisplayValue </column> </item> </data> </mxRoot> In this XML message:
If using a custom search dialog: When the user clicks Done after selecting one or more objects from the result set, the custom code should call the editableTable.addToSelected(String XML) function to refresh the structure browser page. If the user had selected multiple rows, the returned node(s) are added to all of the selected nodes. When the Add To Selected functionality receives the XML message with
an add action, it performs these steps:
You can only use this option to add a child node to a selected node; you cannot use it to add a root node to the structure. If viewing the structure browser in flat table mode, the Add To option cannot be used. Remove Selected Actions Menu Command You configure the Remove Selected functionality the same way as the Add To Selected feature, except the return action listed in the XML message is remove and there is no need for a data section. <mxRoot> <action><![CDATA[<%= remove %>]]></action> <message><![CDATA[ <%= msg %> ]]></message> </mxRoot> The Target Location setting is set to listHidden for the command to support existing HTML/JavaScript controls such as popups and messages. New implementations do not need to use the target location for processing and should encapsulate the response (message) in the mxRoot XML structure. Filter ToolbarThe filter toolbar contains the type filter and relationship filter elements to provide a filtering interface based on relationships, types and the relationship direction. The following table provides the details of the elements displayed in filter toolbar.
|