Hi,
I need to use units_view extension :
But if the id is not in key from sections there is an error :
J is undefined in dhtmlxscheduler.js :
J+="&"+K+this.escape(D[F])+"="+this.escape(I.userData[“t_”+D[F]])}}else{
Tank you for your reponse
But if the id is not in key from sections there is an error :
This is expected behavior, if event doesn’t assigned to some unit - it can’t be rendered , which produce an error.
It possible to add custom code, which will assign default unit instead of such error
Hello and thank you for your reply.
I customized the code to not show the event if the id is not in
those for the unit_view. But if I change this event in the week for
example the id is set to the value of the first id of unit_view.
I’ll try to find another solution.
In my case I use the function unit_view to view events which take
place in 3 locations. But if an event is updated when he did not place
in one of these 3 places is updated with the id in the first scene of
the unit_view.
Best regards,
kri
which take place in 3 locations.
Why not add the 4th category - “Not-located”, it will resolve your issue and will add ability to specify location in unit mode by d-n-d.
>>update with the id in the first scene of the unit_view
When new event added , and unit view is registered - scheduler will automatically set the first available unit for it.
But it occurs only for adding and not for updating.
scheduler.attachEvent(“onEventAdded”,function(id,ev){
…
if (typeof ev[pr.map_to] == “undefined”) //this is it!
ev[pr.map_to] = pr.options[0].key;