Ok. I moved my code to do away with scrollView on this screen. Now I have a tableView which normally shows a list of records and now I insert the newSearchField on row 1. Row 2 onwards contain my records.
The following is my ORT for the tableView. I tweaked it to detect row.index == 1 which means my searchField was tapped and if row.index > 1 then a record was tapped so I go to the detail page for that record etc.
Now the question is how can I change the ORT to pass the touch down to the newSearchField’s listener if row.index == 1. Can anyone fathom a guess? Thanks much for your help.
-- Handle touches on the row local function onRowTouch( event ) local phase = event.phase local row = event.target if event.phase == "press" then print( "Pressed row: " .. row.index ) elseif event.phase == "release" or event.phase == "tap" then print( "Tapped and/or Released row: " .. row.index ) row.reRender = true if row.index == 1 then -- this is the searchBox - pass control to its listener -- I need something to go in here to pass control to the search field's listener. else storyboard.gotoScene( "scn\_detail" ) end end end