on 11-09-2011 11:55 AM
Hello Experts,
I want to add the "TASKTEXT" attribute from "_WORKITEM" object.
I added the following to my XML:
<CustomAttributes>
<CustomAttributeSource id="ABAP_BOR" objectIdHolder="externalObjectID" objectType="_WORKITEM" cacheValidity="default">
<Attribute name="TASKTEXT" type="string" displayName="CreatedBy"/>
</CustomAttributeSource>
</CustomAttributes>
and then added the attribute as display attribute in the view but the column's value is not visible.
When I use the following object & attribute, it works.
<CustomAttributes>
<CustomAttributeSource id="ABAP_BOR" objectIdHolder="externalObjectID" objectType="BUS2009" cacheValidity="default">
<Attribute name="CreatedBy" type="string" displayName="CreatedBy"/>
</CustomAttributeSource>
</CustomAttributes>
How do display "TASKTEXT"?
Regards,
Omri
Have you tried "_Workitem" instead of "_WORKITEM" as on object type? It might be case sensitive. The exact element name in backend is _Workitem.
Regards,
Karri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I guess you tried also TaskText insead of TASKTEXT?
(Also make sure that you refresh that cache always after doing changes, and also make a new test case (=start a new workflow) - just to be absolutely sure that your changes really aren't correct. You would not be the first person, who did everything correct but UWL just didn't update/refresh the things for the existing work items due to some reason.)
I have never user the WorkItem object. I don't see any reason why it wouldn't work. If you cannot get it done, maybe could try to use WEBFLOWCONTAINER instead of the BOR - of course this will require some tricks to get the task text into an individual container element - and of course you need to do it for every task then - and if you have many of them, it will require some work...
Regards,
Karri
Hi Karri,
You're right I tried also with TaskText - no success.
I'm refreshing the UWL cache after every change and start a new session.
Regarding using the WEBFLOW_CONTAINER: I did it for one of my customers and it works.
Tthe problem, as you mentioned is that it should be maintained for every task.
If I won't find a solution and will use the WEBFLOW_CONTAINER...
Regards,
Omri
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.