Autocomplete text fields

When they select the title in the tableView of search results and you get an onRowTouch() event then you can make your network.request(), fetch the full results and display them when you get the call back in listener function to gave to network.request().

Rob

Thanks Rob for the reply. But it is a little complex for me to understand.

It would be really great if you could help me with some code snippet because i am new to this and the code snippet would help me learn better.

Thank you in advance.

Shivani

Well it is a complex concept. It involves tableViews which requires setting up a tableView, inserting data into it, a function to draw each row and a function to handle when people touch a row. Then you have to understand what a row is (a display.newGroup) and how it relates to the display objects (mostly display.newText()'s) you are using to create each row. 

You have to understand how network.request() works, and how to handle returned data from that. You have to be able to create the display of the downloaded content. This will vary depending on if you’re using Composer or not for scene management.

This is something that just isn’t "snippet"able.

I would spend time learning about tableViews. There are multiple sample apps that use tableViews in the sample code that ships with them. There should be tutorials out there as well.

We are working on a sample project right now that does what you’re asking for. Once it’s complete it will be on our GitHub repository and you can look at that, but it’s going to be a couple of weeks probably.

Rob

Hey,

Thanks Rob.

I will surely try looking into the concepts and referring some tutorials. Can you suggest any other way in which I can let my users know about what all books are available in the database and accordingly they can search for their requirement.?

Thank you in advance.

Shivani

You’re on the right track. You might want to look at https://github.com/coronalabs/business-app-sample

I recently added some SQL features and input. It also has tableView examples.

Rob