Searchfield with autocomplete?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Searchfield with autocomplete?
Hello, I want to create a searchable presentation app. The app contains 10 slides. I want to use tagwords for some slides.
For example SLIDE 5 has the tagword "processing". When I type into the search field "pro" the autocomplete should Identify or guess
my word and should suggest me "processing" (since there is a slide with that tagword) When I now click on that processing word, the
correct Slide 5 will be shown.
Ist that possible in Livecode?
If yes, is there a trainer I can book so I can learn how to programme it or a freelancer who would programme the basis?
Thank you!
For example SLIDE 5 has the tagword "processing". When I type into the search field "pro" the autocomplete should Identify or guess
my word and should suggest me "processing" (since there is a slide with that tagword) When I now click on that processing word, the
correct Slide 5 will be shown.
Ist that possible in Livecode?
If yes, is there a trainer I can book so I can learn how to programme it or a freelancer who would programme the basis?
Thank you!
Re: Searchfield with autocomplete?
Yes you can do that.. I believe someone had written an auto-complete combo box..
Re: Searchfield with autocomplete?
awesome! Thank you. Anybody can point me into the right direction?
Re: Searchfield with autocomplete?
In its simplest form, this isn't hard to do.
Create a list of all the keyword tags and store them as a custom property called "cTags" of the field. Then put this script into the text entry field:
Provide a second field named "suggestions" where the found matches can be displayed. Or you can just put the matches into a variable and do something else with it.
Create a list of all the keyword tags and store them as a custom property called "cTags" of the field. Then put this script into the text entry field:
Code: Select all
on rawKeyUp pKey
put me into tString
if tString <> "" then
put the cTags of me into tLookups
filter tLookups with (tString & "*")
put tLookups into fld "suggestions"
else
put "" into fld "suggestions"
end if
end rawKeyUp
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Searchfield with autocomplete?
Thank you Jacque. Do you offering freelancer programming?
Re: Searchfield with autocomplete?
I do, but I'm pretty booked up right now. But you can use the email address in my signature to drop me a line and we can talk.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com