Bryntum Scheduler with custom AJAX calls

Our pure JavaScript Scheduler component
Post Reply
User avatar
asatrash
Posts: 8
Joined: Wed May 15, 2019 10:12 am

Bryntum Scheduler with custom AJAX calls

Post by asatrash » Wed May 15, 2019 1:22 pm

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

Code: Select all

<GetEventsRequest>
		<Events>
			<Event>
				<Name/>
				<Location/>
				<Start/>
				<End/>
			</Event
		</Events>
</GetEventsRequest>
Response would be like

Code: Select all

<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.

User avatar
mats
Core Developer
Core Developer
Posts: 13837
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Bryntum Scheduler with custom AJAX calls

Post by mats » Wed May 15, 2019 2:22 pm

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
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
asatrash
Posts: 8
Joined: Wed May 15, 2019 10:12 am

Re: Bryntum Scheduler with custom AJAX calls

Post by asatrash » Thu May 16, 2019 7:51 am

@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.

User avatar
mats
Core Developer
Core Developer
Posts: 13837
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Bryntum Scheduler with custom AJAX calls

Post by mats » Thu May 16, 2019 10:31 am

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 :)
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

Post Reply