开发者

Problem regarding database in webos 3.0 ENYO Sqlite

开发者 https://www.devze.com 2023-03-16 10:44 出处:网络
I am new to develop touch pad applications. I am using Enyo framework and sqlite database. I have tried example given in the doc but it seems that the data is stored temporarily. As soon as i refresh

I am new to develop touch pad applications. I am using Enyo framework and sqlite database. I have tried example given in the doc but it seems that the data is stored temporarily. As soon as i refresh the browser or recompile my app the data is lost. I have following queries regarding database:

  1. I want to create database separately, not in the application by openDatabase() method. I want to use this database in my application, So where to locate this database in my app and how to connect to this database?

  2. I was also not able to locate where my database is created in my app?

  3. I want to create connection to the database and access data from the tab开发者_如何学Goles on load of the application. I know there is application on load event but still was not able to do that..

It is very basic things that should be known to create any application on any platform. If anybody have any knowledge on above things then please help. It will be better if someone can provide an example. I am waiting...


For anyone interested on SO, i answered this question over at the Palm Developer Centre. To create the DB on app launch, you can override the Kind's ready method.

ready: function(){

         // Open the DB
         var db = openDatabase("ext:someDB", "1.0", "someDB", 50000);
}

https://developer.palm.com/distribution/viewtopic.php?f=11&t=15996

0

精彩评论

暂无评论...
验证码 换一张
取 消