- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2021 05:32 AM
I have a record producer which has 2 variables category and configuration item.category being a select box and configuration item is a reference field referencing to cmdb_ci .I need to filter the configuration item on the form depending on the category selected.I tried using script include to set the filters and call the script include in the advance reference qualifiers .Its not working,its not filtering the configuration list as i want.I don't know even if the category selected is being picked up by the script include or not.
Leaving some screenshots:
Immediate help is appreciated.thank you!
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2021 05:46 AM
Hi,
You need to pass the current object to the script include like this :-
javascript:new PopulateCIbasedonCategory().u_getCIRefQual(current)
And in your script include use this current.variables to access the variable value like this :-
current.variables.category.getDisplayValue(); // instead of current.category.getDisplayValue()
Thanks
Sourav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2021 05:46 AM
Hi,
You need to pass the current object to the script include like this :-
javascript:new PopulateCIbasedonCategory().u_getCIRefQual(current)
And in your script include use this current.variables to access the variable value like this :-
current.variables.category.getDisplayValue(); // instead of current.category.getDisplayValue()
Thanks
Sourav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2021 05:56 AM
Thanks Sourav.It worked perfectly.thanks