- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2024 04:09 AM
Hi,
Am calling script include and getting the filter values as well but not able to set those values in OnChnage client script of Reference(Groups table) variable.
Below is my Onchange script please let me know what.s the issue here?
-----------------------
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2024 04:45 AM
@raj99918 Please update the script include script as follows.
var Groupsdata= Class.create();
Groupsdata.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {
getGroupnames: function(user) {
var groups = [];
var gr = new GlideRecord('sys_user_grmember');
gr.addQuery('user', user);
gr.query();
while (gr.next()) {
groups.push(gr.group.sys_id);
}
return 'sys_idIN' + groups.toString();
},
type: 'Groupsdata'
});
Also, apply the same reference qualifier again on the Group field in order to make the reference qualifier call the script include.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2024 04:45 AM
@raj99918 Please update the script include script as follows.
var Groupsdata= Class.create();
Groupsdata.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {
getGroupnames: function(user) {
var groups = [];
var gr = new GlideRecord('sys_user_grmember');
gr.addQuery('user', user);
gr.query();
while (gr.next()) {
groups.push(gr.group.sys_id);
}
return 'sys_idIN' + groups.toString();
},
type: 'Groupsdata'
});
Also, apply the same reference qualifier again on the Group field in order to make the reference qualifier call the script include.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2024 04:52 AM
Hi @Sandeep Rajput Sorry still it's not pulling the filter values and its getting all the group names.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2024 04:56 AM
@raj99918 Sent you a message, please check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2024 04:27 AM
Hi @Ankur Bawiskar Can you please help me here