CSLTech / budibase-autocomplete

Budibase Autocomplete Plugin
1 stars 3 forks source link

Getting autocomplete to work. #2

Open Branteagle opened 2 months ago

Branteagle commented 2 months ago

I have tried multiple things trying to get the plugin to work and have had no luck. Can you please provide an example using the plugin? I tried using it with an SQL table and with a googleplaces API. I only returns No Results Found

I am able to get the googlemaps query to work when i search an address and press send, however, it will not work with the autocomplete function.

I am using Custom Query

Branteagle commented 2 months ago

is there anyway at all that you can show an example of how you have it set up in budibase using each Data Source Type?

Branteagle commented 2 months ago

I was able to get it to work as well, however, there is a slight issue with the Budibase Datasource selection.

In order to get it to work you have to first select Custom Query as the Data Source Type, then assign the Loading State Binding to the correct State.

Once that is selected, it will work as it should.

To fix the issue, it would be good to have that showing when Budibase Datasource is selected.

This can be done by Changing the schema.json

{ "type": "text", "key": "loading", "label": "Loading State Binding", "dependsOn": { "setting": "dataSourceType", "value": [ "query", "budibase" ] } },