Timeline/Unit views: Getting which resource was dropped on

Hello,

I did a console.log call to output the event in OnBeforeEventChanged, but I didn’t see a field that says which resource it was dropped on.

Is there a way to do this? I can’t find it in the documentation and I don’t see a demo/sample that outputs that data.

Thanks!

Hi,
try ‘scheduler.getActionData’ method. Also, when ‘onBeforeEventChanged’ triggers, the related property of an event (event.section_id or similar) should already contain the id of the resource

scheduler.attachEvent("onBeforeEventChanged", function(ev, e, is_new){ var resource = scheduler.getActionData(e).section return true; });
docs.dhtmlx.com/scheduler/api__s … ndata.html

Awesome. Thanks again. Great support :slight_smile: