Work hours in unit view with different times

Hi

I am trying to set different working hours in unit view for the same days.

I have the unit view displaying 4 different units for one day (say Saturday). Adding a time limitation on one of the units works. But adding another time limitation to another unit overrides the first time limitation which then disappears.

Is there any way to do this?

Thanks

Hello,

How do you add those block times? (show us your code)
Do you have updated version of limit extension or one in the package (it doesn’t really support such use case).

Kind regards,
Ilya

Hi Ilya

Code below:

function init() {

	var sections=[
		{key:1, label:"Section A"},
		{key:2, label:"Section B"},
		{key:3, label:"Section C"},
		{key:4, label:"Section D"}
	];
	
	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.blockTime(0, "fullday",{"unit": [2,4]});
	scheduler.blockTime(0, [0, 10*60, 18*60,24*60],{"unit": [1]});   //This line overrides the one above
	
	scheduler.createUnitsView({
		name:"unit",
		property:"section_id",
		list:sections
	});
	scheduler.config.multi_day = true;
	
	scheduler.init('scheduler_here',new Date(2009,5,30),"unit");
	scheduler.load("../common/units.xml");
}

The second blockTime renders the first one ineffective. So on a given day, if two schedules or individuals have different working hours, one cannot display it in unit view?

I am using this file - download/file.php?id=4059

Claus