Short question, because i used about a day to find a clean way and had no success:
I am trying to create a multi-user scheduler environment (yes, i got a pro license ), where different users got their very own scheduler and of course only THEIR events. I have to do this, with adding an unique âclient_idâ into the EVENTS table in the database.
So my init is like this:
[code] scheduler.setLoadMode(âyearâ)
scheduler.load(âinc/events.phpâ);
var dp = new dataProcessor("inc/events.php");
dp.init(scheduler); [/code]
events.php:
$client_id = "test";
$scheduler->render_sql("select * from events where client_id='".$client_id."'", "event_id", "start_date,end_date,text,nachname,........,user");
The proeccsing of data works perfect, but when adding a NEW EVENT, the database-field for âclient_idâ stays empty (and so, after a reload, the event of course doesnât appear in the scheduler ).
In other words: How can i add a value-pair through the processor without adding a hidden-field to the edior that holds the client_id?
From my point of view it would be totally okay, if i could hardcode it anywhere into the database-connection, but no idea where this could be :[
Best wishes from .de,
Ben