Show TOC

Procedure documentationCreating Toolbar Actions Locate this document in the navigation structure

 

A toolbar action is an action that is displayed in the work unit toolbar when a work unit is opened on a portal object. Toolbar actions are added to the out-of-the-box toolbar actions: Save, Refresh, EditMode, Close.

The following figure illustrates how to define toolbar actions in the XML script:

This graphic is explained in the accompanying text.

Procedure

  1. In the <Context> element for the admin studio configuration, create a <Context> element for a standard folder that indicates the toolbar actions, with the following attributes:

    <Context name="toolbarActions" title="Toolbar Actions" objectClass="com.sap.portal.pcd.gl.GlContext">

  2. In the <context> element for the toolbar actions, create a <Context> element for each toolbar action.

    Each toolbar action should be a delta link to an existing action. Set the following attribute for each toolbar action <context> element:

    <Context name="preview" title="Preview" objectClass="com.sap.portal.admin.studio.config.action">

Result

The specified action is displayed in the work unit toolbar when a work unit is opened for a portal object. For example, the Preview action is displayed when opening any editor of a portal page.