Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get previously selected value of listbox?

Hi,

I have two sheets in the QlikView file.

I clear a listbox when i move to other sheet.

but if user come back to previous sheet, then i want to show them the previously selected value of listbox in listbox.

so how can we can get the previously selected value of listbox?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

But what if the user makes some selections (you'll never know how many different selections) in the other tab?

You can bookmark your selections in tab1 prior clearing it and then recall the bookmark when returning, please have a look at these threads and samples:

http://community.qlik.com/message/90098#90098

http://community.qlik.com/message/102192#102192

Hope this helps,

Stefan

View solution in original post

5 Replies
Not applicable
Author

I think you should use the set analisys...  {$1} you access to the previus resultset i think

Alessio

swuehl
MVP
MVP

But what if the user makes some selections (you'll never know how many different selections) in the other tab?

You can bookmark your selections in tab1 prior clearing it and then recall the bookmark when returning, please have a look at these threads and samples:

http://community.qlik.com/message/90098#90098

http://community.qlik.com/message/102192#102192

Hope this helps,

Stefan

Not applicable
Author

Hi Stefan,


I am using the bookmarks.

In sheet1, i have the listbox a1 which i clear it on sheet2 onActivate Trigger.

In sheet1, i have applied onLeave sheet, i have given Replace Bookmark and onActivate i have given Apply Bookmark. Is this correct?

or Am i going wrong?

I want the listbox a1 selection when i come back to sheet1 from sheet2.

swuehl
MVP
MVP

I think that should be correct.

Wait, probably you need to clear all selections prior applying the bookmark (add another action to the OnActivate action).

Hope this helps,

Stefan

Not applicable
Author

Hi Stefan,

Thanks for the solution.

i was clearing the field before the apply bookmark in the trigger.

so it was not working.

now i promoted it to first, so its working now,

thanks