Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Activate object

Hi all,

I need to activate an object (i.e.,) a button has to be activated (Pressed) automatically when i click on a sheet.

Updated:

I need that button to be clicked or pressed automatically for every 10 minutes,

And i don't want the user to do that manually pressing every time, it should happen automatically.

Please let me know if it is possible or not.

Thanks.

25 Replies
Anonymous
Not applicable
Author

I have some other requirement. This one i just said as an example.

Can you explain what is that polymer team to integrate that enable option.?

m not getting it..

Thanks

adamdavi3s
Master
Master

=if(frac(Minute(now())/10)>0,0,1)

Anonymous
Not applicable
Author

This expression will hide that button for 10 minutes.

error.PNG

I don't want this button to hidden. I want this button to be pressed or activated automatically every 10 minutes

Thanks

adamdavi3s
Master
Master

That totally depends on how you implement the logic, to be honest I am struggling to understand what you are trying to achieve with the button press.

You might need to come up with a way of using variables to step through your process, the logic I provided could be your starting point.

Anonymous
Not applicable
Author

Thanks for your reply. let me explain in brief.

Consider i have a button, and i have 3 text boxes.

Once i click on that button.

1st text box will be displayed for 1 minute, and then it will hide, after that 2nd text box will display for 1 minute and then it will hide and similarly the third one.

I want this process to be continued to display again from the starting, once the third one is done.

If all the 3 text box's have completed its 1 minute, then again it should display the first text box and so on, it should be in a loop..

I have successfully done the loop for first time.

To display the 1,2,3 text box's again, i have to click on that button again.

So i don't want to click on that button every time and display those 3 text boxes.

I need those text boxes to be repeated again and again in an order.

How may i achieve this.

Thanks

adamdavi3s
Master
Master

Perfect and exactly what I needed to understand... this can certainly be done with variables.

So, you just need to trigger the cycle using the logic which should be do-able, can you share a qvw with your text boxes in so I can expand on it?

Anonymous
Not applicable
Author

I have attached the qvw file.

Please look into it.

Thanks for your time..

adamdavi3s
Master
Master

It is no bother at all, I like a challenge!

So this is a starting point for you but this will work as I set this up and the first box pinged up at 0840 and disappeared after 20 seconds

set vEndTime to

=if(frac(Minute(now())/10)>0,0,timestamp(now()+($(vTimerMinutes))/1440))

Then you just need to dollar sign expand that so for example in your show use:

=if(now()<$(vEndTime),1,0)

rather than =if(now()<vEndTime,1,0)

Anonymous
Not applicable
Author

can you please attach the qvw file, where you made the change.

adamdavi3s
Master
Master

here you go, don;t forget if you push the button it is going to overwrite the variable, so maybe use a second variable (or set of variables) for the button and use an OR clause in the show