Need help to build reference qualifier

vidhya_mouli
Giga Sage

I have a catalog item with 2 variables. employee and employment (both are reference fields). Employment data should be generated based on employee chosen. I have the following reference qualifier

u_employee=current.variables.employee^u_active=true^u_start_dateRELATIVELT@month@ahead@1

 

If I use the sys_id of the some user instead of current.variables.employee, this works.

u_employee=1d0003601bced150dfcd64e0b24bcb78^u_active=true^u_start_dateRELATIVELT@month@ahead@1

 

But I want it to be dynamic and tale the value of the employee I choose. Can someone help me to fix this code.

1 ACCEPTED SOLUTION

vidhya_mouli
Giga Sage
javascript: 'u_employee='+current.variables.employee.sys_id + '^u_active=true^u_start_dateRELATIVELT@month@ahead@1'

View solution in original post

2 REPLIES 2

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

dot walk on level further on the employee variable,  to the sys_id field and try

 

u_employee=current.variables.employee.sys_id^u_active=true^u_start_dateRELATIVELT@month@ahead@1

 

-Anurag

vidhya_mouli
Giga Sage
javascript: 'u_employee='+current.variables.employee.sys_id + '^u_active=true^u_start_dateRELATIVELT@month@ahead@1'