Send data to service

Hi,
I’m using dhtmlx mobile scheduler. I have to use services for populating the scheduler.
I want to send the data, once a new event is created(also while editing), to the service.
How could i send data to service in json format from scheduler?

Hello,

“DataProcessor” module of dhtmlxTouch that is used Mobile Scheduler sends properties of updated items in POST or GET request (url is defined in save property).

For example , Scheduler will send the following parameters in case of updating an event that has “1” id:

1_!nativeeditor_status,1_allDay, 1_details, 1_end_date, 1_id, 1_start_date , 1_text, 1_value, ids

Please check the ready demo in scheduler package for more details:
/samples/01_basic/05_data_saving.html

If you want to apply own approach to send data, you can set event handlers and call the required logic from them:
/samples/01_basic/08_events.html

Hi Alexandra,
I want to populate the scheduler using json data, my json data looks like this:
{
id: 33
title: “My Event 2asaS”
location: null
EndDate: “2013-12-14T00:00:00”
StartDate: “2013-12-14T00:00:00”
allDays: true
publishstatus: false
editstatus: “N”
}
I use web service to get the json data. How should i populate the scheduler?

I already tried this:
$$(“scheduler”).load(“service_url”,“json”);

Hi
could you please explain more about how the json data can be sent to service?
Thank you

I sent the json data to server. :smiley:

I want to know how to load data to the scheduler. Please help me…

Could the key values of inbuilt json data format be changed?
For example, i want to change ‘start_date’ to ‘StartDate’.

Hello,

I use web service to get the json data. How should i populate the scheduler?

scheduler can load data via load(url,“json”) method. You server side should generate a json array similar to an array that is used in the following sample:
/samples/01_basic/11_custom_view.html

Could the key values of inbuilt json data format be changed?

some fields are obligatory and can not be renamed: id, start_date, end_date and text.

could you please explain more about how the json data can be sent to service?

Data can be send via dhx.ajax. Please see docs of dhtmlxTouch for details:
docs.dhtmlx.com/touch/doku.php?id=ajax