Hello,
I want to do the same thing but i have some issues.
It doesn’t work, my event text stay at “new event”…
function init() {
scheduler.config.multi_day = true;
scheduler.config.details_on_create=true;
scheduler.config.details_on_dblclick=true;
scheduler.config.xml_date="%Y-%m-%d %H:%i";
scheduler.config.first_hour=4;
scheduler.config.prevent_cache = true;
/***********************************************/
scheduler.templates.event_text=function(start,end,event)
{
return "Chauffeur: "+scheduler.getLabel("idchauffeur",event.idchauffeur);
}
/******* MATRIX CONFIG ******************/
scheduler.locale.labels.matrix_tab = "Chauffeur";
scheduler.templates.matrix_scale_date = function(date)
{
var format = scheduler.date.date_to_str("%D, %d.%m.%Y");
return format(date);
}
scheduler.templates.matrix_scale_label = function(section_id, section_label, section_options)
{
return section_label;
};
scheduler.date.matrix_start = scheduler.date.week_start;
/***********************************************/
/************ INITIALISATION *******************/
scheduler.init('scheduler_here',new Date(2011,1,1),"week");
scheduler.load("events_multiselect_static.php");
var dp = new dataProcessor("events_multiselect_static.php");
dp.init(scheduler);
/***********************************************/
/********* LIGHTBOX CONFIG *******************/
scheduler.locale.labels.section_chauffeur="Chauffeur";
scheduler.locale.labels.section_ligne="Ligne";
scheduler.locale.labels.section_description = "Nom";
scheduler.config.lightbox.sections=
[
//{ name:"description", height:50, map_to:"text", type:"textarea", focus:true },
{ name:"chauffeur", height:22, map_to:"idchauffeur", type:"select", options: scheduler.serverList("idchauffeur"), script_url: 'events_multiselect_options.php', vertical:"false" },
{ name:"ligne", height:23, type:"select", options:scheduler.serverList("idLigne"),script_url: 'events_multiselect_options.php', map_to:"idLigne" },
{ name:"time", height:72, type:"time", map_to:"auto"}
]
//scheduler.config.xml_date="%Y-%m-%d %H:%i";
scheduler.createTimelineView
(
{
name: "matrix",
x_unit: "day",
x_date: "%d %M",
x_step: 1,
x_size: 7,
y_unit: scheduler.serverList("idLigne"),
y_property:"idLigne",
render:"bar"
}
);
/***********************************************/
}
In the same time, if i put “matrix” in scheduler.init(), the scheduler doesn’t load