Hi,
I want to build a search field with a server side auto complete function. How can I add those values to a TextItem?
TextItem searchText = new TextItem("keyword", "Keyword");
I know that I have to implement a KeyPressHandler and then query the server database, but how can I add the received values to the TextItem??
Suppose I received String[] suggestions = {"Word1", "Word2"}; from the server.
Now I want to call something like searchText.addSuggestions(suggestions);
How can I do that?
Thanks
I want to build a search field with a server side auto complete function. How can I add those values to a TextItem?
TextItem searchText = new TextItem("keyword", "Keyword");
I know that I have to implement a KeyPressHandler and then query the server database, but how can I add the received values to the TextItem??
Suppose I received String[] suggestions = {"Word1", "Word2"}; from the server.
Now I want to call something like searchText.addSuggestions(suggestions);
How can I do that?
Thanks
Comment