Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
shekhar_analyti
Specialist
Specialist

Repeat of value based on expression with time gap of 3 seconds to give animated look . Is this possible ?

Hi All ,

I want to repeat a value based on expression . But i want that value to be repeated with delay of 3 to 4 second . Is that possible ?

Let me explain with example
star animation.PNG

When a user navigates to sheet 5 from any other sheet , i want to repeat the star value [chr(9734] but with few second of delay to make it animated look .For Barbara we have count value is 2 and hence Rating has two stars . What is intended was when a user navigates to sheet 5 the second instance of star should come with delay of few seconds .

Hope i am able to explain requirement .

Thanks & Regards

Shekar

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

it's based on time(now())

Each Star is a different column, we are just making it visible based on the time factor, unfortunately we do not have milliseconds with now()

Here is the Process>>

when you Click on "Go to Main" >> Set a variable with current time

Then vstar1 sets rgb() after 1 second from recorded time

vstar2 sets rgb() after 2 second from recorded time

and vstar3 sets rgb() after 2 second from recorded time


Check the variables definition and the TextExpression for each expression

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

12 Replies
Kushal_Chawda

Do you mean, if rating is 2 then, 1st start should be there and 2nd star should come with delay and then 3rd with some delay?

shekhar_analyti
Specialist
Specialist
Author

Exactly .... You are correct

shekhar_analyti
Specialist
Specialist
Author

A‌ny suggestion ... loveisfail

vinieme12
Champion III
Champion III

See attached sample

animating_stars_inStraightTable.gif

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
shekhar_analyti
Specialist
Specialist
Author

Please explain .. i got little confused ... how are you handling stars ...
Also please note my application can have 10 stars as well . I think its not that dynamic . 

vinieme12
Champion III
Champion III

it's based on time(now())

Each Star is a different column, we are just making it visible based on the time factor, unfortunately we do not have milliseconds with now()

Here is the Process>>

when you Click on "Go to Main" >> Set a variable with current time

Then vstar1 sets rgb() after 1 second from recorded time

vstar2 sets rgb() after 2 second from recorded time

and vstar3 sets rgb() after 2 second from recorded time


Check the variables definition and the TextExpression for each expression

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
shekhar_analyti
Specialist
Specialist
Author

Thank you So much ... It will help me a lot

vinieme12
Champion III
Champion III

Glad to help

Cheers

V

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Anil_Babu_Samineni

Good Work, Here, if they have stars around 10 +. Then you mean to say we need to write 10+ Variables for that? Liked it

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful