Bobby
April 4, 2022, 4:57pm
1
Hi, All:
I have a (hopefully) quick question.
I have not had much experience with APIs. I have a list of equipment in a SheetDB database, that equipment has a ‘Category’ field. The list of categories is a collection in Adalo.
I have the API set up and it will bring up the entire list of equipment in the SheetDB database, however, I’d like to sort it based on the category from a drop down.
I have the drop down on the same page as the list, and it is set to look at the categories collection, what I need to know is how do I display the correct items in the list based off of that category.
Thanks!
Hey there @Bobby
I’ve never personally used sheetDB before, but looking at the documentation, it appears that you can query based on parameters.
Here’s what I’m looking at: SheetDB API documentation
It appears that you should be able to add a query parameter to your list where category= {dropdown option}
Similar to this:
Try it out and let me know if it works for you.
Bobby
April 4, 2022, 8:49pm
3
Thanks.
I’m very new to these sort of parameters.
So I place the word Category in the ‘Name’ field and magic text the dropdown’s name in the ‘Value’ field?
If so, it did not work.
Hi Bobby,
This post by Karimo will help you!
Hi @Mykhailo ,
This is a tricky one
The first issue is that SheetDB.io uses different URLs / endpoints for GET - All Data
[image]
and Get - Search documents
[image]
You can start using the first URL:
[image]
But you need to change the endpoint for the GET endpoint:
[image]
The challenge is that you need to get data back to be able to save the configuration in Adalo.
So we need to select something.
That is why you find the ?Name[]=! at the end of the URL
Why the [ ] and ! ??
…
Did a quick Video :
Thank you
1 Like
Bobby
April 5, 2022, 2:00pm
5
You are amazing, thank you!
I have a new question now
You know how custom lists have the option to load results as you scroll, is that not possible with APIs?
I dont see that option when I switch it to a list from the API.
The reason I ask, is each Category will probably have several hundred items in it which may kill performance.
1 Like
Your Welcome!
Still not possible as far as I’m aware! How about creating a Pagination something like this?
Hi,
I have been gradually getting to learn Adalo, and the Adalo community has been truly helpful. Special shoutout to @Flawless and @dilon_perera !
I need some more help, and once again banking on the generosity of the community for help.
I am trying to build a list from an Airtable collection, and I am trying to create multi-page list with each page limited to 10 or 20 records. I tried following the video from @pford about external collections given here: Part 2: Paging Through API Results in…
Thank you
system
Closed
April 15, 2022, 2:39pm
7
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.