Ok. I think I made some progress… newSearchField normally has a parameter called listener in the options table but it is perhaps not working as intended yet. Putting the following line right after the point where newSearchField is defined gets me a good listener that triggers :
newSearchField : addEventListener(“touch”, searchListener)
my listener looks very brief and like this :
-- The listener for our searchBox local function searchListener( event ) local phase = event.phase print( "object touched = ", event.target ) --'event.target' is the touched object print ("searchListener - ", phase) return true end
When I run my app now I do see my tableView scrolling and behaving as I expect in rows 2 through n which are the data rows. When I tap or touch row 1 which is the searchField row I now see that my listener is getting the event as I see
searchListener - began and
searchListener - ended
in my terminal! Wohoo!!! Making progress. Now how do I get the newSearchField to process these events internally so we move forward to the ‘editing’ phase? I don’t understand why the newSearchField widget isnt’t catching these events when its implanted in a table as it does when its simply inserted into a regular page, ie a display group.
I know this is yet to be released and therefore unsupported code but any idea you might have will be still very much appreciated. Thank you very much!