1. #1
    Ext User
    Join Date
    Sep 2010
    Posts
    14
    Vote Rating
    0
    lukeHeather123 is on a distinguished road

      0  

    Default save data in Iphone database

    save data in Iphone database


    Hi guys,

    I'm just starting to use sencha touch to develop applications. Well, I have this form in which you can fill in certain fields and if I save it, I want it to be saved in a text file or any database and at the same time retrieve the data from it. I have read the api documentation and it seems there is no information about this. Is there a way to do this?

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,128
    Vote Rating
    516
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Yes, but not directly. You need some layer in between (php, ruby, .net) that interacts with the DB.

    You would use an Ajax request to send/receive data from the server.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Ext User
    Join Date
    Sep 2010
    Posts
    14
    Vote Rating
    0
    lukeHeather123 is on a distinguished road

      0  

    Default


    I mean the database file is inside the iphone itself. I'm planning to create a app in which the user can update informations and save it in that database when he is offline and sync the database to the server when he's online.

  4. #4
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,128
    Vote Rating
    516
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Oh right, then yes. Look at the LocalStorageProxy.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  5. #5
    Ext User
    Join Date
    Sep 2010
    Posts
    14
    Vote Rating
    0
    lukeHeather123 is on a distinguished road

      0  

    Default


    Is it possible that you can use database such as sqlite or any other database storage in sencha? I want to see the file so that I can validate the data saved in it.

  6. #6
    Sencha User
    Join Date
    Aug 2010
    Posts
    17
    Vote Rating
    0
    nicholasgins is on a distinguished road

      0  

    Default


    This is a good question. Where is the SQLite support? I realize that SQLite is not supported in every mobile browser, but the standard browser installed on iPhone and Android is mobile webkit with SQLite support. Even BlackBerry will have it available for 6+. There is a need for SQLite other than key value pairs with a more robust data storage option on a phone. Maybe Sencha has this on their road map? I would consider this a key feature for the 1.0 release as this will be a decision for those purchasing a license vs. using JQtouch and pure JavaScript as a alternative to reaching their goal.

    lukeHeather, I wouldn't ever trust the client. There is no encryption that I know of available for client side SQLite storage. But that isn't much of a concern if we consider that the phone is locked, the mobile browser is in a sandbox and the data they type in is their's. Trust the user vs don't trust the user. If there is encryption a like to an example would be appreciated.

    Can SQLite mobile store a BLOB(file)? If so a link to an example would be appreciated.

  7. #7
    Sencha User
    Join Date
    Jul 2010
    Location
    Paris, France
    Posts
    257
    Vote Rating
    0
    gabrielstuff is on a distinguished road

      0  

    Default


    From what I've learned from Sencha, there is no dirrect support to sqlite database.
    You have to use a php script and then call it in ajax to use sqlite database in the mobile.

    But from the need of lukeHeather123, it should just use a simple localstorage with synch.
    http://dev.sencha.com/deploy/touch/d...alStorageProxy

  8. #8
    Ext User
    Join Date
    Sep 2010
    Posts
    14
    Vote Rating
    0
    lukeHeather123 is on a distinguished road

      0  

    Default


    Thank you for your replies. I'll try all the suggestion posted and post back if something comes up.

  9. #9
    Sencha User blessan's Avatar
    Join Date
    May 2010
    Posts
    316
    Vote Rating
    1
    blessan is on a distinguished road

      0  

    Default


    Take a look at the form demo by tomalex in the showcase section of the forum. It uses the browser database.

Similar Threads

  1. Ext.ux.grid.RowEditor save data to database
    By Achim74 in forum Ext 3.x: Help & Discussion
    Replies: 13
    Last Post: 19 Jan 2010, 4:06 AM
  2. Save Data from Database in Variable
    By Tascha in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 16 Nov 2009, 3:43 AM
  3. Problem ---Can not save edited data into database
    By ca_phoebe in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 22 Jan 2009, 8:03 AM
  4. save data store to database
    By mnask in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 3 Apr 2008, 6:56 PM
  5. How to save edited grid data to database? using the Ext Learn tutorial?
    By alucard001 in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 8 Oct 2007, 4:59 AM

Thread Participants: 4

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar