Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
vikas_nandanwar
Creator II
Creator II

Selection in qsVariable

Hi,

I am using qsvariable in my app.

A t default when I start my app, my data shows blank(No selection)

i need to click on the button of the qsvariable created to display my charts.

I have attached the before-after images of my app.

How to have a default selection saved when my app is opened for the first time

Thanks,

Vikas

3 Replies
lironbaram
Partner - Master III
Partner - Master III

hi

assuming when you click on one of the button you set a value for a variable .

you can set this variable default value in the script

using this expression

set vCurrency = 'USD';

replace vCurrency  with your variable name

mdmukramali
Specialist III
Specialist III

Hi Vikas,

Once you open the application check the variable value if it's null then write a condition something like

vVariable = if(len(vVariable)=0,AssginSomevalue,vVariable)

avinashelite

if their is no selection  then Set a default value for the variables..so it will be auto populated