I am trying to create a task report and I have taken reference from:

Hi

I am trying to create a task report and I have taken reference from:
forum.appian.com/.../Task_Report_Tutorial.html

In my task report I have a column Assigned To. The values in this column are either Group or User which are being displayed but group is being displayed as Goup: id and user as username, PFA screenshot for your reference.
Can some one please suggest how do I display user's as well as group's name?

Thanks in advance....

OriginalPostID-199642



  Discussion posts and replies are publicly visible

Parents
  • @siddharthg It's true that the code snippet works when it is used in combination with apply(), but looping over each element in the array and an additional condition that checks the data type on the fly are a sort of burden when compared to casting, as casting the data to User or Group data type will help us getting the users (touser()) and groups (tointeger()) in a single shot.

    Anyhow it would be worth opting for an approach based on the execution times, as it is a key factor that makes difference in the approaches.

    @komalc No problem, glad to hear that.
Reply
  • @siddharthg It's true that the code snippet works when it is used in combination with apply(), but looping over each element in the array and an additional condition that checks the data type on the fly are a sort of burden when compared to casting, as casting the data to User or Group data type will help us getting the users (touser()) and groups (tointeger()) in a single shot.

    Anyhow it would be worth opting for an approach based on the execution times, as it is a key factor that makes difference in the approaches.

    @komalc No problem, glad to hear that.
Children
No Data