Reference qualifier not working

jose_quinonez
Giga Guru

Hi,

I have a reference variable refvar1 in a catalog item.

The referenced table is u_table1.

u_table1 has a field called u_user, which is a reference field to sys_user.

 

I am trying to filter values in refvar1 so it only shows records in u_table1 where u_user is the logged-in user.

I wrote this advanced reference qualifier in refvar1:

javascript: 'u_user=' + gs.getUserID()

 

It is not working. Please help.

Thanks

 

1 ACCEPTED SOLUTION

AnveshKumar M
Tera Sage
Tera Sage

Hi @jose_quinonez 

In this case you can use simple Reference qualifier instead of using Advanced. Like the one below.

 

Select Simple in Use Reference Qualifier field and click on add filter condition. Then add the condition like.

YOUR FIELD NAME :: IS (Dynamic) :: Me

See the screenshot below.

 

IMG_20231202_082402.jpg

 

Please mark my answer helpful and accept as a solution if it helped 👍

Thanks,
Anvesh

View solution in original post

3 REPLIES 3

VaishnaviShinde
Kilo Sage

Hello @jose_quinonez 

 

You want to add logged in user into u_user field ? Can you elaborate requirement? 

AnveshKumar M
Tera Sage
Tera Sage

Hi @jose_quinonez 

In this case you can use simple Reference qualifier instead of using Advanced. Like the one below.

 

Select Simple in Use Reference Qualifier field and click on add filter condition. Then add the condition like.

YOUR FIELD NAME :: IS (Dynamic) :: Me

See the screenshot below.

 

IMG_20231202_082402.jpg

 

Please mark my answer helpful and accept as a solution if it helped 👍

Thanks,
Anvesh

Thank you Anvesh!

That was much easier!

Do you know if there is something wrong with the use of gs.getUserID() that I was trying?