Addevent in scheduler

Hello,

I created a layout with a scheduler.
Data for scheduler comes from a dhtmlxDatastore.
I trie to create an event from a form, and I see it’s created in the store.
Also I see it on scheduler.
but if I trie to open the new created event, i got the error: TypeError: “”.substr is not a function
Also the lightbox is empty.

Attached is a demofile.
when opened, open traject1,
richtclick on last item (238).
Choose the contextmenuitem to open form.

regards,

Laurens
demo.zip (6.53 KB)

Hello,

I solved the problem.
Whithin addEvent, the text-field was filled in with a number.

scheduler.addEvent({
start_date:ev_start,
end_date:ev_end,
text: ev.value,});

when changed text to a real string, it works:
text: ‘a’+ ev.value

regards,

Laurens