We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option to select filter type allowing to select multiple values.
Example:
... filters: source: name: Source type: select multiple: true options: [Source 1, Source 2, Source 3] default: [Source1, Source 2] ...
2 potential implementation:
select
multiple
checkbox
fieldset
The text was updated successfully, but these errors were encountered:
Might not be an easy solution for this:
Here is a sample query URL with 2 values for the source parameter: https://datasette-dashboards-demo.vercel.app/jobs?sql=select+count(*)+as+%22count%22+from+offers_view+where+source+in+(%3Asource)%0D%0A&source=Apec&source=RegionsJob Datasette only retrieve the first value and generate a form with a single entry for the source parameter.
source
The only way to perform the "IN" clause is to use multiple named parameters for each value in the list: https://datasette-dashboards-demo.vercel.app/jobs?sql=select+count%28*%29+as+%22count%22+from+offers_view+where+source+in+%28%3Asource1%2C+%3Asource2%29%0D%0A&source1=Apec&source2=RegionsJob
Sources:
Sorry, something went wrong.
An upstream issue has been opened in Datasette: simonw/datasette#2035
?a=1&a=2
No branches or pull requests
Add an option to select filter type allowing to select multiple values.
Example:
2 potential implementation:
select
tags can specify amultiple
attribute allowing multiple values selection of options: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/multiplecheckbox
input using afieldset
: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input/checkboxThe text was updated successfully, but these errors were encountered: