First off, I do not have that much knowledge of APIs and using them in Wappler. I do this all the time with a filter and a query parameter in the server actions, but don’t know how on the API source. I searched and saw how to do sorting, which is awesome, but no filtering. I am trying to filter an API datasource with a basic text input value. When I type a value in the text box, it filters the API. The API, to my knowledge, does not have any query parameters. How do I do this completely on the client side? Can it be done?
Right now I have an external API, and I have it connected to a dataview. I created a bootstrap table using the generator and using the dataview as a source. All that is working. I added a session storage manager for my sort and dir sessions and now I have sortable headers.All good so far. I just want to do some filtering of data. I tried using the Filter on the dataview:
filter=“ToteNumber.contains(Totenumber.value)”
where ToteNumber is the column in my Dataview and Totenumber.value is the value of my text input field I’m using.
And it does something… whenever I enter a value in the text field my grid does not return any rows. I clear it and it returns all rows so I think that may be my issue, something is not right there.
@Teodor, any idea on what I’m missing or doing wrong?
I’m trying to filter the external API with the dataview. I have a column in my API called ToteNumber.
With noting in the text field, the table returns all rows. However If I enter anything in the text field, nothing is returned, even a valid filter value.