An action is a menu item that is displayed when right-clicking an object in the Portal Catalog. The action is tied to a work unit, which is run when the action is selected.
● In the configuration <context> action element, create a <Context> element for a standard folder that indicates the start of actions, with the following attributes:
○ name: actions
○ objectClass: com.sap.portal.pcd.gl.GlContext
● In the actions <context> element, create a <Context>element for each action.
Each action should be a delta link to an existing action. Set the following attribute for each action <context> element:
○ objectClass: com.sap.portal.admin.studio.config.action
● You can also create action submenus by adding folder <Context>elements.
Actions are specified in the XML script as any semantic object. It is recommended to create the action outside the admin studio configuration, and then create a delta link to the action in the admin studio configuration.
To create an action, do the following:
...
1. Create an action semantic object by defining a <Context> element with the following attribute:
¡ title: Name of the action displayed in the right-click menu
¡ objectClass: com.sap.portal.admin.studio.config.action
2. Inside the action <Context> element, add <Attribute> elements to configure the action. The following are the attributes that can be added:
Attribute Name |
Description |
Valid Values |
eventType |
Indicates whether to open the work unit in a new window. |
WorkUnit NewWindow |
required.objectTypes |
Indicates the object types for which to display the action. |
Object class for the object types for which to display the action. Specify multiple object types by defining multiple <AttributeValue> elements. |
required.permissions |
Indicates the object permissions that the administrator must be granted to view this action. |
admin_read admin_owner admin_read_write end_user |
required.subTypes |
Indicates the object subtype for which to display the action. The subtype is indicated by the com.sap.portal.pcm.admin.subType in a portal component’s portalapp.xml file. |
String |
defaultActionRank |
Determines whether the current action is the default for a specified portal object. For each portal object, the work unit framework determines the available actions, and then among these the action with the highest rank is the default. The default action is triggered when: ● At the end of a wizard, an administrator selects to open the newly created portal object for editing. ● When opening a object in another object, such as an iView in the page editor. |
Integer between 0 to 100. |
All of the above attribute names must be preceded by com.sap.portal.admin.studio.config.action.
3. Inside the action <Context>element, add a <Context> element that creates a delta link to the work unit to be run when the action is selected.
The specified actions are displayed when you right-click an object in the Portal Catalog.