Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
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
jagan
Partner - Champion III
Partner - Champion III

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
jagan
Partner - Champion III
Partner - Champion III

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.

Not applicable
Author

Variable has to be set in document properties.

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

Not applicable
Author

Thank you Jagan and Erik. The solution works fine.

Regards

Sagar