dhtmlxScheduler

Can I add another field i.e the employeeID to the table events. also i need to show the edit popup only if event is created by the logged in employee.

how can i achieve this using the scehduler.

thanx in advance…

Can I add another field i.e the employeeID to the table events
Of course, just add it to the list of fields, used by connector
$scheduler->render_table(“events”,“event_id”,“start_date,end_date,event_name,details,employeeID”);

>>also i need to show the edit popup only if event is created by the logged in employee
on client side

var check = function(ev){
if (ev.employeeID = “id of current user here” )
return true;
else
return false;
}
scheduler.attachEvent(“onClick”,check)
scheduler.attachEvent(“onDblClick”,check)