uwa.groupRequests()

Previous Next

See Also

In order to speed up an application it is possible to group two or more actions into one Page Engine request, using uwa.groupRequests()". For example:

 

uwa.groupRequests(function(){

executeQuery("DEPT")

executeQuery("EMP")

executeQuery("PERSONS")

});

 

All function calls within uwa.groupsrequests() are sent to the server in one request and executed sequentially. uwa.groupRequests() can be seen as the dynamic version of handleEvent (StaticEvent).

 
Always generates exactly one page engine request.

 

Note: The default Web application does not use "uwa.groupRequests()". Only "executeQuery" bundles the actions "getRecordCount(..)" and "getDataSet(..)" but it does this without using this function.

 

Related function: handleEvent()