Query Filters
- Elaine Foley
Create Filters in Tagbox with Filter Editor
Prerequisites:
Field “Focus Topic”
ID: focusTopic
Connected List: Controlled Vocabulary
Goal:
In a Tagbox "Focus Topic" we only want to show active values and concepts.
How To
Create a Tagbox (multi)
Name it “Focus Topic”
Connect to “Controlled Vocabulary”
Open Advanced Filter Editor
Select State Field from Controlled Vocabulary List
Set “State equals Active”
Add
Save
Create Filters in Tagboxes from Default Values
Prerequisites:
Field “Focus Theme”
ID: focusTheme
Connected List: Controlled Vocabulary
Field: Classification (controlledVocabulary.classification.name)
ID: classification
Connected List: Classification
Field: Name
ID: name
Field: State (controlledVocabulary.state.name)
ID: state
Connected List: State
Field: Name
ID: name
Goal:
In a Tagbox "Focus Theme" we only want to show active values and concepts.
We need to have two criteria, which both must be met: AndFilter.
We need to check for a term in the field state: TermFilter.
We need to check for a term in the field classification: TermFilter.
Using Tagbox Default Values
Picturepark offers some help when building a query filter for a tagbox. You can assign default values and let Picturepark build the filter based on those default values.
Edit the Tagbox
Open the tab "Default Values"
Assign the desired values
Open the tab "General"
Find the "Item Filter"
Press "Select from default values"
VIDEO: How to Use Default Values for Tagboxes in Layers:
Create Filters in Tagboxes from Code Examples in Manual
Prerequisites:
Field “Focus Theme”
ID: focusTheme
Connected List: Controlled Vocabulary
Field: Classification (controlledVocabulary.classification.name)
ID: classification
Connected List: Classification
Field: Name
ID: name
Field: State (controlledVocabulary.state.name)
ID: state
Connected List: State
Field: Name
ID: name
Goal:
In a Tagbox "Focus Theme" we only want to show active values and concepts.
We need to have two criteria, which both must be met: AndFilter.
We need to check for a term in the field state: TermFilter.
We need to check for a term in the field classification: TermFilter.
Using documented query filters
Find the documented Query Filters
Find the required Query Filters
Copy and paste the code examples as you need them Picturepark will format the code for you on save.
Update missing fieldpath working with the suggestions shown when clicking on the underlined value.
Create Filters in Tagboxes from Monaco Editor Intellisense
Prerequisites:
Field “Focus Theme”
ID: focusTheme
Connected List: Controlled Vocabulary
Field: Classification (controlledVocabulary.classification.name)
ID: classification
Connected List: Classification
Field: Name
ID: name
Field: State (controlledVocabulary.state.name)
ID: state
Connected List: State
Field: Name
ID: name
Goal:
In a Tagbox "Focus Theme" we only want to show active values and concepts.
We need to have two criteria, which both must be met: AndFilter.
We need to check for a term in the field state: TermFilter.
We need to check for a term in the field classification: TermFilter.
Using Monacco Editor Intellisense
The Monaco Editor offers some IntelliSense which is basically some coding help. Find some explanations for the Monaco Editor in the frameworks section. Especially helpful is: Ctrl + Space to get suggestions.
Edit the Tagbox
Find the "Item Filter" in the opened tab "General"
Click into the empty field
Press Ctrl + Space
Add the empty filter object: {}
Press Ctrl + Space
Choose kind to select your filter
"AndFilter" is by default added
Add a comma
Press Ctrl + Space
Repeat steps 6 - 11 until you have your Query Filter.
Types of Query Filters
Check all solutions for query filters here.