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
Contributor
racsus
Posts: 40
Registered: ‎04-27-2010
My Device: BOLD
My Carrier: INFORMATICO
Accepted Solution

using sqlite

Hi, I have an application with some pages. I add the code to create the tables in one of pages and I do all the "CREATE TABLE..." but when I change to another pages I think that I lost all data, isn't it? How can I save and load the database that I have created in first page? some sample?

 

Thanks, Oscar

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: using sqlite

Hi Oscar,

 

Is the second page you are loading in the same domain/origin as the first page?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Contributor
racsus
Posts: 40
Registered: ‎04-27-2010
My Device: BOLD
My Carrier: INFORMATICO

Re: using sqlite

what do you mean with domain/origin? the .js script?

Please use plain text.
Regular Contributor
ingybing
Posts: 65
Registered: ‎01-21-2011
My Device: Not Specified

Re: using sqlite

have you tried using 

 

"CREATE TABLE IF NOT EXISTS <table name> (column, column column)"

 

 

Please use plain text.
Contributor
racsus
Posts: 40
Registered: ‎04-27-2010
My Device: BOLD
My Carrier: INFORMATICO

Re: using sqlite

but, I don't want loss all changes make it in last screens. How can I save this changes in database sqllite do it in last screens?

 

Thanks,

Please use plain text.
Contributor
anzorb
Posts: 30
Registered: ‎02-04-2011
My Device: BB9900 & PlayBook16GB
My Carrier: Rogers

Re: using sqlite

From my knowledge, data in the sqllite database is stored until the application is uninstalled. You can access it from any page within the same application.

 

If you need help with sqllite, check the solution of the following thread:

 

http://supportforums.blackberry.com/t5/Web-Development/Saving-credentials-locally-on-PlayBook/td-p/8...

 

Please use plain text.