Unusual Results after reloading from feed

Hi there,

When we setup a re-occuring event (this only happens on re-occuring) the display looks fine, but when we refresh and load from the generated xml feed we get some peculiar results could you help?

this is the data returned from the feed and i’ve attached before and after screenshotds

<?xml version="1.0"?><data>
<event id="1">
	<id><![CDATA[1]]></id>
	<start_date><![CDATA[2011-10-30 00:00:00]]></start_date>
	<end_date><![CDATA[2011-12-05 00:00:00]]></end_date>
	<text><![CDATA[New event]]></text>
	<rec_type><![CDATA[week_1___1#5]]></rec_type>
	<event_id><![CDATA[1]]></event_id>
	<event_category><![CDATA[1]]></event_category>
	<event_location><![CDATA[]]></event_location>
	<event_client><![CDATA[-1]]></event_client>
</event>
</data>

Thanks




You are retrieving rec_type from database, but have missed event_length and event_pid fields

docs.dhtmlx.com/doku.php?id=dhtm … ntegration

Hi,

I did think that, but on saving I inspected the object and it didn’t contain either property, is this something we’re meant to calculate ourselves?

Thanks

For recurring events it must be calculated automatically.

“but on saving”
Are you using dataprocessor or custom solution for data saving?
In second case, from which handler your code is retrieving data from the scheduler?

Hi there

It’s a custom one, and onEventSave

Thanks

It is to earlier - all data is not set here yet, try to use onEventAdded, onEventChanged instead

That seemed to work, although event_pid is missing a value is this right?

James

Hello,

Not every event would have event_pid value.
pid = parent event id
So it would be present on edited occurrences of recurring events.

Kind regards,
Ilya