- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2024 07:05 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2024 07:17 AM
javascript: 'u_employee='+current.variables.employee.sys_id + '^u_active=true^u_start_dateRELATIVELT@month@ahead@1'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2024 07:10 AM - edited ‎03-01-2024 07:11 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2024 07:17 AM
javascript: 'u_employee='+current.variables.employee.sys_id + '^u_active=true^u_start_dateRELATIVELT@month@ahead@1'