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

Native Development

Reply
Developer
Posts: 134
Registered: ‎02-24-2013
My Device: BlackBerry Z10 LE
My Carrier: Telcel
Accepted Solution

Making an editable database

Hi guys!

 

I'm making an app to save all related data about my university, but i need an editable (file) database.

 

I was looking sql and json datamodels but it only save the data while the app is running, and when is closed clean all.

 

I found a way with 'BucketList' sample but it's really confusing!!

 

 

Another way to save and return data easily?

 

Thanks!

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Making an editable database

What do you mean by only saves the data while app is running?

 

If you create or copy the database file in to the data folder it will be writable and persistant even over app updates.

 


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Making an editable database

... and to be blunt if the BucketList example is confusing to you I don't think any of us here are going to be able to easily walk you through creating one.

 

Take a look at the other sample apps as well, I know the MVC model is confusing at first but really powerful once you understand it.


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Making an editable database

This may help as some ground level knowledge...

 

http://www.strongandagile.co.uk/index.php/a-really-simple-explanation-of-mvc/


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Making an editable database

Follow that up with parts 1 and 2 here...

 

http://developer.blackberry.com/blackberrybuilders/prepare/web_training_cascades.html#listanddata1


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 826
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Rogers

Re: Making an editable database

[ Edited ]

to go along with MVC and learning about lists sections 11 & 12 of native tutorials has some useful info as well

 

https://developer.blackberry.com/blackberrybuilders/prepare/web_training.html

 

each lesson has a project you can download and work with to get a better understanding of what the lesson covered

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Making an editable database

Got to be quicker than that slash. Smiley Wink


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 134
Registered: ‎02-24-2013
My Device: BlackBerry Z10 LE
My Carrier: Telcel

Finally it works!

Oh man!! a lot of thanks! it was very hepful, finally I understood and made my app successfully.

 

I made my app with the bucketlist sample:

 

IMG_20140127_003010.png IMG_20140127_003209.pngIMG_20140127_003215.png IMG_20140127_003224.png IMG_20140127_010721.png

 

All it's in spanish haha because I'm mexican hehe.. Thanks Again!!