Skip to main content
Announcements
Get Ready. A New Qlik Learning Experience is Coming February 17! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to see current time in Qlikview

How to see current time in Qlikview

13 Replies
oknotsen
Master III
Master III

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.

May you live in interesting times!
ccsimo16
Contributor III
Contributor III

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

sumit_ranjan_pa
Former Employee
Former Employee

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. 

ccsimo16
Contributor III
Contributor III

Thanks Sumit, i will give it a go