Qlik Community

QlikView Management

Discussion Board for collaboration on QlikView Management.

Highlighted
Partner
Partner

Reload time variable issue while reloading on QMC

Hi,

Does any of you faced following issue? I am using conditions in NPrinting. If application is reloaded today, then NP should send out report.

I have following variables in my script:

variable.png

When i am reloading application manually, then i got value 1 in vNPConditionTrue (so it means that condition is true, value is 1, application was reloaded today). When I force reload on QMC, then i have the same result.

So now my issue is following, when my application is on QMC is reloading after another application, even tho application was reloaded it gives me 0 value in my variable vNPConditionTrue.

Is that a QMC bug, that it doesn't see ReloadTime() inside variable, but then why it does work when i force to run application on QMC by pushing run button?

1 Solution

Accepted Solutions
Partner
Partner

Re: Reload time variable issue while reloading on QMC

Hi,

Would like to share solution, if anyone in future will face same issue:

1) In the back (script), replaced  Let vNPLastReloadDate = Date(Floor(ReloadTime())) with Let vNPLastReloadDate = Date(today(1));

2) In the front (Settings->Variable Overview) as vNPConditionTrue pasted into Definition : =if(vNPLastReloadDate =today (),1,0)

Now when applications are reloaded within a flow on QMC, if application run successfully vNPConditionTrue is 1, and NPrinting can execute condition.

2 Replies
MVP & Luminary
MVP & Luminary

Re: Reload time variable issue while reloading on QMC

ReloadTime returns the reloadtime of the previous reload of the document, not the one executing when the script is run. Perhaps that explains what you're seeing. Try Now() instead of ReloadTime().


talk is cheap, supply exceeds demand
Partner
Partner

Re: Reload time variable issue while reloading on QMC

Hi,

Would like to share solution, if anyone in future will face same issue:

1) In the back (script), replaced  Let vNPLastReloadDate = Date(Floor(ReloadTime())) with Let vNPLastReloadDate = Date(today(1));

2) In the front (Settings->Variable Overview) as vNPConditionTrue pasted into Definition : =if(vNPLastReloadDate =today (),1,0)

Now when applications are reloaded within a flow on QMC, if application run successfully vNPConditionTrue is 1, and NPrinting can execute condition.