Skip to main content

Appcelerator SQLite Part 3: Adding Events & Passing Data With Tableview

Posted on February 4, 2012 by Anthony James Founder/CEOAnthony James Founder/CEO

In this screencast we will learn how to add event listeners to our appcelerator tableview. Our goal will be to pass information to a new window when a row within the tableview is clicked or selected. That new window will query our SQLite table and display some information from the SQLite Database and in the window.


Image of Bob
8 years ago

Thanks for the Titanium videos. They’re very good.
Not sure I understand how you setup the qk.db database.
The table is called quotes.
Does it contain 3 field names: name,id and quote?

Image of Anthony James Founder/CEO
Anthony James Founder/CEO
8 years ago

Sure, have you watched video 1 yet? qk.db does have a table named quotes with the name id and quote in it. The name is the author, the id is the id of the quote, and of course the quote is the quote.
I can provide the source files for you if it would help.

Image of William
8 years ago

Thanks for the tutorials – they are great. They really helped me wrap my head around developing with Titanium.
Don’t know if you’re looking for suggestions for future tutorials, but I would love to know how account login info is stored or accessed. Hopefully I didn’t miss where you already covered this, but if not that’d be great for me.

Image of Anthony James Founder/CEO
Anthony James Founder/CEO
8 years ago

Account login for which part of the app? Accessing the data over the network or logging into the app? Are you looking for an app that allows the user to login?

Image of Trisha
8 years ago

Can you please help me understand Windows a bit better?
I see that each time you click on a name, it creates a new window.
Does this window ever “die”? Or over time can the number of windows that exist keep growing and growing?
When would you want to use and window.close() … and why?

Image of Gabor
8 years ago

Thank you for the tutorials.
Waiting for next ones.

Leave a Reply

Your email address will not be published. Required fields are marked *