Events not loaded from database

I can create events and view the created events in the database.

However, the problem is that the events on the page disappeared after a refresh.

I double-checked with the database and find the events DO exist in the database.

And I believe the XML generated by server-side code is passed in the correct format, but I do not know why the events just do not show up on the web page.

Do you guys have a solution or some suggestions to this?

a) be sure that all events have unique ids
b) try to change loading code as

scheduler.load(“data.php?uid=”+scheduler.uid());

it will prevent data caching.

hi,

I have the same problem actually and i want to ask, “data.php?uid=” is using to call for something isn’t it?

It just adds random element to the uri, to prevent caching. uid parameter is not processed on server side ( it actually can have different name, there is no restrictions )

Thanks Stanislav!

I finally figured out that it was the problem of string format of the dates.

The DateTime in C# always create the object with its Locale setting of the machine which the project runs on (instead of the client), for example US-EN will get MM/dd/yyyy and other countries may get dd/MM/yyyy for the DateTime object. If you’re running the project on the very same machine, this may not matter. But if you move the project and develop on another machine, you may need to change the Locale setting on the new machine.

Or, is there any work around for this?

Client side scheduler can’t auto-detect format of xml data, but it possible to change awaited format So if you know the format, which server side generates you can use

scheduler.config.xml_date = “%m/%d/%Y %H:%i”; //or any other format here

I have the same problem.
We use MS SQL Server as database with german date format setting.

With

scheduler.config.xml_date="%Y-%m-%d %H:%i";

the event data will be loaded but not saved
and with

scheduler.config.xml_date="%Y-%d-%m %H:%i";

the event data will be saved but not loaded.

What else can I do?

Hi,
did you try this format?

scheduler.config.xml_date = "%m/%d/%Y %H:%i";

If it won’t help, post connector’s log here.
log can be enabled by adding

[code]

<system.diagnostics>






</system.diagnostics>[/code]
to the web.config, and

Log.Enabled = true;

near the connector’s initialization

Ok,

scheduler.config.xml_date = "%m/%d/%Y %H:%i";

doesn’t work

but with

scheduler.config.xml_date="%Y%m%d %H:%i";

loading and saving works well.