Skip to Content
0
Former Member
May 13, 2008 at 10:36 AM

UWL: Custom Attributes from the Workflow Container

87 Views

Hello Experts,

Has anyone successfully configured Custom Attributes for items in the UWL? If so, please post your successful configuration code. Please note I am looking for an example which takes custom parameters from the workflow container.

I have searched the forum for hours and read all the threads regarding customising the XML, have also accessed all the SAP help on CustomAttributes. I have what I believe is the proper XML code in the UWL configuration but all my custom attributes from workflow containers still remain NULL when the below code is implemented.

Please note:

- My XML parses correctly and is uploaded correctly via SAP.

- I have cleared the UWL cache.

- I have logged off and on.

- I have re-registered item types.

- We are on EP7, SAPBASIS700, SP15 and I am beginning to think that is a problem with the new service pack.

My UWL XML configuration code is below:

<ItemType name="uwl.task.webflow.TS95000024" connector="WebFlowConnector"
defaultView="DefaultView" defaultAction="launchIViewSchedulePlan" >

<ItemTypeCriteria  externalType="TS95000024"
connector="WebFlowConnector"/>

<CustomAttributes>
  <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalObjectId" objectType="WebFlowContainer" cacheValidity="default">
    <Attribute name="WorkitemId" type="string" displayName="Work item ID"/>
    <Attribute name="WorkitemCreator" type="string" displayName="Creator"/>
    <Attribute name="WorkitemCreationDate" type="date" displayName="Creation date"/>
  </CustomAttributeSource>
</CustomAttributes>


<Actions>
 <Action name="launchIViewSchedulePlan" handler="IViewLauncher" returnToDetailViewAllowed="no" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
  <Properties>
  <Property name="iview" value="pcd:portal_content/ehr.fd.sandbox/com.sandbox.name/com.client.z_sample_htmlguipa20"/>
  <Property name="System" value="SAP_ECC_HumanResources"/>
  <Property name="TCode" value="PA30"/>
  <Property name="GuiType" value="WEBGUI"/>
  <Property name="ApplicationParameter" value="RP50G-PERNR=${item.WorkitemId}"/>
  <Property name="AutoStart" value="1"/>
  </Properties>

<Descriptions default="View SchedulePlan List">
 <ShortDescriptions>
  <Description Language="en" Description="View Schedule Plan List"/>
 </ShortDescriptions>
</Descriptions>
</Action>

</Actions>
</ItemType>

Help will be rewarded with many points.

Thanks,

Eneko