hi,
im using custom editors in the lightbox, and i want a image (in the lightbox) to change after it updates the combo.
The variable “map_to: pid” also needs to update the image ( +pid+.jpg… ?)
how can i do this?
scheduler.form_blocks[“combo”]={
render:function(sns){
var height=(sns.height||“23”)+“px”;
var html="
return html;
},
set_value:function(node,value,ev){
if (!node.combo){
node.combo = new dhtmlXCombo(node.id,"dummy","553px");
node.combo.enableFilteringMode(true);
node.combo.loadXML(node.getAttribute("data"),function(){
node.combo.setComboValue(value||"");
document.getElementById('patientimage').src=+ imageadress; <<<< HERE
});
return;
}
node.combo.setComboValue(value||"");
},
get_value:function(node,ev){
return node.combo.getActualValue();
},
focus:function(node){
node.combo.DOMelem_input.focus();
}
}
scheduler.config.lightbox.sections=[
{name:“patient”, map_to:“pid”, height:20, focus:true, type:“combo”, xml:“inc/xml/agendacontacts.php” },
{name:“custom”, height:25, type:“select”, options:sections, map_to:“section_id” },
{name:“description”, height:60, map_to:“text”, type:“textarea”},
{name:“time”, height:72, type:“calendar_time”, map_to:“auto” }
]