Android Question Newbie: How to do a synchonous RDC query

Discussion in 'Android Questions' started by Tom Skotnicki, Mar 24, 2015.

  1. Tom Skotnicki

    Tom Skotnicki New Member Licensed User

    I have been using B4A for only a few days. I have succeeded in connecting to a remote database with RDC, running a query, and putting the results in a local SQLLite table using DBUtils. However, I need to ensure that the user waits for the process to complete before proceeding. After reading forum threads extensively, I am not seeing a way to do that other that to set a process global flag when calling the DBRequest and clearing it when the process completes. Is there a more elegant way to do this?

    Thanks, great product, I am very impressed.
  2. Erel

    Erel Administrator Staff Member Licensed User

    You cannot hold the main thread while waiting for the server response.

    There are many ways to manage the program state. If you just want to prevent the user from doing anything while waiting the the response you can call ProgressDialogShow2 and then hide it in the JobDone event.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice