Query Filters

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

  1. Create a Tagbox (multi)

  2. Name it “Focus Topic”

  3. Connect to “Controlled Vocabulary”

  4. Open Advanced Filter Editor

    1. Select State Field from Controlled Vocabulary List

    2. Set “State equals Active”

    3. Add

  5. Save

Advanced filter editor to set filter in tagbox (multi).

Create Filters in Tagboxes from Default Values

Prerequisites:

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. 

  1. Edit the Tagbox 

  2. Open the tab "Default Values"

  3. Assign the desired values

  4. Open the tab "General"

  5. Find the "Item Filter"

  6. 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

  1. Find the documented Query Filters

  2. Find the required Query Filters

    1. AndFilter

    2. TermFilter

  3. Copy and paste the code examples as you need them Picturepark will format the code for you on save.

  4. 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. 

  1. Edit the Tagbox 

  2. Find the "Item Filter" in the opened tab "General"

  3. Click into the empty field

  4. Press Ctrl + Space

  5. Add the empty filter object: {}

  6. Press Ctrl + Space

  7. Choose kind to select your filter

  8. "AndFilter" is by default added

  9. Add a comma

  10. Press Ctrl + Space

  11. See the properties required for the AndFilter

  12. Repeat steps 6 - 11 until you have your Query Filter. 

Types of Query Filters

Check all solutions for query filters here.

And Filter

OR Filter

FotoWare Switzerland AG - CH-5033 Buchs - Switzerland
https://picturepark.com - support@picturepark.com
© 2024 Fotoware Switzerland AG