Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Should display date and time of last-time button clicked

Hi,

In my file having an Button and Textbox.

But in my textbox should display date and time of last click on button.

If you don't understand properly my question reply me back, i will give u a brief explanation.

Thnks

4 Replies
Anonymous
Not applicable
Author

Hi,

You can add a variable Settings -> Variable Overview -> Add

     e.g. vButtonTime.

In your button settings after all actions, add a final one:

     Actions -> External -> Set Variable: vButtonTime to value =now()

Now add the variable to your text box:

     e.g. ='Last clicked: ' & vButtonTime

Best regards,

Dilyana

Dilyana Ivanova

Consultant

CapricornVentis

Not applicable
Author

Hi Dilyana, thanks for your reply.

But when i am adding the variable to TextBox, then it is not showing anything except "Last Clicked:" .

I am using same variable what u used in your post. Please cross check this and reply me.

Thnks

Anonymous
Not applicable
Author

Please see the attached example.

You can also use this for the timestamp function for the text box (it allows for special formatting):

     ='Last clicked: ' & timestamp('$(vButtonTime)')

erichshiino
Partner - Master
Partner - Master

Hi,

I believe Dilyana_CVL answer is right. I just put it on a QVW.

Hope it helps,

Erich