2017년 8월 1일 화요일

autocomplete


i'm trying to create an autocomplete procedure.
i write something in a textbox, if the input is present in a list, the procedure should complete the input in the list and write it on the textbox.
obviously it do not work
the clock interval is 100 millisec
--
You are passing a textbox component to a procedure,
but treating it in the procedure like it was that textbox's .Text field.

Pull in an ANYTextbox.Text block into the procedure to get the text value.

--
Also see

--
great stuff. thanks, i think it's just what i need.
and i read too that there will be a new feature related to lists!! just excellent
--
i'm trying the way of the first post, but not setting the text of the textbox, instead setting a result list in a list view
but i'm not good with any component, if you can look at this..
--
You don't need an Any Textbox block because you only are working on one text fragment at a time in this procedure.

Based on what you have coded, I guess you want the procedure to update ResultsList with a list of words that hold this fragment, chosen from the input parameter List.

For starters, fix the names, so you have a basis to avoid mistakes on what does what.

The procedure should be renamed to collectWordChoices
You forgot to empty out ResultList before you started to add words to it.
Rename the List parameter to AllWords, since I image it is where you keep all the words to try to match.
Replace that first step in the procedure with setting global UserText to the current contents of the text box, either by passing it directly or passing in the entire textbox component.
That first green  step was assigning in the wrong direction.

--
i made it easier to understand what is wrong.
and nothing, it doesn't work neither in this simpy way!

abraham the savior i wait for you
--
You are doing in a button click event what should be done in a repeating Clock Timer event while the user types into that Text Box.

You also need to add a ListView.AfterChoosing event to deal with taking the user's choice of Organization and plugging it back into the TextBox.

--
Also, go back and read the doc I mentioned on how to do autocomplete...  How to do Autofill

--

댓글 없음:

댓글 쓰기