How to add the timer into the interface ?

Certified Associate Developer

i was creating the question bank application in which i want the particular exam to be end in that specific time so how can i do that ? 

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Declare a local variable with the time period and have show when for specific section  in the interface 

    a!localVariables(

    /* specify the time in minutes or hours when you want to end the exam */
    local!flag: now() + minutes * 30,
    local!showWhen: a!refreshVariable(
    value: now() < local!flag,

    /* specify the interval after how many minutes you want to end the exam */
    refreshInterval: 30
    ),
    a!cardLayout(
    showWhen: local!showWhen,
    content:{

    }
    )
    )

    Hope this will work

Reply
  • 0
    Certified Senior Developer

    Declare a local variable with the time period and have show when for specific section  in the interface 

    a!localVariables(

    /* specify the time in minutes or hours when you want to end the exam */
    local!flag: now() + minutes * 30,
    local!showWhen: a!refreshVariable(
    value: now() < local!flag,

    /* specify the interval after how many minutes you want to end the exam */
    refreshInterval: 30
    ),
    a!cardLayout(
    showWhen: local!showWhen,
    content:{

    }
    )
    )

    Hope this will work

Children