- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2016 11:25 AM
I have a catalog variable that is referencing the sys_user_has_role table. What I'm trying to accomplish is having a list that only includes ITIL users, so when I click on the lookup using icon, I want users to show. When I'm in the form and click on Lookup using list (magnifying glass) to search for a user, all I see is sys_id's listed.
Also if I select one of the sys_id's it just fills in Created......
How can I display user information in the lookup list and then have the name display in the field when selected?
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2016 12:24 PM
As others have already pointed out, marking User field as the Display value would give the desired result. What you should be aware of is that this change is going to have impact on all reference fields and catalog variables throughout the system that point to the User Roles [sys_user_has_role] table. This may not necessarily be desirable. Moreover, the value of the variable will be the sys_id of a user-to-role relation from the many-to-many table, which is not really useful for further processing of the request. A better solution, in my opinion, would be to switch your reference to the Users [sys_user] table and use roles=itil as Reference qualifier.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2016 11:38 AM
Thank you all!
I set display=true on the user field within the sys_user_has_role table and that fixed the issue of the "Created..." showing in the field on the form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2016 12:24 PM
As others have already pointed out, marking User field as the Display value would give the desired result. What you should be aware of is that this change is going to have impact on all reference fields and catalog variables throughout the system that point to the User Roles [sys_user_has_role] table. This may not necessarily be desirable. Moreover, the value of the variable will be the sys_id of a user-to-role relation from the many-to-many table, which is not really useful for further processing of the request. A better solution, in my opinion, would be to switch your reference to the Users [sys_user] table and use roles=itil as Reference qualifier.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2016 12:43 PM
Excellent point Slava!
I set it up and saw several names that are listed multiple times because they are in several workgroups that have the ITIL role. I was just playing around with using the sys_user table instead but couldn't quite figure out how to make it work. I dropped active=true^roles=itil^EQ in as the Reference qual and it is showing me exactly what I needed.
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2022 07:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2022 10:27 AM
What is the name of the table where your reference field is located? And what is the name of the table the reference field is pointing to? What field is set as the display field for the latter table? What does the reference field look like when it is not empty?
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/