Using the checkbox widget to query the results of a datatable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Using the checkbox widget to query the results of a datatable
I am looking for ways to filter out a data table using checkbox widgets.
For example:
I have a data table that includes information from partners and internal. I want to have two check boxes where if you click the check box "Internal" the data table will update to only show the information regarding the internal list.
Is it possible to have this kind of functionality through a check box widget or any other widget for that matter?
- Labels:
-
Troubleshooting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How is your data table constructed? Is there a field or a tag that defines whether the row is from partners or internal?
Checkbox widget has the event Changed and the property State. You could bind these to a custom service where you do some comparison (if checkbox is checked) and call the data table’s built-in QueryDataTableEntries service where you pass in a query of your own.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This is how your service might look (didn’t test):
For building the query, see the snippet Create query for DataTable.