Our pure JavaScript Scheduler component


Post by asatrash »

Hi,

We do not have pure REST based APIs. We use post calls for all our CRUD operations and all of them have specific XML body tags.

I assume we cannot use the standard stores explained in https://www.bryntum.com/docs/scheduler/ ... axstore.md

Sample API Request structure woulds be
<GetEventsRequest>
		<Events>
			<Event>
				<Name/>
				<Location/>
				<Start/>
				<End/>
			</Event
		</Events>
</GetEventsRequest>
Response would be like
<GetEventsResponse>
	<Events>
		<Event>
			<Name>Meeting on Bryntum</Name>
			<Location><Meeting Room 2</Location>
			<Start>2019-05-14 12:30</Start>
			<End>2019-05-14 13:30</End>
		</Event
	</Events>
</GetEventsResponse>
Can you please let me know how to achieve that.

We use React app and I was following the following https://www.bryntum.com/docs/scheduler/ ... n/react.md
Last edited by asatrash on Thu May 16, 2019 7:48 am, edited 1 time in total.

Post by mats »

You can simply load / parse your data yourself and then feed the data to our stores using our API. Please study in detail the Store API. https://bryntum.com/docs/scheduler/#Common/data/Store

It has a 'data' property which lets you load local data: https://bryntum.com/docs/scheduler/#Com ... perty-data

Post by asatrash »

@mats Thanks. If I get you correctly, I should still loar/parse data into the store befor using it. Is it the standard and recommended way the scheduler works. Since our APIs are XML based I see an additionaly cost in doing that.

I am new to this, so please bare with me for basic quesions.

Post by mats »

Yes, you'll need to load your data from your server into the browser yourself and convert into a simple JS array. Once that's done it's easy to work with our Store API. Let us know if you have any other questions we can help you with :)

Post Reply