I have the text mode below in a project report to show the name of a user with role as designer. Is there code I can add so the report can be sorted by this column? | Community
Skip to main content
Level 3
Sep 24, 2020 8:14 PM UTC
Question

I have the text mode below in a project report to show the name of a user with role as designer. Is there code I can add so the report can be sorted by this column?

displayname=Designers

listdelimiter=<br>

listmethod=nested(projectUserRoles).lists

textmode=true

type=iterate

valueexpression=IF({role}.{name}="Designer",{user}.{name},"")

valueformat=HTML

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Level 3
Sep 28, 2020 2:17 PM UTC

You may also try adding User Name as a hidden column and sort on that?

Translate
Doug_Den_Hoed__AtAppStore
New Participant
Sep 24, 2020 8:27 PM UTC

Hi Pamela,

"Nope". Collections cannot be sorted. As a workaround, you could, however, add a custom parameter at the Project Level called "Designer Role", manually load it with the names of the Designers in your company, and then sort (and filter, and group, and chart) by that field.

I've used this technique in the past many times -- one such dropdown for each key role -- and found it to be very useful. In fact, if you make the value of the dropdown the ID of each user, you can even filter on those key role parameters using $$USER.ID, which has even more advantages.

Regards,

Doug

Translate
PamelaMiAuthor
Level 3
Sep 24, 2020 8:29 PM UTC
Thank you Doug, I will give this a try.
Translate