I am very new to the dhtmlx scheduler and I would like to use the dataprocessor to handle data in my java project. Unfortunately, I didn’t find how to download any sample code in java demonstrating how to use the dataprocessor. I am using REST in the project. Is there any code somewhere that could help me to get started ?
There is no special REST-java example, but default java connector’s package contains example of using scheduler with dataprocessor and connectors on servers side.
Yes I checked some of those samples, thanks. I thought there would be one for REST too. I have an error 405 right now on my delete method. The problem is that I have a parameter in my url:
var dp = new dataProcessor(“http://localhost:8180/fitnetmanager/rest/saisieConge/congeRESTData?cid=”+conversationId);
So know I don’t know how to handle the ID that is added at the end of the dataprocessor url when I have a delete/post/put request.
I tried: @DELETE @Path("/congeRESTData{id}")
public Response deleteCongeRest(@PathParam(“id”)Integer id){ … }
So I managed to get the method called. But in my save method I found out that I do not get a Json type but a application/x-www-form-urlencoded type. This is really inconvenient because I have to handle the events in my scheduler with a MultivaluedMap. Is there a way to get a Json object ? This would be much mre easier to handle !
If it is still actual - you can add the next patch on the page after standard dhtmlx.js, it will process url with extra params ( like some/url?cid=1 ) correctly. patch.zip (880 Bytes)