Hi
I’m new to dhtmlx but do like what I see.
I’m tying to add multiple sections to the details page in the scheduler but I’m losing the titles. I have the following code and have changed the “description” section to be “description2” and in shos undefined as the title for that section. I have added person1 and person2 to the event xml for the second section
Thanks
Jeremy
scheduler.form_blocks[“my_desc”]={
render:function(sns){
return “
“Text " + “” +
“
” +
“Details " +
“
},
set_value:function(node,value,ev){
var inps = node.getElementsByTagName(“INPUT”);
inps[0].value=ev.text ||””;
inps[1].value=ev.details||"";
},
get_value:function(node,ev){
var inps = node.getElementsByTagName(“INPUT”);
ev.text = inps[0].value;
ev.details = inps[1].value;
return ev.text;
},
focus:function(node){
var a=node.childNodes[1]; a.select(); a.focus();
}
}
scheduler.form_blocks[“my_execs”]={
render:function(sns){
return “
“Exec 1 " + “” +
“
” +
“Exec 2 " +
“
},
set_value:function(node,value,ev){
var inps = node.getElementsByTagName(“INPUT”);
inps[0].value=ev.person1 ||””;
inps[1].value=ev.person2||"";
},
get_value:function(node,ev){
var inps = node.getElementsByTagName(“INPUT”);
ev.person1 = inps[0].value;
ev.person2 = inps[1].value;
return ev.text;
},
focus:function(node){
var a=node.childNodes[1]; a.select(); a.focus();
}
}
scheduler.config.lightbox.sections=[
{ name:“description2”, height:200, map_to:“text”, type:“my_desc” , focus:true},
{ name:“Execs”, height:200, map_to:“text”, type:“my_execs” , focus:false},
{ name:“time”, height:72, type:“time”, map_to:“auto”}
]
}