UWL Custom Attributes

Dart, Jocelyn jocelyn.dart at sap.com
Wed May 14 00:19:28 EDT 2008


Hi Eneko, 
 
Firstly turn on the UWL Support Information (the flag is in the Portal Content Directory).  When you select a work item in your inbox (using the button at the start of the row) there's a table at the bottom of the support info that will show whether your custom attribute has retrieved a value correctly or not. 
 
Secondly the name of your attribute has to EXACTLY match the name of the attribute in the Work Item's container - check case, check the work item container actually holds a value.  Make sure you are looking at the work item's container - not the workflow's container. 
 
Thirdly I always find it useful to put the item type in a view and add the custom attribute as a display attribute - that's helpful for seeing the actual value of the attribute so you know when you finally have the right code.   It also clarifies whether the problem is with your custom attribute or with your action definition. 
 
Fourthly cachevalidity = final means it's read once and cached - so sometimes it's helpful to create new work items to check if it's just a cache/timing problem. 
 
Regards, Jocelyn 

________________________________

From: sap-wug-bounces at mit.edu on behalf of eneko.bilbao at accenture.com
Sent: Tue 13/05/2008 10:18 PM
To: sap-wug at mit.edu
Subject: UWL Custom Attributes 



Hi Experts,

I am having terrible problems using custom attributes in the UWL. I
cannot retrieve elements from an ECC workflow container. I always
receive NULL. The standard attributes of the UWL work fine, it's just
when I add new ones.

Perhaps you could share some of your tips and tricks (Mark/Jocelyn?) - I
have spent several hours on this now and can't get away from the NULL
result - very frustrating! 

Before you ask, yes I have read all the SDN forum posts and tried using
the XML examples on help.sap.com, I have also validated my XML code in
IE and it correctly uploads to SAP's UWL. As far as I know, I have my
XML code correct but am still receiving NULL for all custom attributes
in the UWL.

We are on EP7, BASIS700, SP15.

My test XML code is below if you have a moment to check:




<ItemTypes>
  <ItemType name="uwl.task.webflow.TS95000024"
connector="WebFlowConnector" defaultView="DefaultView"
defaultAction="launchIViewPostingPlan" >
    <ItemTypeCriteria  externalType="TS95000024"
connector="WebFlowConnector"/>
    <CustomAttributes>
      <CustomAttributeSource id="WEBFLOW_CONTAINER"
objectIdHolder="externalObjectId" objectType="WebFlowContainer"
cacheValidity="final">
        <Attribute name="HRAdminRuleID" type="string" displayName="Admin
Rule ID Test"/>
      </CustomAttributeSource>
    </CustomAttributes>
    <Actions>
      <Action name="launchIViewPostingPlan" 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.Eneko/com.client.z_
sample_htmlguipa30"/>
          <Property name="System" value="SAP_ECC_HumanResources"/>
          <Property name="TCode" value="PA30"/>
          <Property name="GuiType" value="WEBGUI"/>
          <Property name="ApplicationParameter"
value="RP50G-PERNR=${item.HRAdminRuleID}"/>
          <Property name="AutoStart" value="1"/>
        </Properties>
        <Descriptions default="View Posting Plan List">
          <ShortDescriptions>
            <Description Language="en" Description="View Posting Plan
List"/>
          </ShortDescriptions>
        </Descriptions>
      </Action>
    </Actions>
  </ItemType>
</ItemTypes>


Many thanks for any suggestions,

Eneko Bilbao
Accenture
Systems Integration & Technology - SAP

Phone (Singapore): +65 9807 9115
Email: eneko.bilbao at accenture.com



This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 7847 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20080514/d4fb4174/attachment.bin


More information about the SAP-WUG mailing list