formSection getValue() Error using Mini Calendar in Lightbox

Hi,

i would like to use the Mini Calendar in the Lightbox and i changed the section from:

{name:“time”, height:72, type:“time”, map_to:“auto”}

to:

{name:“time”, height:72, type:“calendar_time”, map_to:“auto”}

After i changed from “time” to “calendar_time” the Mini Calendar as Datepicker works fine, but my statement:

var time = scheduler.formSection(“calendar_time”).getValue();

did not work anymore and fails with the Error: (provided by firebug)

“TypeError: d is undefined” (see pic enclosed)

I want to get the start_date and end_date picked in the Mini Calendars of the Lightbox.

Can anyone help me?


Hello,
currently getValue does not return selected value of minicalendar, we’ll fix it in the nearest time.
As a workaround, you may pass empty object into scheduler.getValue, the object will be updated with minicalendar values
config:scheduler.config.lightbox.sections = [ { name:"description", height:200, map_to:"text", type:"textarea" , focus:true }, { name:"time", height:72, type:"calendar_time", map_to:"auto" } ];get value:

var res = {}; scheduler.formSection("time").getValue(res); alert(res.start_date); alert(res.end_date);

It works fine!

Thanks a lot! :smiley: