When a template is exported from one installation and then imported in another, you might want to use different values in a select field. To avoid making a new datastore parameter to support this, you can also use filtering. This is how to set it up, do this from the start, to avoid issues when migrating:
Any datastore parameter that is used in a selection field, please add a field 'filter_version'
Enter '001' as version for all entries
When this datastore parameter is used, set up this 'Plain text' Filter:
In the example above, the list of entries in the datatore parameter is fitlered against 2 rules:
Version = v001
Filter = Q_Exams
Please note that quotes are NOT needed when setting a dynamic value! Quotes are only needed for hardcoded filter values, as in the example above.
When dynamic values are used, this is the correct syntax: [{ "fieldname": 'Version', "filtervalue": 'v001' },{"connector": 'and', "fieldname": 'Filter', "filtervalue": #REPLACE-PARTVALUE-Faculty_promotor||Value# }]
Important notes
Do not add quotes around dynamic values (values coming from other parts).
Quotes are required only for hardcoded values such as "Belgium" or "v001".
Example of correct dynamic filtering:
Please note that no quotes are needed when setting a dynamic value! Quotes are only needed for hardcoded filter values, as in the example above.
Final note: Filters are applied to existing services, so a task runs every 5 minutes to apply any changes. You can kickstart this task by opening this link:
When creating a selection field, for example checkboxes, you have 3 options when settings the Documents filter. These are:
No filter: all documents are shown
On part: this option allows the filter against 1 (and only 1) document part. For example, where the Category = Test
Function: this new feature allows to make a filter against multiple data-elements. The filter is built using Javascript, some example can be found below.
Function (Javascript) Filter examples
Filter against 2 Document parts
In the example below, we only want to show the documents, that are valid under these 2 conditions:
Category 'equals' C1
Docs_Status 'is different from' Archived
So the internal labels of the document parts are : Category & Docs_Status.
Note: ID a user selected a document in the past, and the user then changes this document's status to 'Archived', the changed document will no longer be shown in the list. This is as expected via the filters. But, the document that was selected in the past is still selected in the DB, but no longer shown.
Filter against current date
The example below checks in filter 1 if the field 'Status' holds 'Beschikbaar' and the field that holds a date in yyyyMMdd, lies after the current date: