Be sure your post includes:
SmartClient Version v9.0_2013-07-03/LGPL Development Only
Firefox 8.0.1
I am not using the smartclient server but instead my own rest services. I wanted to add some data to the request when I call removeData() on the RestDataSource but for some reason I'm NOT seeing it passed to the server.
DSRequest req = new DSRequest();
Map<String, String> parameterMap = new HashMap<String, String>();
parameterMap.put("id", "1234");
req.setParams(parameterMap);
req.setUseSimpleHttp(Boolean.TRUE);
myDS.removeData(record, new DSCallback() {
public void execute(DSResponse response, Object rawData, DSRequest request) {
}
}, req);
My server code looks as follows:
@DELETE
@Path("deleteRecord")
@Produces(MediaType.APPLICATION_JSON)
public javax.ws.rs.core.Response deleteRecord(
@QueryParam("id") String id
) {
if (id == null) {
System.out.println("Id is null"); /// this gets printed out since id IS NULL
}
int len - req.getContentLength(); // nothing here
Map m = req.getParameterMap(); // map is empty
String q = req.getQueryString(); // id is NOT in the query string
}
SmartClient Version v9.0_2013-07-03/LGPL Development Only
Firefox 8.0.1
I am not using the smartclient server but instead my own rest services. I wanted to add some data to the request when I call removeData() on the RestDataSource but for some reason I'm NOT seeing it passed to the server.
DSRequest req = new DSRequest();
Map<String, String> parameterMap = new HashMap<String, String>();
parameterMap.put("id", "1234");
req.setParams(parameterMap);
req.setUseSimpleHttp(Boolean.TRUE);
myDS.removeData(record, new DSCallback() {
public void execute(DSResponse response, Object rawData, DSRequest request) {
}
}, req);
My server code looks as follows:
@DELETE
@Path("deleteRecord")
@Produces(MediaType.APPLICATION_JSON)
public javax.ws.rs.core.Response deleteRecord(
@QueryParam("id") String id
) {
if (id == null) {
System.out.println("Id is null"); /// this gets printed out since id IS NULL
}
int len - req.getContentLength(); // nothing here
Map m = req.getParameterMap(); // map is empty
String q = req.getQueryString(); // id is NOT in the query string
}