function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mlundwallmlundwall 

get list query in javascript list button

Hi,

 

I have a list of cases and want to implement a "take next case" button.

Since there are several views using different queues and filters I need to get the current view query so that I can pick the first one.

I thought about doing this with a custom javascript button.

 

Any ideas??

JanitaB2JanitaB2

I need to do the exact same thing.  We have various views that the user could have come from to get to a Case.  They want a "Next Case" button, which will grab the next case in the view that they came from.  They might not have come from a view, which would generate an error and stay on the current case.

 

I know I need a custom button, and I know how to do everything except find what view the user came from.  Can anyone help with this?

 

Mlundwall, did you get yours to work?

 

Thanks!