Answered
Do I have to manually enter all time values in item box ?
There must be an easier way.
Can you save or import to item box ?
Thanks
Do I have to manually enter all time values in item box ?
There must be an easier way.
Can you save or import to item box ?
Thanks
var Hours = "00/01/02/03/04/05/06/07/08/09/10/11/12/13/14/15/16/17/18/19/20/21/22/23".split("/");var Minutes = "00/15/30/45".split("/"); var Times;for (h = 0; h < Hours.length; h ++){for (m = 0; m < Minutes.length; m ++){Times = Hours[h] + ":" + Minutes[m];this.addItem(Times);}}
//Interval in Minutesvar Interval = 5var Time; for (hrs = 0; hrs < 24; hrs ++){for (min = 0; min < 60/Interval; min ++){hh = hrs.toString();if(hh.length < 2){hh = hh.replace(hh, "0" + hh);}temp = min * Interval;mm = temp.toString();if(mm.length < 2){mm = mm.replace(mm, "0" + mm);}Time = hh + ":" + mm;this.addItem(Time);}}
Such as:
$ = Num2Time(time(), "HH:MM:SS")
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs