ale5
February 3, 2015, 2:53pm
#1
HI,
I am trying to setup a function
scheduler.attachEvent(“onEventAdded”,function(id,ev){
location.href=“fill_fields.php?IdEvento=”+ev.id;
})
What I need is the tid of the event the ev.id returns back the “sid” of the event.
I tried to use:
this.getEvent(ev.id) without success
Could you please help me to retrieve the tid of the event?
Thanks
Ale
Hi,
the ‘tid’ is not yet known when onEventAdded is fired, you’ll need to catch onAfterUpdate event of the dataprocessor to obtain it docs.dhtmlx.com/api__dataprocess … event.html
ale5
February 4, 2015, 4:50pm
#3
Thanks,
I have tried to do it simple just for testing purposes, but nothing is alerted.
scheduler.attachEvent(“onAfterUpdate”, function(id, action, tid, response){
alert(id);
alert(tid);
})
Could you please help me?
Sorry for bothering, but I am just starting programming.
Thanks
ale5
The event is fired by dhtmlxDataProcessor, which sends all update requests to the server. It is created separately from a scheduler object
screencast.com/t/jEd9oWymb