Need assistance on reference qualifier.

dhineshkumar
Tera Guru

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. 

dhineshkumar_0-1726743585757.png

 

Thanks in advance.

 

1 ACCEPTED SOLUTION

Nishant8
Giga Sage

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:

Nishant8_0-1726754585298.png

 

 

View solution in original post

11 REPLIES 11

Sid_Takali
Kilo Patron
Kilo Patron

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?

@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.

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. 

@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.