|
Re: Google Maps Autocomplete in smartfield [message #1826907 is a reply to message #1826879] |
Mon, 04 May 2020 11:56 |
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.02989 seconds