Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

ReloadTime() not getting set?

Greetings.

I've had complaints about a QVW I have that the ReloadTime() keeps displaying the time *I* last ran the load (before I distributed the QVWs). The QVWs get delivered pretty much empty, and then the user has them loaded in an overnight process that is called with the OCX. Other system variables seem to be fine, but even though the data is clearly updated, the ReloadTime() remains set to the last time I had done the reload while it was under development.

Heard of this? I can just change it to store the date in my own variable at the end of the run - I was just keen on using system variables where I could.

Thanks.

14 Replies
Anonymous
Not applicable
Author

Rob Wunderlich wrote:

If used in the script, it reflects the end of the *previous* script run.

This is exactly how I'm using in the script in one of my applications:

LET PreviousReload = ReloadTime();

It was working as expected, but recently I upgarded to QV11 SR2, and it changed.  In SR2, ReloadTime() returns the time of the script execution start, and keeps it during the reload process.  After the reload is finished, it returns the end of the reload process.

Have to use something else to get the previuos reload time...

Regards,

Michael

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Michael,

It looks like SR2 changed the interpretation of now(0) as well! I think both the ReloadTime() and now(0) change are bugs. The Help for now(0) says:

"0 Time at previously finished reload (not currently ongoing reload)"

and for ReloadTime():

"Returns a timestamp for when the script last finished reexecuting."

There have been changes in behavior of now() in the past, and they have caused me rework Because of that, I don't rely on any of the time functions to establish a point in time except for now(1), the current time. I use now(1) to set my own variables.

-Rob

Anonymous
Not applicable
Author

Rob,

I'm going to report it to QlikTech as a bug.

As for my application, I'm now getting the previous reload time from the timestamp of a QVD file which is modified later in the process.

Regards,

Michael

amien
Specialist
Specialist

Did you get any response from QlikTech?

Anonymous
Not applicable
Author

Yes, this is from Oct 15, 2012:

"...  Your recent support case as described below has now been confirmed by our Issue Analysis team as a bug, ID 51903.

Due to uncertainties regarding potential related problems and program priorities we cannot guarantee a fix date at this time  ..."

I didn't check if it was fixed later.

Regards,

Michael