The sample code is blow: I use obj.text to get, but no response.
[lua]local searchField
local submitSearchBook = function (event)
native.showAlert(“TEST”, “>>” … searchField.text)
end
local function popupSearch()
local searchBook = ui.newButton{
onEvent = submitSearchBook,
id = “searchBook”,
text = _“Search Book”,
font = native.systemFont,
size = 16,
emboss = true
}
boxInstance:insert(searchBook)
if searchField then
searchField:removeSelf()
searchField = nil
end
searchField = native.newTextField( 0, 0, 200, 50) – , fieldHandler )
searchField = native.newFont( native.systemFontBold, 12 )
boxInstance:insert(searchField)
end[/lua] [import]uid: 51300 topic_id: 10510 reply_id: 310510[/import]