- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2025 06:56 AM
Hi Team,
I have applied a reference qualifier for a variable in a catalog item and tried using a script include for it. I am retrieving CI classes from a custom table and applying them to the CMDB CI table to filter CIs. However, it is not working. Can you help with this?
Reference qualifier: javascript: new FNC_Util( ).getCIFilterForRetire();
Script inculide
Thank you in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2025 07:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2025 07:15 AM
Hello @Siva82
The methid that you are calling via script include in your reference qualifier is "grtCIFilterForeRetire" and the function that you have defined within script include is "getCiFilterForQualifier" - please correct the function name.
Additionally, you have added if condition on ci_class, but you haven't referenced from where, and it should be u_ci_class.
Kindly mark my answer as helpful and accept solution if it helped you in anyway,
Regards,
Shivalika
My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194
My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2025 07:16 AM
Hi @Siddhesh Gawade ,
- One issue i found that you are using one getCIFilterForRetire() this is reference qualifier and getCIFilterForQualifer function in Script Include.
- I don't see ci_class being defined any where in the script include function. What value it is storing?
- You are using var u_id = gs.getUserID(); ->Is there any variable in your catalog which is pointing to sys_user table and you want that user to be in your filter condition dynamically?
If my response helped, please mark it helpful and accept the solution so that it benefits future readers.
Regards,
Rohit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2025 07:18 AM
Hello @Siva82 ,
Please check your script include name as well as the function name you used in the reference qualifier.
Reference qualifier: javascript: new FMC_CI_check().getCIFilterForQualifer();
Please mark this as "correct" and "helpful" if you feel this answer helped you in anyway.
Thanks and Regards,
Ashish