Make sorting stick

interfasys

Verified User
Joined
Oct 31, 2003
Messages
1,821
Location
Switzerland
When viewing tickets,we first have to click a few times to see the latest ones, but what's worse is that when we delete one, we have to do it all over again because the sorting preferences are not saved.
It would be great if the sorting preferences could stick, at least for the current session.
 
Hello,

I'm assuming you're referring to CMD_TICKET_MANAGE?

What I've done (since doing it at the session level adds a greater level of complexity) is to simply pass the current GET variables to the form when marking as read, or marking as closed.
If that "sorting" variable exists when either of those buttons is pressed, upon completion, when it says "Tickets Updated", it will now also show you: "View Previous sort" in the details at the bottom.
This will bring you back to the exact same sort as before the close/read click.

John
 
It's in CMD_TICKET. I can see a sort1 parameter in the URL, but it's lost after performing an action, so your solution should work.
 
Added to code for CMD_TICKET in the Messages table (didn't add to tickets table, since there is no delete)

Also, when marking a message as read, I didn't bother returning a message. It will now flip back to the same page, same sorting.
This is because the User will know it worked, as the message will instantly go grey.. so no need for the extra page.

Available for the next release.

John
 
Back
Top