- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2017 02:36 AM
Hello All,
var dept_list = [];
var str;
var bu = new GlideRecord('u_salesforce_access');
bu.addQuery('u_division',div);
bu.query();
while (bu.next()){
uniqueMembers.push(bu.u_bu.toString());
}
var arrayUtil = new ArrayUtil();
dept_list = arrayUtil.unique(uniqueMembers);
i have the dept_list values correct and displaying in log as
I need to return these choices to the client script GlideAjax and from the client script i need to populate each option as a dropdown for select box data type in our catalog item
Could you please help me with the code to return these choices to client script and make it populate for a drop down field
Rajesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2017 03:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2017 03:01 AM
Hi rajesh,
Use toString() while pushing to array it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2017 03:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2022 05:56 AM
how to remove this error org.mozilla.javascript error is coming in the drop down list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2017 03:12 AM
Hi Rajesh,
Please paste the code will fix it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2017 03:26 AM
Thanks Midhun
It worked for me