Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Issue in getFetchDataURL() API with “SmartGwt4.0P”.

$
0
0
Hi,
We migrated from “SmartGwt 3.1P” to “SmartGwt 4.0P”.After migration we faced issue with getFetchDataURL().
If we call getFetchDataURL() API in transformRequest() it’s retuning null and it’s calling fetch request .Due to this the request is going infinitely. Bellow is the code in transformRequest() method.
protected Object transformRequest (DSRequest request) {
String requestBody="";
if (request.getOperationType().toString().equalsIgnor eCase("fetch")) {
String sessionId ="dummysession";
String queryString = "?&sessionId=" + sessionId
+ "&groupId=" + "1" + "&item=" + "sampleTestRequest";
getFetchDataURL();
request.setActionURL(getFetchDataURL() + queryString);
}
else if (request.getOperationType().toString().equalsIgnor eCase("update")) {
requestBody="some URl";
}
return requestBody;
}

For more details please refer attached code (SampleDS and AbstractBaseDS files)

We checked with "2013-12-20" nightly build , still issue is there .

Note: Same logic is working when we are using SmartGwt3.1P.

Please let us know your comments.
Thanks.

Attached Files
File Type: java AbstractBaseDS.java (3.8 KB)
File Type: java SampleDS.java (1.5 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles