Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Tableview not displaying database content since upgrade to 1.4.0 and SDK4.0

Hi All

really pleased i got 1.4.0 running on my device, but now my database is not populating the tableviews?

I have been carrying the id to the next tableview via tableView.addEventListener:

win.rowID = e.rowData.id;

I have then used the win.rowID as part of the SQL:

...WHERE BusinessID ="'+win.rowID+'"');

This is working in the simulator but not on the iphone. Im getting undefined?

On iPhone4 if that makes any difference.

guess I just need a more stable way of passing the rowid to the next window.

thanks again you fantastic peeps!

Mark

— asked August 31st 2010 by Mark Pierce
  • database
  • iphone
  • tableview
0 Comments

4 Answers

  • Can you interact with your database at all on the device? Just wondering if perhaps your DB isn't installing or running correctly on the phone. If so, you may wish to ensure you're using the database install method:

    var db = Titanium.Database.install('yourDB.db', 'yourDB');
    

    Best of luck. :)

    — answered August 31st 2010 by Clifton Labrum
    permalink
    0 Comments
  • Hi Clifton

    Yep, Its reading the first database call. I have the titanium.database.install on each of the windows. but I think its the passing of the id through to the next window which is not working.

    thanks for your response,

    Cheers

    Mark

    — answered August 31st 2010 by Mark Pierce
    permalink
    0 Comments
  • Hi Again

    What is the best way to drill down to 5 levels with tableviews and sqlite data with 1.4.0 and 4.0 SDK and parss variables across to drill the SQL?

    have tried Titanium.App.Properties but its holding information one step ahead of the clicks!

    tired now.

    Thanks

    — answered September 1st 2010 by Mark Pierce
    permalink
    0 Comments
  • duplicate!

    — answered August 31st 2010 by Mark Pierce
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.