WebWorks and persistent or storage SQL Lite

Hello

I'm looking for more help write webworks app for persistent storage or SQL lite storage,

Anyone can throw some light on this.

Thank you.

Hi tububerry,
You can see https://developer.blackberry.com/html5/apis/Database.html
https://developer.BlackBerry.com/HTML5/APIs/localStorage.html

and here's the example source code: http://blog.darkcrimson.com/samples/localdb/darkcrimson_localdb_demo.zip

A Pham

Tags: BlackBerry Developers

Similar Questions

  • Sql-Lite problem

    I looked at the documentation and many examples, but I can't seem to get my departure from the database sql - lite.

    I created the database in the screen here:

    URI myURI = URI.create("file:///SDCard/flash.sqlite");
    
    d = DatabaseFactory.create(myURI);
    
    d.close();
    

    I tried to register information in the database here:

    URI myURI = URI.create("file:///SDCard/flash.sqlite");
     DatabaseFactory.open(myURI);
    
     Statement st = d.createStatement( "CREATE TABLE 'Restaurant' (  'Experience' TEXT,  )" );
    
     d.createStatement("INSERT INTO Restaurant(Experience) " +
     "VALUES ('message1')");
    
     st.prepare();
     st.execute();
     st.close();
     d.close();
    
     Dialog.alert("Your info was saved!");
    

    Any ideas what im doing wrong?

    Thank you

    Scientist

    It should work

    BCZ I work on dat only.

    You need to do sumthing wrong;

    Just check your code.

    Debug your code you find error wl.

    Try like dat.

    URI myURI = URI.create("file:///SDCard/database/flash.db");
    
  • SQL LITE

    Hello everyone, I'm wanting to create a sql database lite for my application to store and retrieve data.  I know very little on the subject and I was wondering if someone can point me in the direction of some great examples or documentation?

    Thank you

    Scientist

    Hello

    SQL Lite is easy for the Blackberry.

    Here I am attaching some of the classes may b that will help you.

    public URI myURI;
    myURI = URI.create("file:///SDCard/BlackBerry/Database/"
                        + "DatabaseName.db");
                this.setMyURI(myURI);
        public URI getMyURI() {
            return myURI;
        }
    
        public void setMyURI(URI myURI) {
            this.myURI = myURI;
        }
    
    //Now generate one class which is having all database table fields
    //if you are using 3 tables den u have to make 3 classes
    
    Example
    
    public class Schema {
        Database db;
    
        public Schema() {
                URI newURI = UiApplication.getUiApplication().getMyURI();
                db = DatabaseFactory.open(newURI);
                Statement user= db.createStatement("CREATE TABLE 'User' ( "
                        + "'ID' INTEGER PRIMARY KEY AUTOINCREMENT," + "'Name' Text," + "'Password' Text," + "'Email' Text)");
                user.prepare();
                user.execute();
                user.close();
    //2nd schema
        ......
                db.close();
    
        }
    
    }
    

    In your main class where you want to insert/change/remove data write these codes

    Database dbLink;
    URI newURI = UiApplication.getUiApplication().getMyURI();
    dbLink = DatabaseFactory.create(newURI);
    dbLink.close();
    Schema s = new Schema();
    db = DatabaseFactory.open(newURI);
    String Username = "BB";
    String Password = "BlackBerry";
    String Email = "";
    
        Statement st = db.createStatement("INSERT INTO User(Name,Password,Email)"
                    + " VALUES ('"
                    + Username
                    + "','"
                    + Password + "','" + Email + "')");
        st.prepare();
        st.execute();
    
        db.close();
    

    ----------------------------------------------------------
    feel free to press the congratulations on the left side to thank the user who has helped you.
    Please mark as resolved messages if you found a solution.

  • Question SQL-Lite

    Hello, I was wondering if it would be the right way to implement a database SQL-LITE and if I had to submit my application code runs correctly?

    URI myURI = URI.create("file:///SDCard/flash.db");
    d = DatabaseFactory.create(myURI);
    d.close();
    

    I want to save a database to the SD card and was hoping that this was accomplished over there without any other necessary implementation.  For example whenever I have rn that on the Simulator, I need to create a directory for this database.  What it will be just as easy as this presentation and the database is stored on the sd card?

    Thank you

    Scientist

    Yes, this create a file named flash.db in the SD card, but outside the records.

    To save the file in the folder document from SD card, you can use

    "file:///SDCard/Blackberry/documents"+fileName;

    Hope this helps.

    ------------------------------------------------------------------------------------
    Kudo press to say thank you to the developer.
    Also, press accept it as a button when you got the Solution.

  • Hello. Why isn't the new version of Firefox, taken care of by the Google toolbar? The translation was so convenient and I tried google translate lite, but it's not as convenient. Thank you.

    Hello. Why isn't the new version of Firefox, taken care of by the Google toolbar? The translation was so convenient and I tried google translate lite, but it's not as convenient. Thank you.

    Please click the button solved it next to the answer that solved your problem of Firefox support, it appears when you are connected, so this thread is marked as resolved to help other users who may have this same problem.

  • I HAVE 64 GB OF STORAGE IN MY PHONE BUT MY PHONE ME SHOWS YOUR STORAGE SPACE IS ALMOST FULL AND I DO STORAGE IN MY PHONE ONLY 4 GB, PLEASE WHAT SHOULD I DO

    I HAVE 64 GB OF STORAGE IN MY PHONE BUT MY PHONE ME SHOWS YOUR STORAGE SPACE IS ALMOST FULL AND I DO STORAGE IN MY PHONE ONLY 4 GB, PLEASE WHAT SHOULD I DO

    Take a look at this thread and follow the steps in troubleshooting offered it. The question may be somehow connected with WhatsApp, then try to delete the app.

    storage of iphone issues 6

    Try resetting your device. This will not erase your data stored on that device.

    • Press and hold the sleep/wake button
    • Press and hold the Home button
    • Press and hold both buttons until the display turns off and on again with the Apple logo on the subject.

    Alternatively, you can go to settings - general - reset - Reset all settings

    If that doesn't work, restore your device to factory settings. Please note that this will delete the data on your device.

    Take a look this Apple Support article:use iTunes to restore the iPhone, iPad or iPod to factory settings - Apple Support.

  • HP Pavilion 17-f065us: power and buttons f6 (Mute) remain lit after a stop on HP Pavilion 17 - f065us

    I have upgraded to Windows 10 in October 2015 and everything worked very well until about two weeks ago, I noticed that when I would stop my computer Power and buttons f6 would remain lit.  I would go ahead and close the lid of my but next time I would go to to open they would always be lit.  I have to press on and hold the Power button until the lights go out.

    Hello

    Try disabling the startup of Windows 10 hybrid - you can do the following.

    Open settings and select System.  Select food and sleep, and then click additional power settings - in the next window, click on "Choose what the power button" in the left pane.

    In the next window, click on "Change settings that are currently unavailable" (close), then Remove the check mark from the box against 'Turn on a quick start (recommended) '.  Click on the button Save the settings, and then close open windows and stop the laptop by right clicking on the icon from the Start Menu, select prompt (Admin) and click 'Yes' to the uac prompt.

    Type (or copy and paste) the following command (including spaces) and click Enter.

    Shutdown /s /t 0

    Start Notepad and let Windows take over completely for a few minutes before checking if the lights now now disable to stop correctly.

    If this has fixed the problem, it may be useful by turning the quick start back on - sometimes simply remove and re-create the file will solve the problem.

    Kind regards

    DP - K

  • When I was able to remove the preinstalled Apple apps I have no use for and take my storage?

    When I was able to remove the preinstalled Apple apps I have no use for and take my storage?

    When Apple decides to make that an option.

    In total, I'd be surprised if apps take up more of one to two hundred megabytes.

  • How can I send my music to icloud and free up storage on my ipad that is full

    I own an ipad and iphone 6. the ipad is about 4 years old approx. full of downloaded and transferred other CDs and my storage capacity is busiest. How can I send my music to icloud and free up storage on my ipad. My iphone has not been synchronized with ipad. Cannot update my ipad for this reason software also.

    Thank you very much

    You can send music in the cloud of a device. You can delete music, and if it's purchased iTunes music you (if it is still in the store and you have not reached the country since purchasing it) may of it redownload purchased in the iTunes Store app tab. Because you own music (for example copied from CD) you'd need have subscribed to Match iTunes on your computer and downloaded the music to her computer, to show him in the cloud.

    You have all your music in your computer's iTunes library? Update of the iOS via a computer version should also require less free space on the device (but the update via a computer requires your content in the iTunes library, the update process will take up a back, wipe the iPad and install the iOS update and restore the backup, the backup contains things such as your documents photos, contacts, settings, etc, music, apps, etc. is picked up in the iTunes library)

  • Maximize battery life flash by using the Scriptures of sector size file. USB and SD card storage limits Cap

    I use the sbRIO-9636 with 512 MB of non-volatile storage (Flash I presume?).  I'm not find the size of the sector in the Spec Docs, I found it, and Measurement & Automation Explorer does not display it no more, and I can't find one physical property of RT to make it.  I built a utility 'RIO leader Writer"for the text written to the buffer until the sector size is full or until the file is closed using the VI, but it would be useful to know the sector size.  For now, I'll assume 32 KB as I read the 9606 uses 16 k with its 256 MB drive.

    I have attached the utility (a single LV 2012 (VI) in case someone else would be useful.  I promise you there better performance or memory efficient, but its purpose was to save the Flash of my application, which supports the recording of data CAN (1000 + packets/sec) to the file, and it does that very well.  I continued to save the CAN data without it, with each written separately CAN package (~ 40 characters / record log, or ~ 820 written by sector of 32 KB), I probably would have started to lose areas in the next few weeks was not that of wear levelling - maybe even with wear leveling.  With that, life shouldn't be a problem (although the ability remains one, I can switch to USB storage if it is).

    Come to think of it, this can help with all the data being quickly to any player, as all readers use sectors (or blocks of sectors), assuming that you can sacrifice the RAM requirements to register your system hard disk (or to).

    Storage issues more:  What is the limit of the capacity of the SD and USB function storage on the sbRIO-9636 map?  The specification mentions support SDHC, but does not say specifically THAT SDXC is not supported.  It does support the monstrously huge SDXC cards or the max for SDHC (32 GB)?  In addition, with SD and USB storage, is size of block review?  LabVIEW has a property, I can read for all this that I don't see?

    Thank you!

    Erik Ledding

    Test Engineer

    Sub-zero, Inc..

    Hi Erik,

    I was wrong, we have a LabVIEW function that will find the size of area for a specific drive, it's the Get Volume Info.vi (link). You can run this VI and the flash drive on the sbRIO to find the minimum size of sector for reference entries.

    Regarding external drives to the USB port, I think you are right in your assumption about the limits of FAT16 and FAT32. Keep in mind there are also limits on file size of 2 GB or 3 GB of maximum file size.

    Most of the USB-to-IDE adapters works for the sbRIO (or cRIO), but USB-to-SATA is not supported to work on sbRIO. You can always try to use a SATA-USB HARD drive, but it might not work.

  • Plugin Eclipse Webworks and polisher/polisher Build

    Hello

    I work with work lamp Studio, which is an Eclipse Plugin, so after I build the project buffer/polisher, buffer/polisher build a Webworks project for me, but I am not able to run or install the application on a device. So what I do is that I have create a new project of Webworks and copy can HTML, CSS, JS files to the www folder and I run the project using web webworks SDK.

    y at - it a plugin Eclipse to run my application directly from Eclipse?

    At the present time there is no Eclipse plug-in for WebWorks. There was in the past for our platform BBOS inherited, but it was obsolete a few years back.

  • If I can simulate OS5 using webworks and ripple?

    As the title suggests, is it possible to simulate os5 using webworks and ripple? Currently, under the "parameter"information"ripple, showing the operating system is 6.0 and it seems immutable.

    So as far as I know, based on the research I did, there no way to simulate OS5 in undulation.

    (see last comment on this page: http://devblog.blackberry.com/2011/05/blackberry-webworks-updates/)

    The solution is to install the SDK Webworks and allows to compress your application. Here's a good tutorial:

    http://supportforums.BlackBerry.com/T5/tkb/articleprintpage/tkb-ID/browser_dev@tkb/article-ID/87

  • WebWorks and widget is the same?

    WebWorks and widget is the same?

    The BlackBerry Application Platform WebWorks is an evolution of what exists only in the development of Widget SDK.  They are not the same.

    The BlackBerry Application Platform WebWorks is just that - a platform - to create BlackBerry applications.

    More than a developer tool, it is the platform that encompasses all the development tools available, supported technologies and services that are available for developers to use to create applications fully functional BlackBerry using web technologies such as HTML, CSS and JavaScript.

    The BlackBerry Application Platform WebWorks is:

  • Create jobs and positions via PL/SQL script

    Hi, it is recommended to insert new jobs and positions via PL/SQL Script?

    I know it's possible, I'm not sure if it is recommended. especially when it's via a direct insertion.

    Is there an API for it?

    I have about 200 + positions I need to set in our Instance of the EBS Test.

    Thank you!

    The APIs are the best way to do it in batches of charges-

    Job: HR_JOB_API

    Position: HR_POSITION_API

    To know that all the seeds API, add the responsibility of integrated SOA gateway

  • volume of the app and persistent discs

    I have a clone-related persistent + pool

    now I start to use the Volume of the App and have a question

    I can use the persistent disk + accessible volume writable by uia

    or an accessible volume writable for the uia and profile persistent diskless

    accessible volume writable for the profile and persistent disk works together?

    Yes. As far as I know, manually migrate the data is the only option and I'm not aware of all the tools to automatically migrate the data into writable volumes.

Maybe you are looking for

  • Sat Pro M30: Can't see the wireless network.

    In my work, we have the wireless network. When I search the network I don't see. the wireless signal is strong.my laptop Satellite Pro M30's. Could you please have the solution or know what the problem is.

  • Watlow DP front panel

    Hello Can anyone help. I am currently doing a project for College. Basically, my plan is to use labview to control a temp of DP watlow controller to turn on a heater off the coast. I want only basic as set functions of preforms and read the temperatu

  • Pavilion g6-2241sa: remove message after problem solved

    In 'updates & tune-up' in my "HP Support Assistant" I see that an important message is available. This is 'create your system recovery '. This has been done.  How can I remove this message? Similarly, in "security potentiaal risk" I see in 'security

  • Reinstall Vista on different hard

    Hi all! I picked up a laptop replacement for work (lets call it #2).  It came with Vista upgraded to it, and I guess he had originally XP because it is two years old. Anyway, being a laptop from work I want to put a larger HARD drive in it.  What wor

  • Problems of connectivity with R-2621xm, S-2950

    Hello, I have a 2621xm router and a Fa 2950 (24 ports) switch. I have a problem for the WAN switch outside, when I run a ping test when you are connected to the cable on the router console, it works fine. DHCP works very well for VLANs and I can ping