Update unit view ?

Hi,

how do update the unit view , i tried

var updated = scheduler.updateCollection(“my_unit”, mylist);
scheduler.setCurrentView();
console.log(updated);

updated is true but nothing happens ?
what i’m doing wrong ?

Thanks

It’s possible to update units view using updateCollection function.
See example: docs.dhtmlx.com/scheduler/snippet/895739aa

is there any other way when i do like this?

scheduler.createUnitsView({
name:“unit”,
property:“unit_id”, //the mapped data property
list:[ //defines the units of the view
{key:1, label:“Section A”},
{key:2, label:“Section B”},
{key:3, label:“Section C”}
]
});

Hello,
specifying scheduler.serverList and then updating it using scheduler.updateCollection is an expected approach in this case.
Can you clarify why you want to do differently?

docs.dhtmlx.com/scheduler/api__s … rlist.html
docs.dhtmlx.com/scheduler/api__s … ction.html