appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
33.16k stars 3.6k forks source link

[Feature]: allow conditional param #14846

Open Eudemon opened 2 years ago

Eudemon commented 2 years ago

Is there an existing issue for this?

Summary

in queries, allow conditional include param in key column e.g {{appsmith.URL.queryParams.id ? 'id' : null}}

Why should this be worked on?

image

there are API endpoint where you can not have a param with empty value e.g id=

an example use case would be: make request to get a list click a button to resend request but with a filtering param

wanted result: allow conditional include param in key column e.g {{appsmith.URL.queryParams.id ? 'id' : null}}

currently work around is create duplicate query with an id key this isn't ideal if the page has multiple button to filter, and over long run maintenance of many almost identical queries adds up

filipesmedeiros commented 1 year ago

We also want this. It's very important for complex server-side filtering! :D

crawfobw commented 1 month ago

Any updates here?

Nikhil-Nandagopal commented 1 month ago

@crawfobw right now the only way is to write the key and value conditionally directly in the URL