3
SAP Knowledge Base Article Symptom You use the Universal Worklist and would like to understand how the menu displayed by clicking the secondary mouse button in the work items is constructed. Its not clear what options get displayed for each work item. For each work item the menu options may vary, and you want to understand the logic behind it. The menu about which this KBA explains is the following: Environment l SAP Universal Worklist (UWL) l SAP Enterprise Portal l SAP NetWeaver Application Server Java Reproducing the Issue 1. Click the secondary mouse button over the work items within the UWL; 2. Depending upon the configuration made for the work item type (ItemType XML tag), different options may be available; Cause As of NetWeaver 7.10, the Universal Worklist has changed the behavior regarding the menu which was available with the work items. Rather than using the context menu button, the secondary mouse button has to be clicked over the work items so that to get shown with the available options (actions). This is explained in the following SCN Wiki and SAP Note: SCN Wiki: Context Menu Behaviour has changed in release 7.10 and higher of the Universal Worklist SAP Note 1730719: Action buttons on UWL not visible after upgrade Resolution On the top it shows the actions for which there is a MenuItem defined in the xml files. A MenuItem xml element is defined within Menu element, which is defined either for ItemType or for DisplayAttribute. For example in the standard XML file uwl.webflow.xml in the definition of ItemType uwl.task.webflow following can be found: <Menu> <MenuItem name="forwardOne" actionRef="forward" referenceBundle="forward" /> <MenuItem name="followUpItem" actionRef="followUp" referenceBundle="followUp" /> </Menu> Actually these are the first two actions (Forward and Resubmit) which can be seen in the image from the Symptom section above. 2021945 - Understanding how work items menu (context menu) behaves Version 2 Validity: 26.05.2014 - active Language English

Understanding How Work Items Menu (Context Menu) Behaves

Embed Size (px)

DESCRIPTION

Understanding How Work Items Menu (Context Menu) Behaves

Citation preview

Page 1: Understanding How Work Items Menu (Context Menu) Behaves

SAP Knowledge Base Article

Symptom

You use the Universal Worklist and would like to understand how the menu displayed by clicking the secondary mouse button in the work items is constructed.

It’s not clear what options get displayed for each work item. For each work item the menu options may vary, and you want to understand the logic behind it.

The menu about which this KBA explains is the following:

Environment

l SAP Universal Worklist (UWL) l SAP Enterprise Portal l SAP NetWeaver Application Server Java

Reproducing the Issue

1. Click the secondary mouse button over the work items within the UWL;

2. Depending upon the configuration made for the work item type (ItemType XML tag), different options may be available;

Cause

As of NetWeaver 7.10, the Universal Worklist has changed the behavior regarding the menu which was available with the work items. Rather than using the context menu button, the secondary mouse button has to be clicked over the work items so that to get shown with the available options (actions). This is explained in the following SCN Wiki and SAP Note:

SCN Wiki: Context Menu Behaviour has changed in release 7.10 and higher of the Universal Worklist SAP Note 1730719: Action buttons on UWL not visible after upgrade

Resolution

On the top it shows the actions for which there is a MenuItem defined in the xml files.

A MenuItem xml element is defined within Menu element, which is defined either for ItemType or for DisplayAttribute. For example in the standard XML file uwl.webflow.xml in the definition of ItemType uwl.task.webflow following can be found:

<Menu> <MenuItem name="forwardOne" actionRef="forward" referenceBundle="forward" /> <MenuItem name="followUpItem" actionRef="followUp" referenceBundle="followUp" /> </Menu>

Actually these are the first two actions (Forward and Resubmit) which can be seen in the image from the Symptom section above.

2021945 - Understanding how work items menu (context menu) behaves

Version 2 Validity: 26.05.2014 - active Language English

Page 2: Understanding How Work Items Menu (Context Menu) Behaves

In case another MenuItem is added, a third entry will be displayed along with Forward and Resubmit. As an example, action Manage Attachments will be specified. Its technical name is manageAttachments:

<Menu> <MenuItem name="followUpItem" actionRef="followUp" referenceBundle="followUp" /> <MenuItem name="forwardOne" actionRef="forward" referenceBundle="forward" /> <MenuItem name="manageAttachments" actionRef="manageAttachments" referenceBundle="manageAttachments" /> </Menu>

Once the changed XML file is uploaded to the UWL Admin UI, the context menu will display as it follows:

After the line separator ( ) it shows the valid actions for the task which are defined in the xml under <Actions> element, for the item type and its parent item types. And finally, it excludes the User Decision actions.

There is also an uwlSeparator option which can be informed in the XML so that to include additional line separators:

<Menu> <MenuItem name="followUpItem" actionRef="followUp" referenceBundle="followUp" /> <MenuItem name="uwlSeparator" /> <MenuItem name="manageAttachments" actionRef="manageAttachments" referenceBundle="manageAttachments" /> <MenuItem name="forwardOne" actionRef="forward" referenceBundle="forward"/> </Menu>

After adding it and re-uploading the XML, the context menu will display as it follows:

As it can be seen, there is an additional line separator after the Resubmit action.

See Also

Configuring the Universal Worklist

Page 3: Understanding How Work Items Menu (Context Menu) Behaves

Keywords

contextual, behaviour, mouse, row, separate

Header Data

Product

Released On 28.05.2014 12:12:59

Release Status Released to Customer

Component EP-BC-UWL Universal Worklist

Priority Normal

Category How To

Development Platform Java

Product Product Version

SAP NetWeaver SAP NetWeaver 7.3

SAP NetWeaver 7.4

SAP enhancement package 1 for SAP NetWeaver 7.3

SAP NetWeaver Application Server for Java SAP NetWeaver Application Server for Java 7.1

SAP NetWeaver Application Server for Java 7.2

SAP enhancement package 1 for SAP NetWeaver Application Server f