Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
cdominguez
New Contributor II

update date and time from a button

Upon pressing the button I want that updates the date and time.

The only way that is updated by a partial reload of data.

qlik.png

in my textbox I have ='Última Actualización ' & timestamp(reloadtime())

what I want is to press the button and my box is upgraded

thanks for the support!!

4 Replies
ali_hijazi
Honored Contributor

Re: update date and time from a button

Actually reloadtime() will give you the last time the document was reloaded

this will be updated after each reload and end users will see the correct and updated time

unless you want an updated time of actual date then you can use Now() in your text object

cdominguez
New Contributor II

Re: update date and time from a button

Hi Ali Hijazi

what I mean is that when I select the blue button to save the date and time at which the button was pressed and the info that I keep a QVD.

thanks for the support

ali_hijazi
Honored Contributor

Re: update date and time from a button

ok but keep in mind end users who see the document via browser cannot reload the document

this can be done only via the client

ok in your script at the final end line put the following script:

let vReloadTime = TimeStamp(Today());

Reload_Time:

load $(vReloadTime) as Reload_Time

autogenerate 1;

store Reload_Time into Reload_Time.qvd

let vReloadTime = null();

drop table Reload_Time;

hope this helps!!

Re: update date and time from a button

Hi,

maybe like this:

QlikCommunity_Thread_142026_Pic1.JPG.jpg

hope this helps

regards

Marco

Community Browser