On Thu, Jun 17, 2010 at 16:26, alexander.volik <[email protected]>wrote:

>
>
> Derrell Lipman wrote:
> >
> > Each request has an id field. You can track the id as you issue each
> > request
> > (add each to a map), and mark each as completed as you get the results
> > (delete it from the map). When the map is empty, all requests have
> > completed.
> >
>
> This is a code of typical RPC async request.
>
> server.callAsync(function(ret,exc,id){
>     \\ handler code
>  },arg1,arg2,arg3);
>
> I can get an id only when an answer from the server will arrive, isn't it?
> But to follow your advice I should get an id before the request sending
>

And I see that it's very poorly documented. :-( Please post a bug report
about the lack of documentation, and assign it to me.

The return value from callAsync is the qx.io.remote.Request object which was
used to issue the RPC request. The id field that was used was the request
object's sequence number. You can retrieve that sequence number aka id value
like this:

var req = server.callAsync(function(ret,
>
> exc,id){
>     \\ handler code
>  },arg1,arg2,arg3);
>
var id = req.getSequenceNumber();

Hope that helps.

Derrell
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to