Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: blackberry.transport.makeAsyncCall doesn't catch errors properly

I haven't been able to pinpoint which WebWorks API is broken yet, so I can't test the fix.
--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Developer
Posts: 163
Registered: ‎05-06-2011
My Device: Playbook
My Carrier: Not Specified

Re: blackberry.transport.makeAsyncCall doesn't catch errors properly

The work around that hifetz refered works fine. But my question is what is the point in writing different methods to invoke  a functionality it if both behaves exactly the same -- transport.makeSyncCall and  transport.makeAsyncCall

 

Retired
Posts: 518
Registered: ‎07-18-2011
My Device: Bold
My Carrier: Rogers

Re: blackberry.transport.makeAsyncCall doesn't catch errors properly

Hi   ,

 

The thing of it is this, often we make asynchronous calls down into the system, but we don't do it in the expected manner. We do a synchronous call down sending the information and let the system call back when it feels like (this allows patterns like listeners). Anywhere you see  transport.makeAsyncCall  is just a code error on our part.



1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)
Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: blackberry.transport.makeAsyncCall doesn't catch errors properly

Oh, so that means that we can substitute all these calls without any negative side effect and that the next release of the SDK will only contain those sync calls?

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Developer
Posts: 163
Registered: ‎05-06-2011
My Device: Playbook
My Carrier: Not Specified

Re: blackberry.transport.makeAsyncCall doesn't catch errors properly

Now that makes it all clear Smiley Happy

Highlighted
Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: blackberry.transport.makeAsyncCall doesn't catch errors properly

[ Edited ]

There is no transport.makeAsyncCall anywhere in ext. Do you mean *.makeAsyncCall?

 

EDIT: I went through the code and transport objects are created, so they have different names (remote, request, etc.). Changing the calls on those objects to the sync version fixed the problem.

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.