Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Google Maps Autocomplete in smartfield
Google Maps Autocomplete in smartfield [message #1826879] Sun, 03 May 2020 19:28 Go to next message
Mr Robot is currently offline Mr RobotFriend
Messages: 72
Registered: March 2020
Member
Hi,

Is it possible to create lookupcall and smartfield with option to select address form Google Maps Geocoding to select address.

For example:

When typing address I get addresses from google, and when I select one address I can get response with all data from that address

Thanks
Re: Google Maps Autocomplete in smartfield [message #1826907 is a reply to message #1826879] Mon, 04 May 2020 11:56 Go to previous messageGo to next message
Beat Schwarzentrub is currently offline Beat SchwarzentrubFriend
Messages: 214
Registered: November 2010
Senior Member
Yes, principally that's possible. In Scout Classic, you have to create a custom lookup service. Especially the methods ILookupService#getDataByText (called while typing text in the smart field) and ILookupService#getDataByKey (called when a lookup row is selected) are of interest. If you want to allow free text as well, i.e. values that are not returned by the service, use AbstractProposalField instead of AbstractSmartField( note that this requires String keys).

To call external APIs, you can use any method you like (google it). For REST, Scout provides the module org.eclipse.scout.rt.rest and implementations for Jersey and Jackson, but other libraries will work as well.

Regards,
Beat
Re: Google Maps Autocomplete in smartfield [message #1827041 is a reply to message #1826907] Wed, 06 May 2020 11:34 Go to previous message
Mr Robot is currently offline Mr RobotFriend
Messages: 72
Registered: March 2020
Member
Thank you, will try
Previous Topic:Change css style of AbstractImageTile
Next Topic:BrowserField - Parse HTML after post
Goto Forum:
  


Current Time: Mon Dec 09 02:11:24 GMT 2024

Powered by FUDForum. Page generated in 0.02989 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top