Ref qualifier over list

Rosy14
Tera Guru

Hi,

I have a list type field over sys_user table. I want to filter it so that it will show users with same company name as logged in user . below not working.

javascript:'company='+gs.getUserID().company;

2 ACCEPTED SOLUTIONS

Amit Verma
Kilo Patron
Kilo Patron

Hi @Rosy14 

 

Do you have the company set for the currently logged in user ? If you have recently set it up, you should logout and login again for gs.getUser().getCompanyID() to work. Refer below snips where it is working as expected for me :

 

AmitVerma_0-1709201231493.png

 

AmitVerma_1-1709201250933.png

 

AmitVerma_2-1709201273918.png

 

Thanks & Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

View solution in original post

swathisarang98
Giga Sage
Giga Sage

Hi @Rosy14 ,

 

Try the below code but the catch here is you need to logout and then log in and retest as this is querying company field 

 

javascript:"company="+gs.getUser().getCompanyID();

 

swathisarang98_0-1709202005438.png

 

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

View solution in original post

13 REPLIES 13

Amit Verma
Kilo Patron
Kilo Patron

Hi @Rosy14 

 

Do you have the company set for the currently logged in user ? If you have recently set it up, you should logout and login again for gs.getUser().getCompanyID() to work. Refer below snips where it is working as expected for me :

 

AmitVerma_0-1709201231493.png

 

AmitVerma_1-1709201250933.png

 

AmitVerma_2-1709201273918.png

 

Thanks & Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

Hi.. I did the same 

Rosy14_0-1709201750524.png

 

Rosy14_1-1709201791322.png

 

Rosy14_2-1709201847816.png

but not working.

 

swathisarang98
Giga Sage
Giga Sage

Hi @Rosy14 ,

 

Try the below code but the catch here is you need to logout and then log in and retest as this is querying company field 

 

javascript:"company="+gs.getUser().getCompanyID();

 

swathisarang98_0-1709202005438.png

 

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

Thanks. working now.