robpi
21 Jun 2007, 7:41 AM
I'm using a form to pass parameters to start a sql query. The result is presented in a grid.
It works fine until the query is not longer than 30 sec. When the querytime is longer, then the result doesn't come back because of a time out.
In the API i found the form option "timeout", but it seems this has no effect. the problem keeps the same. Has anyone used the timeout-option with success?
Here some Code snippets:
constraintsform = new Ext.form.Form({timeout:999999});
...
constraintsform.addButton({text:'Start', tooltip:'Starten der Abfrage', handler:dwhStatistikcenter_Constraints.startQuery });
constraintsform.render('constraints');
...
...
startQuery : function () { constraintsform.submit({loadMask:true,url:url,params:{task:'startquery'},success:Resultgrid.updateGrid,failure:Constraints.showQueryError});
};
In the request header i find the information:
Keep-Alive 300
Connection keep-alive
So it seems that the option has no effect. Or do i use it in the wrong way?
It works fine until the query is not longer than 30 sec. When the querytime is longer, then the result doesn't come back because of a time out.
In the API i found the form option "timeout", but it seems this has no effect. the problem keeps the same. Has anyone used the timeout-option with success?
Here some Code snippets:
constraintsform = new Ext.form.Form({timeout:999999});
...
constraintsform.addButton({text:'Start', tooltip:'Starten der Abfrage', handler:dwhStatistikcenter_Constraints.startQuery });
constraintsform.render('constraints');
...
...
startQuery : function () { constraintsform.submit({loadMask:true,url:url,params:{task:'startquery'},success:Resultgrid.updateGrid,failure:Constraints.showQueryError});
};
In the request header i find the information:
Keep-Alive 300
Connection keep-alive
So it seems that the option has no effect. Or do i use it in the wrong way?