Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Abderahmen on Jan 21, 2010 06:17
open dhtmlx forum
problem with recurrent events

Hello,
I'm adding a recurrent event by using this code :
    scheduler.attachEvent("onEventSave",function(id,ev){
                    
                             scheduler.addEvent({                            
                             start_date: ev.start_date,
                             end_date: ev.end_date,
                             text: ev.details,
                             rec_type:ev.rec_type,
                             event_pid:ev.event_pid,
                             event_length:ev.event_length,
                             sy_uuid: '#session.lSY.getUUID()#',
                             categoryid:scheduler.form_blocks["Myselect"].get_value(),
                             is_publicyn:1                                
                             });
                        });

the problem is that the add doesn't process correctly and i have this error  :
scheduler.date["transpose_" + E.rec_pattern] is not a function.

Any one can help please.

Thanks.
Abderahmen
Answer posted by Stanislav (support on Jan 22, 2010 01:34
Add one more property for the new event


scheduler.addEvent({
start_date: ev.start_date,
end_date: ev.end_date,
text: ev.details,
rec_type:ev.rec_type,
rec_pattern:ev.rec_type,

We will fix event adding in next version, but for now it is the necessary workaroun
Answer posted by Abderahmen on Jan 22, 2010 01:48
Thanks for the answer but i still have the same problem
Answer posted by Stanislav (support) on Jan 22, 2010 02:20
The error may appear only in two cases

a) the rec_type is defined, but rec_pattern is not defined 
b) rec_type and rec_pattern has incorrect values ( it must not be used for non-recurring events, has "none" for deleted , and valid recurring code for recurring events )