Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
protogrid:filter [2020-04-18 15:51] druprotogrid:filter [2020-07-01 16:25] mha
Line 1: Line 1:
 ====== Filter ====== ====== Filter ======
  
-A Filter is basically a field for choosing a filter condition and limiting, which Cards are shown in a Table View or Chart View.+Protogrid has built-in filter mechanisms which are enabled by default for the most common use cases. For example if you have embedded a tableview on a proto for displaying next working steps the displayed entries are automatically filtered so only those next working steps are shown which are assigned to the current responsible (which is stored in a relation field on the same proto).
  
-Currently there exist to sorts of filter fields:+For every field type you can control specific behavioral aspects which are related to data filtering. For tableviews you can select from 4 types of filter fields to allow users dynamically limiting the data available.  
 + 
 +Additionally to data filters Protogrid provides 2 data security features to restrict access to data: "Read Access Role Definition" and "Write Access Role Definition" fields (see [protogrid/read_and_write_access_role_definition]). 
 + 
 +==== Filter Settings ==== 
 + 
 + 
 + 
 +==== Filter Fields ==== 
 + 
 +A Filter field is basically a field for choosing a filter condition and limiting which Cards are shown in a Table View or Chart View. 
 + 
 +Currently there exist 4 types of filter fields:
   * Relation Filter Field   * Relation Filter Field
 +  * Text Filter Field
 +  * Number Filter Field
   * Date Filter Field   * Date Filter Field
 +
 +Hint: if you want to combine multiple filter fields for tableview filtering the target fields must have activated the option "Enable Multi Column Indexing for this Field":
 +
 +{{wiki:protogrid:enablemulticolumnindexing.png?50}}
 +
 +=== Relation Filter ===
 +
 +A relation filter field let's the user select from the available values in the target field and limits the embedded tableview based on the selection.
 +
 +=== Text Filter ===
 +
 +A text filter field let's the user enter any input. 
 +
 +=== Number Filter ===
 +
 +A text filter field let's the user enter any input. 
 +
 +=== Date Filter ===
 +
 +A text filter field let's the user enter any input. 
  
 === Example: Creating a Relation Filter to filter a Table View === === Example: Creating a Relation Filter to filter a Table View ===
Line 15: Line 49:
   - Save & Close the "Relation Filter Definition"   - Save & Close the "Relation Filter Definition"
   - The new "Relation Filter Definition" now appears at the bottom of the "Fields and Widgets" list. You can drag & drop it to the desired position in this list   - The new "Relation Filter Definition" now appears at the bottom of the "Fields and Widgets" list. You can drag & drop it to the desired position in this list
-  - Open the Table Viewyou want to filter, and use the new "Relation Filter Field" to choose your filtering value.+  - Open the Table View you want to filter, and use the new "Relation Filter Field" to choose your filtering value
  
-=== Defining a Date Filter === +=== Example: Creating a Date Filter to filter a Chart View === 
-  - Open the Proto on which the Table View, you want to filter, is defined+  - Open the Proto on which the Chart View, you want to filter, is defined
   - Go to "Fields and Widgets" and then click on the "Create" button on the right   - Go to "Fields and Widgets" and then click on the "Create" button on the right
   - Choose "Date Filter Definition" to create a new "Date Filter Definition" on the current Proto   - Choose "Date Filter Definition" to create a new "Date Filter Definition" on the current Proto
   - Assign a meaningful name for the new Date Filter Field   - Assign a meaningful name for the new Date Filter Field
-  - Define the "Filter Target DateTime Field", which is the field in the Table View you want to filter for +  - Define the "Filter Target DateTime Field", which is the field you want the data in the Chart View to filter for 
-  - Save & Close the "Relation Filter Definition" +  - Save & Close the "Date Filter Definition" 
-  - The new "Relation Filter Definition" now appears at the bottom of the "Fields and Widgets" list. You can drag & drop it to the desired position in this list +  - The new "Date Filter Definition" now appears at the bottom of the "Fields and Widgets" list. You can drag & drop it to the desired position in this list 
-  - Open the Table View, you want to filter, and use the new "Relation Filter Field" to choose your filtering value.+  - Open the Chart View, you want to filter, and use the new "Date Filter Field" to choose the data to filter for
  
Print/export