Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within GWT
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Communication Patterns: A Guide for Developers and Architects
this week in the
Design and Architecture
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Devaka Cooray
Liutauras Vilda
Sheriffs:
Jeanne Boyarsky
paul wheaton
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Carey Brown
Mikalai Zaikin
Bartenders:
Lou Hamers
Piet Souris
Frits Walraven
Forum:
GWT
How to get selected item's ID from suggestBox?
James Bekov
Greenhorn
Posts: 1
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
[color=#444444] I have SuggestBox that connected with database
MultiWordSuggestOracle oracleSurveys = new MultiWordSuggestOracle(); DashboardService.App.get().getSurveyAndFolder(new AsyncCallback<List<DashboardObject>>() { public void onFailure(Throwable throwable) { Window.alert("Error in getting surveys' name and folder's name , see log"); } public void onSuccess(List<DashboardObject> dashboardObjects) { for (DashboardObject dashboardObject : dashboardObjects) { oracleSurveys.add(dashboardObject.getAllSurveyName() + " [" + dashboardObject.getSurveyFolderName() + "]"+dashboardObject.getAllSurveyID()); } } }); surveySearch.addSelectionHandler(new SelectionHandler<SuggestOracle.Suggestion>() { public void onSelection(SelectionEvent<SuggestOracle.Suggestion> suggestionSelectionEvent) { Window.alert("ID is"+ suggestionSelectionEvent.getSelectedItem().getDisplayString().split("\\]")[1]); } });
PROBLEM is "in popup menu ID shouldn't appear , but when i select any item i want to use item's ID "
help please!!!
Doody calls. I would really rather that it didn't. Comfort me wise and sterile tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
XML parsing - #text
XML parsing - #text
IE8 - Not working - Mouse event for ListBox
CRUD + Hibernate + GWT
(GWT) Forcing SuggestBox to display its values
More...