Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by rencin on Oct 25, 2009 21:51
open dhtmlx forum
event updation doesnot occur in Scheduler_RecBehavior class of dhtmlx scheduler

hi,

In Scheduler_RecBehavior class for deletion and updation two checking are done.
String status = action.get_status();
String type = action.get_value("rec_type");
String pid = action.get_value("event_pid");


if ((status.equals("deleted") || status.equals("updated")) && type.length()!=0){
---deletion
}
if (status.equals("deleted") && pid.length()!=0 && !pid.equals("0") ){
--- updation
}
what will be the value for event_pid and rect_type when a new event schedule added to database ?

if type and pid length equals 0 then it will never enter any of this loop.

In db ,event_pid,event_length field of event_rec table is set by default as zero.
When i add new event schedule to db, pid (ie , event_pid) value is null . so by default its value is assigned as zero in db.
If i select that event for updation , it is not getting updated.


can you plz give me a solution for this.

thank you
Answer posted by Stanislav (support) on Oct 26, 2009 10:36
>>what will be the value for event_pid and rect_type
event_pid has 0 as default value ( meaningful pid value will be in case, when some event in sequence was changed or not deleted )
rect_type - contains the recurring type, based on user's choose

>>if type and pid length equals 0 
This code blocks will not be triggered for normal events, this is correct. 

>>If i select that event for updation , it is not getting updated.
Above code block is not related to normal updating process. 

Please try to enable log and check the DB operation log. 
http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxconnectorjava:error_handling_and_logging