|
PTC recommends including the incremental attribute in the action and model elements to customize an OOTB action definition and action model, respectively. This topic provides information about using position attributes when you use the incremental attribute in model definitions.
|
Parameter
|
Possible Values
|
Req?
|
Description
|
---|---|---|---|
Position of the action or submodel
|
insertAt: Specifies the absolute position at which the action must be inserted in the Action menu. Depending on access permissions, the position at which the action is displayed might vary for some users if any of the actions before this action is hidden in the UI.
insertBeforeActionName/insertBeforeObjectType: Specifies the action immediately before which the custom action should appear.
insertAfterActionName/insertAfterObjectType: Specifies the action immediately after which the custom action should appear.
|
No
|
A set of attributes can be used to specify the position of your custom action in the Action menu. You can use only one position attribute for a given action. Specifying position is optional. If the position is not specified, the action will be inserted at the end of the action model.
For example: <action name="print part" type="part" insertAt="6"/>
If any conflicts occur while determining the position within the resulting action model, the action is placed at the end of the action model. If multiple custom actions are added and more than one action encounters a position conflict, the position of all such actions will depend on the order of registering the custom action model file in the com.ptc.netmarkets.util.misc.customActionModels property.
|