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() its retuning null and its 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.
We migrated from SmartGwt 3.1P to SmartGwt 4.0P.After migration we faced issue with getFetchDataURL().
If we call getFetchDataURL() API in transformRequest() its retuning null and its 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.