Using the selected values in slush bucket to query

samadam
Kilo Sage

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?

1 ACCEPTED SOLUTION

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!

View solution in original post

11 REPLIES 11

Allen Andreas
Administrator
Administrator

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!

Allen Andreas
Administrator
Administrator

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!

Bhagya Lakshmi
Mega Guru

Hello,

Please refer follow link, it may be helpful to you.

Reference SlushBucket in Client Script of UI Page - Developer Community - ServiceNow Community

 

Thanks.

Yes, I just referenced that above.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!