Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Everyone,
I have created a 'Mark as Final' Button in a report using variables and Vizlib buttion actions in qlik.
i.e vStatus = 0 (Button not clicked)
vStatus =1 (Button clicked)
When user clicks on the reports it , it will show as below
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.
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
This is applicable to Qlik Sense Vizlib Extension Button too.