scheduler updates db but changes dont show up until html rel

I have most of my calendar project working but one quirk the database updates
just fine I am using the scheduler_connector.php on the server side IE:
scheduler_connector->sql->query() for updates and the updates work fine.

However on the calendar itself they do not show up until I reload the html page containing the
calendar ?

Any help would be appreciated…

Jim

=============== CLIENT SIDE CODE BELOW========================

html, body{ margin:0px; padding:0px; height:100%; overflow:hidden; } .dhx_cal_event_line.custom, .dhx_cal_event.custom div{ background-color:#fd7; border-color:#da6; color:#444; }


Bond Event Calendar


 
 
 

Hello,

I would be more interested in server side code.

Best regards,
Ilya

$scheduler = new schedulerConnector($res,“Postgre”);
$scheduler->enable_log("/tmp/scheduler_log.txt",true);
$ids = get_event_value(‘ids’,$arRequest);
$event_type = get_event_value($ids."_!nativeeditor_status",$arRequest);
$lg->logEvent(“EVENT TYPE[”.$event_type."]");
switch($event_type)
{
case “inserted”:
$beobj = new bond_events(null);
$beobj->set_field(‘entity_id’,$entity_id);
$beobj->set_field(‘start_date’,get_event_value($ids."_start_date",$arRequest));
$beobj->set_field(‘end_date’,get_event_value($ids."_end_date",$arRequest));
$beobj->set_field(‘event_name’,get_event_value($ids."_text",$arRequest));
$beobj->set_field(‘details’,get_event_value($ids."_location",$arRequest));
$beobj->set_field(‘intrader_trade_id’,‘0’);
$scheduler->sql->query($beobj->get_generated_sql(“EID:”.$entity_id));
break;
case “updated”:
$beobj = new bond_events($ids);
$beobj->set_field(‘entity_id’,$entity_id);
$beobj->set_field(‘start_date’,get_event_value($ids."_start_date",$arRequest));
$beobj->set_field(‘end_date’,get_event_value($ids."_end_date",$arRequest));
$beobj->set_field(‘event_name’,get_event_value($ids."_text",$arRequest));
$beobj->set_field(‘details’,get_event_value($ids."_location",$arRequest));
//------------------------------------------------------------------
// we only allow an update on intrader_trade_id == 0
//------------------------------------------------------------------
$itid = $beobj->get_field(‘intrader_trade_id’);
if($itid == ‘0’)
{
$beobj->set_field(‘intrader_trade_id’,‘0’);
}
$scheduler->sql->query($beobj->get_generated_sql(“EID:”.$entity_id));
break;
case “deleted”:
$beobj = new bond_events($ids);
$scheduler->sql->query(“delete from bond_events where id=’”.$ids."’");
break;
default:
break;
};

$lg->logEvent("Exiting Server Script");

Hello,

Please check the following page:
docs.dhtmlx.com/doku.php?id=dhtm … date_event

In your example you indeed insert/edit data in the database but do not show it to the clientside. Connectors include it own event system which you can use to some tasks and then inform client if action was successful or not.

Best regards,
Ilya