on 03-04-2011 9:51 AM
Hi,
I am trying to display custom attributes from the workflow container in the completed tasks uwl subview.
The problem is that the values of custom attributes are not displayed in the uwl when completed tasks subview is chosen, where in the case of tasks in processing, these values are displayed.
I have checked the defaulttrace with com.sap.mw.jco location trace set to display all, and it seems that for the completed tasks
the SAP_WAPI_READ_CONTAINER function module is not executed.
I have managed to find only these function module calls in defaulttrace:
SWK_LOCAL_OUTBOX_GET
SAP_WAPI_WORKITEM_DESCRIPTION
but no SAP_WAPI_READ_CONTAINER.
Does anybody know is this by design or how to display custom attributes from the container for the completed tasks subview?
Regards,
Ladislav
UWL uses different views for tasks in processing and completed tasks.
Have you done the XML configuration changes in both the views associated with "Tasks in processing" and "completed tasks" ?
You can turn ON the UWL support information and while you are in the completed tasks view, check which view is getting picked up. (Property - Current View Name) (default - WorkItemsCompletedView)
Make changes in that associated view or create a custom view for completed tasks for enabling the view of your custom attributes.
The following blog can be helpful to you:
http://weblogs.sdn.sap.com/cs/blank/view/wlg/20379
- Shanti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shanti,
thank you for the reply.
Yes, I have created custom views for "tasks in processing" and "completed tasks" and have done necessary configuration
changes in the XML files. The correct view is getting picked out in each case.
It works perfectly ok for custom view "tasks in processing", but for "completed tasks" custom view unfortunately
it doesn't work, the custom attribute values are not returned from the container.
Regards,
Ladislav
The xml configuration for completed task type and custom attributes is like this:
<ItemType name="uwl.completedtask.webflow.TS00008267" connector="WebFlowConnector"
defaultView="myCompletedApprovalView" defaultAction="launchSAPAction" executionMode="default">
<ItemTypeCriteria externalType="TS00008267" connector="WebFlowConnector"/>
<CustomAttributes>
<CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId"
objectType="WebflowContainer" cacheValidity="default">
<Attribute name="VENDOR" type="string" displayName="Vendor"/>
<Attribute name="VENDOR_NAME" type="string" displayName="Vendor name"/>
<Attribute name="CURRENCY" type="string" displayName="Currency"/>
<Attribute name="AMOUNT" type="string" displayName="Amount"/>
</CustomAttributeSource>
<CustomAttributeSource id="ABAP_BOR" objectIdHolder="externalObjectId" objectType="ZDECISION" cacheValidity="default"/>
</CustomAttributes>
<Actions>
<Action name="launchSAPAction" groupAction="" handler="SAPTransactionLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes"
launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
<Properties>
<Property name="GuiType" value="WebGui"/>
</Properties>
<Descriptions default="Invoice approval">
<ShortDescriptions>
<Description Language="en" Description="Invoice approval"/>
</ShortDescriptions>
</Descriptions>
</Action>
</Actions>
</ItemType>
It seems ok, but the custom attributes values VENDOR, VENDOR_NAME, CURRENCY and AMOUNT are not displayed (columns with values are empty) in myCompletedApprovalView view.
Regards,
Ladislav
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.