Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Michael on Oct 12, 2009 09:20
open dhtmlx forum
Scheduler - rec_type=none on insert

It states in your help file the following:

1. if event with rec_type==none wad inserted - response must have “deleted” status
2. if event with rec_type was updated or deleted - all records with event_pid equal to the master id must be deleted
3. if event with event_pid value was deleted - it need to be updated with rec_type “none” instead of deleting.

I have done some testing and saw #2 and #3 occur in DB, but in what situation would #1 occur? When recurring event is edited the record inserted does not have "none"... the field is left blank. So when will a newly inserted record have "none"?

Thanks,
Answer posted by Stanislav (support) on Oct 12, 2009 09:27
Create recurring event, which occurs few times. Delete one occurrence of event ( scheduler will ask - do you want to delete all recurring events or only chosen one - select 'delete the chosen one only' ) 
After such operation server side will receive "inserted" operation with "rec_type" as "none" - basically , we need to save in DB that some occurrence of event must not be rendered. 
Answer posted by Michael on Oct 12, 2009 09:39
Excellent.  Much better explanation than bullet point #1.  I was able to test and see it work as you described.  Thanks.