cancel
Showing results for 
Search instead for 
Did you mean: 

UWL modification for leave approval task TS12300097

Former Member
0 Kudos

Hello

Workflow WS12300111 is using task TS12300097 for leave approval.

I am trying to add few custom attributes to uwl.task.webflow.TS12300097 Task of leave approve workflow (For learning purposes).

I have added them as follows :

<ItemType name="uwl.task.webflow.TS12300097" connector="WebFlowConnector" defaultView="com.sap.pct.erp.mss.myOpenTasksTimeApp" defaultAction="launchWebDynPro" executionMode="default">
      <ItemTypeCriteria externalType="TS12300097" connector="WebFlowConnector"/>     
       <CustomAttributes>
        <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalObjectId" objectType="CL_PT_REQ_WF_ATTRIBS" cacheValidity="final">
          <Attribute name="REQ_ID" type="string" displayName="Document ID"/>
          <Attribute name="VERS_NO" type="string" displayName="Version Number"/>
                 </CustomAttributeSource>
      </CustomAttributes> 

  <Actions>
....
....

In my view com.sap.pct.erp.mss.myOpenTasksTimeApp I have made changes only in "column order" attribute

columnOrder="subject, isEscalated, creatorId, createdDate, priority, attachmentCount, dueDate, status, REQ_ID, 
VERS_NO"

But these fields REQ_ID and VERS_NO are not getting displayed in UWL in my custom view.

I am able to see the custom view.

I believe I am making some mistake in:

<CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalObjectId" objectType="CL_PT_REQ_WF_ATTRIBS" cacheValidity="final">

Please suggest

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hiya,

Have you seen note number: 1600953? This looks like it will satisfy the requirement of the Request ID. And from this you may be able to determine how to bring in the custom attribute for the other field. However, I will mention to you that too many custom attributes may degrade performance.

Beth Maben

EP - Senior Support Consultant II

AGS Primary Support

Global Support Centre Ireland

      • Please see the UWL Wiki @

https://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq ***

Former Member
0 Kudos

Hi Saurabh,

try to add your custom attribute in your view com.sap.pct.erp.mss.myOpenTasksTimeAp how <DisplayAttributes>.

Example:

<View name=...........

<DisplayAttributes>

<DisplayAttribute name="REQ_ID" type="string" width="" sortable="yes" format="default" referenceBundle="decision" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>

<DisplayAttribute name="VERS_NO" type="string" width="" sortable="yes" format="default" referenceBundle="decision" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>

</DisplayAttributes>

Change the type and the other property of displayattribute as you want.

Regards,

Rocco

Edited by: Rocco P. on Oct 20, 2011 10:39 AM