Dynamic Reference Qualifier not working

squillis
Kilo Expert

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?

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

10 REPLIES 10

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?


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...


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.


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)


find_real_file.png