Show TOC

Configuring a Work UnitLocate this document in the navigation structure

Use

After creating a page from a work unit, or specifying a work unit in an action, you can modify several configuration settings for the work unit.

Procedure

In the <Context> element for a work unit, add an <Attribute> tag for each of the configuration settings.

The following figure shows a work unit <Context> element for specifying a work unit to perform an action.

You can set the following attributes:

Name

Valid Values

Description

hasWorkUnitSelector

true (default)

false

Indicates whether to display the work unit selector, which is the set of links to all the available work units for the current portal object.

toolbarMode

VISIBLE (default)

INVISIBLE

Indicates whether to display the work unit toolbar that displays the Save , Preview , Refresh , Close and other buttons.

allowClose

true (default)

false

Indicates whether to display the Close button.

For example, you may have an overview or default work unit for the admin studio instance that you do not want the administrator to close.

allowMultiResourceInstances

true

false (default)

Indicates whether multiple instances of the work unit can be opened at the same time for the same portal object.

If false , when an administrator tries to open a new work unit for the current portal object, the existing work unit gets the focus.

urlParams

A set of key-value pairs, for example:

param1=value1&

Specifies a set of key-value pairs to send as URL parameters to the work unit.

useResourceTitle

true (default)

false

Specifies the tab title to be displayed, either the title of the portal object for which the work unit was opened ( true ), or the title of the work unit ( false ).

Note

All attributes start with com.sap.portal.admin.studio.config.action.workunit .

For example:

<Attribute name="com.sap.portal.admin.studio.config.action.workunit.useResourceTitle" type="boolean">

<AttributeValue value="false"/>

</Attribute>