cancel
Showing results for 
Search instead for 
Did you mean: 

How to add TASKTEXT of a workitem

former_member182374
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

former_member182374
Active Contributor
0 Kudos

Hi Karri,

I tried with both "_Workitem" and "_WORKITEM" - still doesn't work.

Regards,

Omri

Former Member
0 Kudos

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

former_member182374
Active Contributor
0 Kudos

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

Answers (0)