Filtering a database query via a URL parameter should work as described in: https://docs.wappler.io/t/filtering-database-query-with-an-url-parameter/2868
Actual behavior
Nothing is returned. However, creating the same query manually via the custom query builder returns results as expected.
How to reproduce
-
Declare a url variable - in my case: ‘id’ (lower case) on the app side.
-
Create an action file on the server-side and declare a variable under the GET portion and call it ‘id’.
-
Create a database query and filter it by the variable id:
-
Create a custom database query with an identical logic:
You should have something like this:
-
Create a serverconnect on the app side and make sure the id is filled in.
-
Test your ‘normal’ database query in a page (any column). It returns nothing, as if the url parameter wasn’t passed on.
-
Test your custom query - it returns what you expect.