xOliver
#1
Hello
I put the following SELECT-BOX in the lightbox:
scheduler.config.lightbox.sections=[
{name:"description", height:23, type:"select", map_to:"text", options:section_wonr, focus:true},
I filled an array with data from my database:
section_wonr.push({key:counter, label:A.substring (start, i)});
If i select a row and want to save, he show me the “KEY” as the description text. But I like to have the “LABEL”. What i need to change to get this?
I hope you can understand my problem ?!
Best regards
next line will convert key to the related text label
var label = scheduler.getLabel("text", key)
xOliver
#4
ok … but where do i write this? I do this when he’s writing the id --> ?
scheduler.save_lightbox = function() {
if (this.checkEvent("onEventSave") && !this.callEvent("onEventSave", [this._lightbox_id, this._lightbox_out({
id: this._lightbox_id
}), this._new_event])) {
return
}
this._empty_lightbox();
this.hide_lightbox()
};
I would like to have that he show me the “label” in the event_box when i push the “save-Button”.
Thank you
docs.dhtmlx.com/doku.php?id=dhtm … #week_view
scheduler.templates.event_text = function(s,d,ev){
return scheduler.getLabel("text", ev.text);
}