- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2018 06:22 AM
Hi,
I have a slush bucket to select values of locations. i want to feed the selected values to a query in client script. I used the following but it doesn't pull the values.
I have the slush bucket defined: <g:ui_slushbucket name="sb" left_header="Available" right_header="Selected">
var values = sb.getValues(sb.getRightSelect());
What could be wrong?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2018 07:09 AM
Did you try: var values = sb.getValues(getRightSelect());
Without the second sb in it
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2018 06:26 AM
Initially looking at this, could you try a different variable? I think values is one of those core ones that we shouldn't use?
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2018 06:34 AM
Hi,
I'm not a pro at this by any means, but take a look at: https://community.servicenow.com/community?id=community_question&sys_id=b610d3e5dbdcdbc01dcaf3231f96...
Where did you define the slush bucket, in the HTML?
Client script would need to look something like what they have in that post I would imagine (give or take).
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2018 06:40 AM
Hello,
Please refer follow link, it may be helpful to you.
Reference SlushBucket in Client Script of UI Page - Developer Community - ServiceNow Community
Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2018 06:43 AM
Yes, I just referenced that above.
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!