Refresh variables in 5 seconds

Certified Senior Developer

Hi All,

I have a requirement where first interface/section( with inprogress spinner gif) needs to be displayed for 5 seconds and then Second one.

I tried with refresh variable but we have minimum refresh interval of 30 seconds only.

Do we have any alternative way to do?

My Solution with 30 seconds interval ,

a!localVariables(
local!currentTime: now(),
local!waitingTime: a!refreshVariable(
value: local!currentTime + intervalds(0, 0, 5),
refreshInterval: 0.5
),
{
if(
local!waitingTime >= now(),
a!sectionLayout(label: "First", contents: {}),
a!sectionLayout(label: "Second", contents: {}),
)
}
)

  Discussion posts and replies are publicly visible