Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
ckoltam
Contributor III
Contributor III

Automate a button in qlik sense

Hi

Is there a way that when I open a board, the button inside it is automatically selected?


I have a button with the action 'select values in a field'. I want that button to be activated when opening the dashboard. Is it possible to do this?


Thanks for your support

7 Replies
Frank_S
Support
Support

Hi @ckoltam

Rather than enabling a button, consider what the button is used for. 

If you are selecting values in a field, you can also enable a bookmark to do this in combination with a sheet 'action' 

This is described here:
https://help.qlik.com/en-US/sense/August2022/Subsystems/Hub/Content/Sense_Hub/Sheets/setting-sheet-a...

 

Kind regards...

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
ckoltam
Contributor III
Contributor III
Author

Hi, @Frank_S  Thank you for your response. Unfortunately, I work with an old version of Sense so I can't use that option.

 

RafaelBarrios
Partner - Specialist
Partner - Specialist

Hi @ckoltam 

How old?

What @Frank_S  commented has been available for a while

https://youtu.be/ryvHR_baTrs

best,

 

ckoltam
Contributor III
Contributor III
Author

Hi @RafaelBarrios 

From February 2020

RafaelBarrios
Partner - Specialist
Partner - Specialist

Hi again 

if for any reason you can’t use sheets action, you may try using a variable to do the trick if no fields are selected.

vAnySelection

=if(Len(getcurrentselections())>0,'','YearField={2022},')

and your expressions should be something like

sum({< $(vAnySelection) other_condition={whatever} >} sales)


It could have syntax error, couldn’t try that

hope this helps

Best,

ckoltam
Contributor III
Contributor III
Author

Thanks @RafaelBarrios. I tried it this way and it looks like it may work, but where should I put this expression to make it work automatically? I need this selection as if it were a predefined bookmark.
 
I tried to put it here, but I was not successful.
ckoltam_0-1665763079596.png