3 Replies Latest reply on Jun 4, 2012 7:33 PM by Robert Galvin

    Searching data using RhoConnect

    Gerbrand Stap

      The application we want to replace with a RhoElements v2 app is used to process workorders and handles customer data as follows:

      • All required customer data is available with the workorder on the device (workorders are synchronization).
      • A user can create a workorder on the device. To do so he must be able to search a customer from the database of all customers (done using a webservice call with search criteria).
      • The complete customer database is (at the moment) considered too large to reside on the device.

       

      How could/should we implement these features, if we should choose to use RhoConnect?

      • Is there a feature within RhoConnect to bypass the regular synchronization mechanism and do some direct call (using search criteria)?

      Or

      • Can't this be done using RhoConnect and do we need the location of both a RhoConnect instance and a webservice for searching customers?

      Or

      • Should all customers be synchronized with the device?

      Or...

       

      The amount of customer data varies per installation, but may be as large as 50,000.

      The same features apply to other data types: articles and customer objects (like air conditioners or heaters).

        • Re: Searching data using RhoConnect
          Robert Galvin

          Gerbrand

           

          I am not sure you need RhoConnect for the scenario you describe. You could make your web service call directly from the RhoMobile application. Unless you want to make a subset of the customer data resident on the device in case the user goes offline. Otherwise I see you RhoMobile app using Ajax/jQuery to call the webservice with the parameters to filter to results. Then possibly using the built in json libraries to process and display the results.

           

          Sent from my Verizon Wireless 4G LTE DROID

          1 of 1 people found this helpful
            • Re: Searching data using RhoConnect
              Gerbrand Stap

              I already suspected this. There is other data that could just be synchronized with RhoConnect, like users and some master data. But the searching feature is the exception to that.

              We have multiple customers that will be using the new application and it is not hosted on one location. So the url's of RhoConnect and/or the web service must be configurable. But we don't like to burden the user with configuring multiple URL's in the app. So either we figure out a way to configure a url centrally or we don't use RhoConnect.

              Thanks for the input.

                • Re: Searching data using RhoConnect
                  Robert Galvin

                  Gerbrand

                   

                  You could use RhoConnect to synchronize app configuration settings from a central location and/or You could also choose to include those app/customer specific settings using say a JSON file and include that as part of the application. When the application initially starts it could read the local JSON file and setup the initial customer specific web servuce parameters and then if you want to manage it centrally use RhoConnect to handle that. The search feature still sounds like it would be suitable for a direct web service call.