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: 
Anjaneya_prasad_Chattu
Contributor II
Contributor II

Qliksense Button Issue

Hello Everyone, 

I have created a 'Mark as Final' Button in a report using variables and Vizlib buttion actions in qlik.

Anjaneya_prasad_Chattu_0-1728422170972.png

 

i.e vStatus = 0 (Button not clicked)
     vStatus =1 (Button clicked)

When user clicks on the reports it , it will show as below

Anjaneya_prasad_Chattu_1-1728422347413.png

But when after page refreshing also button is getting active .  

Once the button is finalized it should not become active untill the app next refresh.

Need some suggestions and ideas to implement this.

Thank you.

Labels (2)
1 Reply
Qrishna
Master
Master

Probably you dont have any condition setup between button click time and reload time. your vStatus variabe is just capturing the button click value. 

Try Below:

Under button Actions create:

1. variable1 : vStatus, value 0

2. variable2 : vButtonClickTime, value: =if(vStatus=0,now())

For Button condition: ReloadTime()>vButtonClickTime

button color: =if(ReloadTime()>vButtonClickTime,green())

So this literally deactivating the button when Click time > Realod Time, and the condition immediately deactivates the button when Click Time >  Reload time and acti vates (and makes button color green) as soon as Reload time > = vButtonClickTime

2486067 - Decativate Button until next refresh once clicked - 1.PNG

2486067 - Decativate Button until next refresh once clicked - 2.PNG

2486067 - Decativate Button until next refresh once clicked - 3.PNG

This is applicable to Qlik Sense Vizlib Extension Button too.