Browser: any
SmartClient Version: v8.2p_2012-06-06/PowerEdition Development Only (built 2012-06-06)
I have a fetch call for a listgrid:
which fails within the completeResponse block of code on the server-side- so basically when I call rpcManager.send(dsRequest, dsResponse), our code that translates the json data throws an error. I can catch this and send a failure this way:
But I keep getting this error in the jsConsole: and the "loading" message continues to show in my listgrid. What is it that I am doing wrong?
I just want to tell the user that an error has occurred while trying to fetch the data. How do I do this properly?
SmartClient Version: v8.2p_2012-06-06/PowerEdition Development Only (built 2012-06-06)
I have a fetch call for a listgrid:
Code:
scJsObject.fetchData(null,
function(dsResponse, data) {(scJsObject.ID);
$wnd.alert('here');
},
{showPrompt:false,willHandleError:false});
which fails within the completeResponse block of code on the server-side- so basically when I call rpcManager.send(dsRequest, dsResponse), our code that translates the json data throws an error. I can catch this and send a failure this way:
Code:
try{
dsResponse.setSuccess();
rpcManager.send(dsRequest, dsResponse);
this.statistics.end(Statistics.ST_DATA_SOURCE_SEND);
} catch (Exception e) {
dsResponse.setStatus(RPCResponse.STATUS_FAILURE);
rpcManager.sendFailure(dsRequest, "Internal Error");
}
Code:
14:44:27.128:XRP4:WARN:RPCManager:Error evaling structured RPC response: SyntaxError: invalid property id response text: [{//isc_RPCResponseStart-->[{data:"Internal
Error",invalidateCache:false,isDSResponse:true,status:-1}]
Comment