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
Highlighted
New Developer
Posts: 58
Registered: ‎11-27-2008
My Device: Not Specified
Accepted Solution

how or exist any code pattern keep update/sync the indexedDB local database to MySQL database online?

[ Edited ]

how or exist any code pattern keep update/sync the indexedDB local database to MySQL database online?

Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: how or exist any code pattern keep update/sync the indexedDB local database to MySQL database online?

Unfortunately there is no direct connector to go from a WebWorks application to a back-end database. What you will need to do is have some middleware web server (Apache, Node.js, etc.) which runs a web service that you can make an HTTP request to and GET/POST/UPDATE/DELETE data. The middleware then relays the commands to the back-end database, and returns the results to the device once complete.

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.