- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
We have an existing Variable set that has a Catalog Client Script which works with the variables inside the Variable Set.
On several of the variables outside the set in our Catalog Item, we would like the Catalog Client script to work on those variables (checks will be made so that if a particular catalog item is used, we can populate those variables).
Do we need any special notation in our script to identify variables not part of the set?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
There are two types of Variable Sets, and two answers.
If you are referring to a single row variable set:
you can use standard g_form methods to get, set, ... variables inside or outside of the variable set in a Catalog Client Script that applies to either the Catalog Item or Variable Set, as long as they are included on the request form/RITM/Catalog Task - whatever the script Applies on...
When working with a multi-row variable set:
In a Catalog Client Script that applies to the Variable Set, you can use g_service_catalog.parent.getValue to access variables outside of the MRVS, and there's a bit more complicated way to set the value of an outside variable. In a Catalog Client Script that applies to the Catalog Item you can get the value of the entire MRVS as JSON then loop through it to get/set the value of variables in each or certain rows of the MRVS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
Normally Catalog Client Script can access all the variables from the form. So it should work fine.
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
There are two types of Variable Sets, and two answers.
If you are referring to a single row variable set:
you can use standard g_form methods to get, set, ... variables inside or outside of the variable set in a Catalog Client Script that applies to either the Catalog Item or Variable Set, as long as they are included on the request form/RITM/Catalog Task - whatever the script Applies on...
When working with a multi-row variable set:
In a Catalog Client Script that applies to the Variable Set, you can use g_service_catalog.parent.getValue to access variables outside of the MRVS, and there's a bit more complicated way to set the value of an outside variable. In a Catalog Client Script that applies to the Catalog Item you can get the value of the entire MRVS as JSON then loop through it to get/set the value of variables in each or certain rows of the MRVS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Thank you, yes, we are using a multi-row variable set, so the info is what we are looking for.
