Reference Qualifier not working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 01:08 AM
Hi, there is Catalog item when trying to try it, this is not working as expected.
Details:
When Technology is selected, respective courses which are mapped with that technology to be displayed under lookup.
But the same is not working.
Script include, Ref Qualifier screen shots enclosed.
Plz provide solution on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 09:22 PM
Hello @Yashwanth_reddy ,
Can you share the code and reference qualifier ? From the images cannot see them clearly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 10:28 PM
very difficult to see the scripts.
Please share the actual scripts and not images
Also what debugging have you done from your side?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 10:55 PM
Also plz suggest what best can be done to achieve the requirement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 10:52 PM
Hi please find scripts:
Script include:
var Training = Class.create();
Training.prototype = {
initialize: function() {},
getCoursesByTechnology: function(technology) {
// Query the courses based on the technology field value
var courses = [];
// Replace 'course_table' with the actual name of your course table
var gr = new GlideRecord('x_meri9_e_training_training_programs');
gr.addQuery('selected_users', technology);
gr.query();
while (gr.next()) {
var CourseName = gr.getValue('name');
courses.push(CourseName);
}
return courses;
},
type: 'Training'
};
Client script: