Trying to figure out why my list grid with a field of type "time" is returning a validation error saying it is not a time. Here is the error:
and my datasource definition:
I am simply entering "9am" and "9pm" for the start and end fields. Do I need to explicitly specify a formatter of some sort? I thought the TimeItem field would format the input automatically?
Using SC7.0
Thanks
Code:
15:08:18.339:XRP6:WARN:RestDataSource:shiftDS:shiftDS.start: value: "2010-12-07T09:00:00" failed on validator: {type: "isTime", typeCastValidator: true, _generated: true, defaultErrorMessage: "Must be a time."} 15:08:18.339:XRP6:WARN:RestDataSource:shiftDS:shiftDS.end: value: "2010-12-07T21:00:00" failed on validator: {type: "isTime", typeCastValidator: true, _generated: true, defaultErrorMessage: "Must be a time."}
Code:
isc.RestDataSource.create({ ID: "shiftDS" ,fields: [ {name: "shiftid", hidden: true, primaryKey: true} ,{name: "start", title: "Start", type: "time", width: "50%"} ,{name: "end", title: "End", type: "time", width: "50%"} ] ,dataFormat: "json"
Using SC7.0
Thanks
Comment