Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
sn_9052
Contributor II
Contributor II

Second(),odd(),now()

Hi All,

Can any one explain the below function,How it execute in qlikview.

I wrote the below code for flashing a Text box background color,but I want to know that functions what it do in that code.

if(Odd(Second(Now(1))),Yellow(),Green()).

Thank You.

22 Replies
sunny_talwar

I think all this is doing is changing the color from Yellow to Green every 2 seconds.

Second() function give the current second and Odd() function checks if the value is Even or Odd.. If it is Odd, then Yellow and When it is Even then it shows Green

YoussefBelloum
Champion
Champion

unfortunately this will not work in the server/accesspoint

sunny_talwar

Why not?

YoussefBelloum
Champion
Champion

Because I try it many times, colors will not change periodically on the accesspoint

sunny_talwar

Sense or view? may be related to Now()?

YoussefBelloum
Champion
Champion

I only try it on Qlikview..

sunny_talwar

Seems to be working okay on access point created object... will try by creating an object before I move it to production

YoussefBelloum
Champion
Champion

Cool ! let me know

YoussefBelloum
Champion
Champion

for me, on a created object, it is completely freezing if i don't move the mouse..