- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2024 04:01 AM
Hi Team
I have the catalog item and have three fields When I select any user A field it automatically pop up the managers name(I appled the catalog data lookup definition). Now I want to show the third field (user B) number of users respective manager.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2024 07:03 AM - edited 09-19-2024 07:05 AM
Hello @dhineshkumar, if you wish to display a list of users under the manager of user A, then you can write advanced qualification as follows: javascript:'manager='+current.variables.user_a.manager;
write this script under type qualification as below:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2024 04:06 AM
Hi @dhineshkumar What do mean when you say "Now I want to show the third field (user B) number of users respective manager", Can you elaborate more?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2024 04:11 AM
@Sid_Takali
The manager field automatically pop up. Under that manergs name how many users working.
Example : If pop up the managers name as abraham lincon. In third field user B need to show how many user under the manager (Abraham linncon) working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2024 04:19 AM
Hi @dhineshkumar So basically you want show the count of users under Manager. For that you need to have string type field instead of Reference Field(User B). And to populate that you need to call a GlideAjax call from onChange Catalog Client Script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2024 04:32 AM
@Sid_Takali
If I provides the string type field I could not see the number of users. I have to give the reference type only. Kindly provide me if you have any script.
Thank you.