Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Select default value in listbox without trigger

Hi,

we are actually face to a...difficult requirement so i ask to your help :

our user wants two differents things :

  • default value (like year = current) when he open application for the first time or press "Remove document state" button.
  • keep context and selections. So, unfortunately, no triggers "OnOpen".

We tried to create an initial state for our application containing differents default values using macro like :

sub default

set field = ActiveDocument.Fields("YEAR")

field.Select "2014"

end sub

That's works fine if macro is define into Macro's Module (plug to a button for example) but not in script. But our purpose is to force automatically, after a reload, some selections into our .qvw (of course we tried "OnPostReload" triggger, but doesn't work with publisher...).

Do you know a method or a tips to do that ?

Thaks a lot,

Julien

4 Replies
Not applicable
Author

You have to add an Home sheet in the dashboard with a get Started button with an action Select in field year = 2014.

Like qlikview demo.

alexandros17
Partner - Champion III
Partner - Champion III

Maybe you can set a variable in the script with the default value and use the variable in listbox to set the field

sujeetsingh
Master III
Master III

Can you post one sample ??

Not applicable
Author

Hi,

thanks for your answers.

We suggest a two parts solution to our customer :

  1. initial state during deployment of a new application version
  2. "reset" button (like Qlikview demo) applying some default values

Waiting for acceptance now

Julien