Setting up an Auto Fill IOS text field
Posted: Mon Mar 12, 2012 1:36 am
Hi,
I have uploaded a little stack that compares text being typed into a field with another field holding many words. As you type it compares your entered text against the larger data field and loads matching results. The stack loads in the iOS tester and you can see it works there or on the desktop. I would like to set this up with IOS text fields but have had no luck placing the On KeyDown pKey handler or the rawKeyUp handler.
I started trying to work toward the end result with the code below but with no luck.
on inputEndEditing
put iphoneControlGet ("fType", "text") into tFilter ## the text entry field
put fld "fList" into tCont ## the field container holding all the words
put tFilter &"*" into tFilter
filter tCont with tFilter
iphoneControlSet "tFound", "text", tCont
end inputEndEditing
I have uploaded a little stack that compares text being typed into a field with another field holding many words. As you type it compares your entered text against the larger data field and loads matching results. The stack loads in the iOS tester and you can see it works there or on the desktop. I would like to set this up with IOS text fields but have had no luck placing the On KeyDown pKey handler or the rawKeyUp handler.
I started trying to work toward the end result with the code below but with no luck.
on inputEndEditing
put iphoneControlGet ("fType", "text") into tFilter ## the text entry field
put fld "fList" into tCont ## the field container holding all the words
put tFilter &"*" into tFilter
filter tCont with tFilter
iphoneControlSet "tFound", "text", tCont
end inputEndEditing