Dynamic Reference Qualifier not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2017 11:00 AM
In trying to clean up how users create change requests for specific CIs we want the reference field Configuration Item to be filtered based on the sys_class_name matching to the option selected in the Subcategory. I'm trying to do this through a Dynamic Reference Qualifier but it doesn't appear to be filtering the filter. The field Does appear to filter correctly when I don't use a script and just put the javascript in the Script section of the Dynamic Filter. Can anyone point out what is not configured properly and is preventing it from loading correctly?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2017 12:15 PM
Have you verified setCIFilter().setFilter() is coming back when the right string? What's in the gs.log() statements that get sent to the log?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2017 12:23 PM
getting the log statements now
Edit: Is there a different object I should be using instead of Current? I didn't thing g_form was used at this location...
2017-05-18 03:16:18 PM 05-18 03:16:18 PM 12m ago | scwillis | Warning | org.mozilla.javascript.EcmaError: "current" is not defined. Caused by error in <refname> at line 1 ==> 1: 'sys_class_name=' + current.u_subcategory; | Evaluator | Log Entry |
2017-05-18 03:33:04 PM 05-18 03:33:04 PM just now | scwillis | Warning | org.mozilla.javascript.EcmaError: "setCIFilter" is not defined. Caused by error in <refname> at line 1 ==> 1: new setCIFilter().setFilter() | Evaluator | Log Entry |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2017 12:20 PM
ok, even this also not return properly. you need to glide record on cmdb_ci table.
just tell me one thing that, what are the values in sub category fields, i mean choices names.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2017 12:26 PM
I am setting the u_subcategory option values (not display names) to be the same as the class of the CI for testing. When I have a functioning script I will revert them to their original names and code the script to load all classes associated with each name as Servers and Databases may reference multiple classes. (ie. Database will load both the Database and Database Instance tables through their individual class labels)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2017 01:04 PM