Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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
Luminary Alumni
Luminary Alumni

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
Luminary Alumni
Luminary Alumni

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