afterProcessing in Crossoption

Hello,

I want update manually some field of my database but the event “afterProcessing” is fired before the funciton CrossOptionConnector.

My logs:

UPDATE crono_conferencistas SET rol_conf=‘Conferencista’ WHERE id_conf=‘1’ AND id_crono=‘24’

INSERT INTO crono_conferencistas(id_crono,id_conf) VALUES (‘24’,‘1’)

I want change the order INSERT first cotinue of my UPDATE

My code:

$confs = new CrossOptionsConnector($res, $dbtype);
	$confs->options->render_table("conferencistas","id_conf","id_conf(value),nombre(label)");
	$confs->link->render_table("crono_conferencistas","id_crono", "id_crono,id_conf");

$scheduler = new SchedulerConnector($res, $dbtype);
$scheduler->set_options("conferencistas", $confs->options);
$scheduler->event->attach("afterProcessing","update_trabajos");
$scheduler->render_table("cronograma","id_crono","start_date,end_date,event_name,section_id","tipo_actividad");

How I can change the order?

Try to use the afterUpdate event instead

docs.dhtmlx.com/connector__php__ … event.html

This event occurs before afterProcessing, so it will be executed before CrossOptionsConnector logic.