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
Developer
Posts: 66
Registered: ‎09-14-2011
My Device: Simulator
My Carrier: Developer

How to store data in "Application storage" on "File System"

In the 4th page of this document there is a table regarding the storage.

And i want to use the "Application storage" on "File systrem" mentioned in that table

 

http://docs.blackberry.com/en/developers/deliverables/18090/BlackBerry_Java_SDK-Development_Guide--1...

I have an application which needs to maintain a local data ...... when a user logs in it will fetch from local data .... and if he make changes those changes should be applied to the local data.

Creating a JSON and write it into file and save the file.

Since it is a JSON object i should be able to edit it easily and re-write it back.

 

The file should be there untill user uninstalls the application.

Can this be done through just javascript ??? Or so i have to create the jar with java classes and do it in java class??

I apperciate it if you can guide me to do it through just javascript

Developer
Posts: 66
Registered: ‎09-14-2011
My Device: Simulator
My Carrier: Developer

Re: How to store data in "Application storage" on "File System"

I decided to create a local database and store the data in it

is it possible to do this only through javascript??? or do i have to write java classes???

Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: How to store data in "Application storage" on "File System"

It's possible, search this forum and you'll find a basic example with a sample stored on Github.
--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Developer
Posts: 163
Registered: ‎05-06-2011
My Device: Playbook
My Carrier: Not Specified

Re: How to store data in "Application storage" on "File System"

An example application using HTML5 database https://github.com/ddluk/WebWorks-Database