Problem in forwarding to a Errorpage

Hi Isomorphic,

If there is an exception occured i will set the status flag for the response object as STATUS_FAILURE ,
dsResponse.setStatus(dsResponse.STATUS_FAILURE);

i have added the below piece of code ,
isc.RPCManager.addClassProperties({
handleError : function (response, request) {

if(response.status != isc.RPCResponse.STATUS_SUCCESS) {
isc.warn(“Error occured”);
//Forwrd to an Common Error page.
}
}
});

This approach is working fine.

Iam having one problem,
When i call a fetch data or save of one grid , there is lot of calculations and manipulations in the Manager layer , After 2-3 min its automatically forwarding to a error page , but still my backend operations are executing .

pls help me out to solve this issue ,

Thank you .

Hi,

Browsers have a default amount of time they will allow a connection to stay open before assuming it has failed, typically 4 minutes, although intervening proxies and firewalls may impose shorter numbers. You can’t really change this unless you are willing to reconfigure end user machines.

The right solution is to start the server-side calculation via a request that completes immediately (in this case it would not be a fetchData(), but a non-DataSource RPCRequest), and then either poll the server checking for availability of the data, or use SmartClient’s Messaging module to do true server push.

problem in forwarding to Error Page

Can you please explain me how to implement the non-DataSource RPCRequest .

Thank You,

See the docs for RPCManager.