This is a migrated thread and some comments may be shown as answers.

Json example

1 Answer 73 Views
HTML5, CSS, JavaScript
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jigar
Top achievements
Rank 1
Jigar asked on 19 Sep 2015, 03:22 AM

Hello,

I am creating one hybrid mobile application and i want to fetch data from SQL server so can you give me any hint or demo example for that as soon as possible.

 

Thank you

Jigar

1 Answer, 1 is accepted

Sort by
0
Anton Dobrev
Telerik team
answered on 23 Sep 2015, 03:38 PM
Hi Jigar,

Based on the information you provided I am assuming that you have an existing SQL database and you would like to consume the data from it in your mobile app.
You may want to consider a few approaches, either integrated in Telerik Platform, or that require additional development efforts on your end. To do this you will need to have a web services layer on top of the SQL database and consume the data through HTTP requests from the client app.

The integrated solution in Telerik Platform allows you to achieve this by installing a Data Connector in your infrastructure, also available for Linux. After that you can quickly expose the database tables and stored procedures through HTTP endpoints. Consume the data from the endpoints from your client app using the JavaScript SDK of Backend Services or jQuery Ajax requests.

Using this approach allows you to use web services with offline synchronization mechanism out-of-the-box.

The latest sample project of Backend Services is available in this repository. You can clone it directly in your Telerik Platform account by clicking on this link. More samples could be explored here.

You may also consider using the Telerik Data Access services wizard to quickly scaffold and build a web services layer on top of the SQL database, and deploy them to your own web server.

A third approach might be to build your web services with a technology like ASP.NET Web API (for .NET), or frameworks like Spring for Java.

When you have your web services layer ready, proceed with connecting the mobile app to them, for example, with Kendo UI DataSource that feeds Kendo UI mobile widgets. Demos for all widgets are available here. You can also work with these services with HTTP requests.

Let me know if this helps.

Regards,
Anton Dobrev
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
HTML5, CSS, JavaScript
Asked by
Jigar
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
Share this question
or