cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Using the checkbox widget to query the results of a datatable

Level 1

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?

2 REPLIES 2

Re: Using the checkbox widget to query the results of a datatable

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.

Re: Using the checkbox widget to query the results of a datatable

This is how your service might look (didn’t test):

snip.png

For building the query, see the snippet Create query for DataTable.