Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
Customers, Partners & Luminaries only: You're invited to a Data Analytics Roadmap session. Read More
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

Default value in a variable

I have an Input Box which is linked to a variable, such that if I change the value in the input box, that value is assigned to the variable.

I want to have a default value(based on an expression) assigned to this variable everytime the document is opened but I am unable to figure this out?

Later the user can change the variable value from the Input Box, which anyways is working fine.

Thanks for the help,
Sagar

1 Solution

Accepted Solutions
Highlighted
MVP & Luminary
MVP & Luminary

Hi,

Try using Document triggers

Document Properties -> Triggers -> On Open -> Add Action -> External -> Set Variable -> Give variable and Expression in corresponding text boxes.

Hope this helps you.

Regards,

Jagan.

View solution in original post

3 Replies
Highlighted
MVP & Luminary
MVP & Luminary

Hi,

Try using Document triggers

Document Properties -> Triggers -> On Open -> Add Action -> External -> Set Variable -> Give variable and Expression in corresponding text boxes.

Hope this helps you.

Regards,

Jagan.

View solution in original post

Highlighted
Not applicable

Variable has to be set in document properties.

Using the OnOpen trigger - the variable will get the assigned value when opening the document

Highlighted
Not applicable

Thank you Jagan and Erik. The solution works fine.

Regards

Sagar