Using custom attributes in the UWL
John A Haworth
jhoworth at csc.com
Wed Jul 30 10:12:55 EDT 2008
Hi
I have updated the same XML as it seems you have in code below also
emptied the cache and personalisation.
When I go into the portal content and down to the iViews and UWL, I have
switched on the 'Support' option. From here I can carry out a preview and
I see from the support info that my new xml is being used and specific
reference to the decision task that I have changed the xml for, and the
new view being used. The preview shows the changes ok.
BUT
When I go to the UWL, I see the old standard view and none of my changes.
I have obviously missed something, is there somewhere else I need to make
changes to?
Thanks
John
CSC Computer Sciences Limited
Registered Office: Royal Pavilion, Wellesley Road, Aldershot, Hampshire,
GU11 1PZ, UK
Registered in England No: 0963578
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
any order or other contract unless pursuant to explicit written agreement
or government initiative expressly permitting the use of e-mail for such
purpose.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
gm.duits at belastingdienst.nl
Sent by: sap-wug-bounces at mit.edu
24/07/2008 07:43
Please respond to
"SAP Workflow Users' Group" <sap-wug at mit.edu>
To
"SAP Workflow Users' Group" <sap-wug at mit.edu>
cc
Subject
Using custom attributes in the UWL
Hello Mark,
Thanks for the detailed answer.
It works now.
Kind regards,
Maarten
"Griffiths, Mark"
<mark.griffiths at s
ap.com> Aan
Verzonden door: "SAP Workflow Users' Group"
sap-wug-bounces at m <sap-wug at mit.edu>
it.edu Cc
Onderwerp
23-07-2008 23:32 RE: Betr.: RE: Using custom
attributes in the UWL
Antwoord a.u.b.
aan
"SAP Workflow
Users' Group"
<sap-wug at mit.edu>
Create a container element in the TS task (if you are using an SAP one
you will need to copy it first and insert the copied task in your
workflow)
Bind to the element from the workflow (you may need to create a new
Business object attribute to hold the object-key without splitting it
between employee and trip number)
Now the task holds the key to BUS2089
In your XML, to read the object key you use CustomAttributeSource
id='webflow_container' to populate a custom attribute
Then once you have this value you can use it as in your code below, but
the key is now in your custom attribute not the externalobjectid.
Good Luck,
Mark
SAP UK
-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of gm.duits at belastingdienst.nl
Sent: 23 July 2008 11:02
To: SAP Workflow Users' Group
Subject: Betr.: RE: Using custom attributes in the UWL
Hallo Mark,
Thanks for the reply.
Yes, it's correct i am using a user decision.
About your solution.
Could you tell me in more detail how to solve the problem. I am quite
new
to workflow.
Thanks.
Kind regards,
Maarten
"Griffiths, Mark"
<mark.griffiths at s
ap.com>
Aan
Verzonden door: "SAP Workflow Users' Group"
sap-wug-bounces at m <sap-wug at mit.edu>
it.edu
Cc
Onderwerp
23-07-2008 11:37 RE: Using custom attributes in
the UWL
Antwoord a.u.b.
aan
"SAP Workflow
Users' Group"
<sap-wug at mit.edu>
It looks like you are using a user decision?
The problem is that externalOjectid holds the object key for the
DECISION business object rather than BUS2089.
I got round this by creating an container element on the task to hold
the BUS2089 object key. You read this first from the container, and then
you can use value to read the ABAP_BOR attributes as you have done
below.
Regards,
Mark
SAP UK
-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of gm.duits at belastingdienst.nl
Sent: 23 July 2008 07:08
To: sap-wug at mit.edu
Subject: Using custom attributes in the UWL
Hello,
What i would like to do is to show some custom attributes as columns in
the UWL. In my workitem the BOR object BUS2089 (TRIP) is present, so i
thought to make use of the statement CustomAttributeSource
id="ABAP_BOR"
in my UWL xml file (see below). I would like to show the attributes
BEGINDATE and TOTALCOSTS. After uploading the xml the columns are
empty. I
also make use of the CustomAttributeSouce id="WEBFLOW_CONTAINER" and
that
column is displayed correctly.
I will post a part of the UWL xml configuration.
<ItemType name="uwl.task.webflow.decision.TS92200054" connector=
"WebFlowConnector" defaultView="travel" defaultAction="launchTravelUwl"
executionMode="default">
<ItemTypeCriteria systemId="UWL_R3" externalType="TS92200054"
connector="WebFlowConnector"/>
<CustomAttributes>
<CustomAttributeSource id="ABAP_BOR" objectIdHolder=
"externalObjectId" objectType="BUS2089" cacheValidity="final">
<Attribute name="BEGINDATE" type="date"
displayName="Begindatum
reis"/>
<Attribute name="TOTALCOSTS" type="double"
displayName="Gedecl.
bedrag"/>
</CustomAttributeSource>
<CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder=
"externalId" objectType="WebflowContainer" cacheValidity="final">
<Attribute name="ReisschemaText" type="string" displayName=
"Reisschema"/>
</CustomAttributeSource>
</CustomAttributes>
<Actions>
<Action name="afkeuren" groupAction="no" handler=
"UserDecisionHandler">
<Properties>
<Property name="UserDecisionNote" value="mandatory"/>
<Property name="decisionKey" value="2"/>
</Properties>
</Action>
<Action name="goedkeuren" groupAction="yes" handler=
"UserDecisionHandler">
<Properties>
<Property name="UserDecisionNote" value="true"/>
<Property name="decisionKey" value="1"/>
</Properties>
</Action>
</Actions>
</ItemType>
The View xml part looks like:
<View name="travel" selectionMode="SINGLESELECT" width="98%"
supportedItemTypes="uwl.task.webflow.decision.TS92200054"
columnOrder="subject, BEGINDATE, TOTALCOSTS, ReisschemaText,
approveCol"
sortby="createdDate:descend" tableDesign="ALTERNATING"
visibleRowCount="14" headerVisible="yes" queryRange="undefined"
tableNavigationFooterVisible="yes" tableNavigationType="STANDARD"
actionRef="" refresh="300" dueDateSevere="86400000"
dueDateWarning="259200000" emphasizedItems="none"
displayOnlyDefinedAttributes="no" dynamicCreationAllowed="no"
actionPosition="bottom" referenceBundle="tasks">
<DisplayAttributes>
<DisplayAttribute name="approveCol" type="checkbox" width="10"
sortable="no" format="default" actionRef="goedkeuren" hAlign="center"
vAlign="Baseline" maxTextWidth="0" headerVisible="yes">
<Descriptions default="Goedkeuren"/>
</DisplayAttribute>
<DisplayAttribute name="subject" type="string" width="10"
sortable="yes" format="default" referenceBundle="subject" hAlign="LEFT"
vAlign="BASELINE" maxTextWidth="20" headerVisible="yes"/>
<DisplayAttribute name="BEGINDATE" type="date" format="short"/>
<DisplayAttribute name="TOTALCOSTS" type="double"/>
<DisplayAttribute name="ReisschemaText" type="string" width=""
maxTextWidth="20">
<Descriptions default="Reisschema"/>
</DisplayAttribute>
</DisplayAttributes>
<Actions>
<Action reference="refresh"/>
<Action reference="submitUserDecisions"/>
<Action reference="launchMijnTaken"/>
<Action reference="UserDecisionNoteText"/>
</Actions>
</View>
I hope somebody can help me.
Kind regards,
Maarten.
------------------------------------------------------------------------
------
De Belastingdienst gebruikt e-mail niet voor de uitwisseling van
vertrouwelijke informatie met de burger of voor de bekendmaking van
beslissingen. De Belastingdienst hanteert conventies voor het gebruik
van e-mail. Deze zijn te vinden op www.belastingdienst.nl.
========================================================================
======
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug
------------------------------------------------------------------------
------
De Belastingdienst gebruikt e-mail niet voor de uitwisseling van
vertrouwelijke informatie met de burger of voor de bekendmaking van
beslissingen. De Belastingdienst hanteert conventies voor het gebruik
van e-mail. Deze zijn te vinden op www.belastingdienst.nl.
========================================================================
======
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug
------------------------------------------------------------------------------
De Belastingdienst gebruikt e-mail niet voor de uitwisseling van
vertrouwelijke informatie met de burger of voor de bekendmaking van
beslissingen. De Belastingdienst hanteert conventies voor het gebruik van
e-mail. Deze zijn te vinden op www.belastingdienst.nl.
==============================================================================
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20080730/cfc1361a/attachment.htm
More information about the SAP-WUG
mailing list