catalog item, variables, variable set, reference qualifier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 04:12 AM
Hi,
In catalog item there is one variable Requested by, and a multi row variable set here 2 variable select asset and recovery amount.
after selecting the user, and clicking the lookup icon it should show asset based on user company.
I created a script include and use reference qualifier to filter the asset in select asset field. Its working if both are variables, but not working when select asset variable is inside a variable set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 04:54 AM
A reference qualifier on a MRVS variable cannot access (yet?) a variable in the Catalog Item. A workaround for this is to add the same Requested by variable to the MRVS, or user company in your case if you prefer. You can hide this variable in the Add/Edit Row dialog, but it will always show on the display of the MRVS on the Request form, RITM, and Catalog Tasks. You can create an onLoad Catalog Client Script that applies to the MRVS to always auto-populate this new variable, then the reference qualifier on Select Asset will use this variable with the same syntax current.variables.var_name