dhtmlxscheduler, dataprocessor and updating event

Hi,



this is my code

























and my problem is: when I’m editing or adding event then all parameters are succesfuly sent but when I try to change the same event which I added / changed just before, then are parameters empty and so I can’t proceed mysql update.



Thanks for any help…

David

a) you need not include dataprocessor.js file, it is already included as part of dhtmlxscheduler.js
b) if you are using custom code for new event adding - be sure that you provide correct new ID value for response ( in case of connectors can be done by calling “success” method with new ID value )

I’m not sure if I understood your answer…

Log:

[code]row 1264503144606 marked [inserted,valid]
Initiating data sending for 1264503144606
Initiating data sending for all rows
Sending all data at once
Server url: /admin/crm/kalendar.script.php?editing=true parameters

1264503144606_id=1264503144606
1264503144606_start_date=2010-01-14 00:00
1264503144606_end_date=2010-01-14 00:05
1264503144606_text=Nov%C3%A1%20ud%C3%A1lost
ids=1264503144606

Server response received details

<data> <event id="1264503144606"> <start_date>2010-01-14 00:00:00</start_date> <end_date>2010-01-14 00:05:00</end_date> <text>Nová událost</text> </event> </data>

row 1264503144606 marked [updated,valid]
Initiating data sending for 1264503144606
Initiating data sending for all rows
Sending all data at once
Server url: /admin/crm/kalendar.script.php?editing=true parameters
here is “nothing”… blank… space… no parameters as I expected![/code]

I just expecting some parameters which I can use in “kalendar.script.php” for an update.
That’s all…

my code

[code]

[/code]

and next problem …
I’m calling event onRowMark because of problem described on top. In function are calling two functions: ajaxWM = my function which calls url with “lost” parameters via ajax and scheduler.load for refresh a calendar … but refresh doesn’t work. When I delete an event, ajax is succesfully sent but calendar isn’t “refreshed”.

Thanks, David

and sorry for my english

It seems that you don’t use server-side connector.

In this case please be sure that server-side script (/admin/crm/kalendar.script.php) returns the correct response. In case of insert operation it should be (please see documentation to DataProcessor):

Where sid - id of the event is scheduler and tid - event id that is set in the database.

In your case , server side code returns unexpected response and insert process is not finished correctly , event still marked as in update process and ignores any next operations, awaiting insert confirmation from server.

dp.setTransactionMode(“GET”, false);
Beware that changing transaction mode will break server side connectors logic ( if you are using them )

Thanks to you both for answer. Everything is now OK…! Thanks a lot!

David