Connect my app with a external DB

5 posts, 0 answers
  1. Javier
    Javier avatar
    8 posts
    Member since:
    Mar 2014

    Posted 24 Apr 2014 Link to this post

    Hello, I created a app with the example of SQLite.The app show the datas of the our local DB .My idea is with a button control if the device has Internet connection and connect with a external DB to read it and can update the content of the DB of my app.

    I was reading and look like that I can not connect directly a javascript file with the server's DB.

    Can anybody help me?

    Thanks,

    Javier
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 29 Apr 2014 Link to this post

    Hi Javier,

    In order to use external SQL data in a hybrid app, you need to communicate that data in a JSON format between your app and the server where the database is hosted. Basically you will need a service that reads the data from your SQL database and parses it in a JSON format so that the app can then request the data.


    You can take a look at these forum threads discussing similar cases:

    You might also find useful the approach being discussed in the Using ASP.NET Web API Services in Mobile Apps blog post.

    On the other hand, you can also take advantage of our Backend Services to create the backend for your app in the cloud by storing data, managing users and files, and executing business logic.

    Regards,
    Tina Stancheva
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
  3. Jandieg
    Jandieg avatar
    43 posts
    Member since:
    Feb 2012

    Posted 02 May 2014 in reply to Tina Stancheva Link to this post

    Tina Stancheva said:Hi Javier,
    ...
    On the other hand, you can also take advantage of our Backend Services to create the backend for your app in the cloud by storing data, managing users and files, and executing business logic.


    Hi Tina. Will then be any possibility of using that DB for other kind of clients? Say a reporting engine or any data maintenance tasks?
  4. Nikola
    Admin
    Nikola avatar
    22 posts

    Posted 05 May 2014 Link to this post

    Hello Jandieg,

    Backend Services expose a set of API for accessing the data in the Database that can be consumed by all kinds of clients. The team has created SDK wrappers for most popular platforms - Android, iOS, WP, Hybrid, but you can also call the Rest API directly from any other client.

    Regards,
    Nikola
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
  5. Javier
    Javier avatar
    8 posts
    Member since:
    Mar 2014

    Posted 05 May 2014 Link to this post

    Hello, thanks for answer ! Ok, finally I used JSON and other example to download files and save it in the device... This is the title of this example.

    File transferThis sample application demonstrates how to download and save an image on the device via File Transfer core plugin.

    I think that the backends services were the same than a server where I can save the datas 
Back to Top