Show TOC Start of Content Area

Procedure documentation Configuring a Work Unit  Locate the document in its SAP Library structure

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

XML Script

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

The following example shows a work unit <context> element for specifying a work unit to run for an action.

 

This graphic is explained in the accompanying text

 

The following are the attributes that can be set:

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).

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

 

 

 

A new attribute for work-units configuration (under action)

 

   <Attribute name="${adminStudioNs}.action.workunit.useResourceTitle" type="boolean">

      <AttributeValue value="false"/>

   </Attribute>

 

End of Content Area