Reference qualifier is showing only one value
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 05:28 AM
Hello,
I am calling script include in reference qualifier and i am getting only one value, instead of showing related values.
script include i am using:
platform: function() {
var app = current.cmdb_ci.getValue();
var gr = new GlideRecord('u_rm_data_management');
gr.addEncodedQuery('u_active=true^u_type=Choice^u_item=App Platform^u_applicationsLIKE' + app);
gr.query();
var result = [];
while (gr.next()) {
result.push(gr.sys_id.toString());
return 'sys_idIN' + result.join(',');
}
},
adv ref qual condition: javascript: new scriptinclude().fucntion();
Please help in this.
20 REPLIES 20
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 06:38 AM - edited 10-29-2024 06:47 AM
Hello @Moin Kazi
tried but no luck. field type is changing to choice when i tried writing return outside of loop. is anything we can do with attributes: ref_auto_completer=AJAXReferenceChoice,encode_utf8=false,edge_encryption_enabled=true