DHTMLX Scheduler Lightbox Section selectbox

Hi,

In my dhtmlx scheduler calendar I have used units view.

[code]scheduler.locale.labels.unit_tab = “Unit”
scheduler.locale.labels.section_custom=“Section”;
scheduler.config.details_on_create=true;
scheduler.config.details_on_dblclick=true;
scheduler.config.xml_date="%Y-%m-%d %H:%i";

	scheduler.config.lightbox.sections=[	
		{name:"description", height:130, map_to:"text", type:"textarea" , focus:true},
		{name:"custom", height:23, type:"select", options:sections, map_to:"section_id" },
		{name:"time", height:72, type:"time", map_to:"auto"}
	]
	
	scheduler.createUnitsView({
		name:"unit",
		property:"section_id",
		list:sections
	});[/code]

In this sections will be from database values.But when I click in second unit,it creates event in first unit and in the lightbox always first unit is selected in select box.

I used the following code.But this also alerts first unit value.

scheduler.attachEvent("onBeforeLightbox", function (event_id){ alert(scheduler.getLabel("section_id", scheduler.getEvent(event_id).section_id)); });

Please anyone help me…

Regards,
Rekha

Please be sure that objects in sections collection have unique ids. If ids not defined or not unique - the problem similar to above one will occur.