AddEvent in Unit view

Hi,
Currently i’m working with the function AddEvent (docs.dhtmlx.com/doku.php?id=dhtm … addevent&s[]=AddEvent)
This functionality work quite good, but I don’t know how I could implement the addEvent also in the Unit mode. It seems to work, but it always add the event on the first column.

Does anyone has an idea how to solve this?
tnx in advance

Kootsj

Hello,

You unit view is linked (mapped to) some property, so you simply need to pass it with the correct unit id:

scheduler.addEvent({ start_date: <date>, end_date: <date>, test: "Your text", section_id: 5 // for example });
Kind regards,
Ilya

tnx Ilya! it is even easier than I thougt…
I already found the section_id, but i couldn’t figure it out how this could be implemented…
I thought “section_id” was the xth column you’ve to select, but it seems to be the “id” of the given resource…