I have onOpen Trigger in document properties->Action tab. The action is 'select in field', so that 2 values are selected whenever the qlikview document is opened.
My requirement is to have same action in UI, so that user can get that default selection. I achieved this by putting the same action in a button. So, when i click the button the default selection is made.
My other requirement is, when we click on button again it should bring the normal state and change the text of the button to return to detault selection.?
You can assign the text of button in a variable, and use the action "Set Variable" to change the text each time the button is clicked. Perhaps a bookmark could be applied to make your default selections. You would then have to play around with the sequence on the button actions, and the onOpen actions to get desired result.
I can't open the qvw, so I couldn't mock it up. Hopefully these couple ideas help?