Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How to see current time in Qlikview
And since none of those 8 answers (mine included) tell you that the use of now() on your dashboard is bad for performance, I will:
It is bad for performance.
So I refer to the first part of my previous reply as probably the better solution for getting the current time.
Hi
I have my dashboard on a large screen using Chrome web browser. is it possible to add current time so the time is always updating, at the moment the time is only updated when the qvw is updated.
thanks
Chris
HI Chris,
The time will not get updated unless you make the page load multiple time.
However the other way of achieving it would be to create an extension.
You can add the following piece of JS code in the script to make the page load every two second.
Qv.AddExtension("LiveTimeSample",
function () {
function AutoRefresh(t){
setTimeout("location.reload(true);", t);
}
var time = new Date();
this.Element.innerHTML=time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds();
AutoRefresh(2000);
});
This however will not serve you well. As the page will be refreshed from the root and all the selection will vanish.
Thanks Sumit, i will give it a go