Configure Timer in My App

0
i have one entity exam in that i take one attribute duration of exam (In Integer it takes as a minute) i also have one entity where i take ExamStartTime and ExamEndTime i want to use timer when user start the exam i set the ExamEndTime (StartDateTime+ duration of exam) when i open my timer widget it show me the attribute where i select the endtime so how i configure my microflow in the timer widget tell me proper sequence how i configure timer in my app
asked
3 answers
0

Why not set the start time when starting, when ending set the end time and calculate and set the duration based on that?

answered
0

thanks for the info

answered
0

Hello Vishal bhatt, 

 

On your entity(Exam) you need to have three attributes starttime; duration; maximumEndtime, when you start the exam you need to have a micro/nano flow and set the starttime and calculate the maximum end time(start time + duration) then commit the ExamObject and start the exam(open exam page).

 

On the exam page you need a dataview with the Exam object and within the dataview the timer widget, as attribute you use ExamMaximumEndTime and in the action you can specify your action(probably you want to save and close the exam and all the questions and responses).

 

image.png

 

Hope this helps,

 

Good luck!

answered