Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleCreate Filters in Tagboxes from Default ValuesTagbox with Filter Editor

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

eum_create-filters-in-tagbox_advanced-filter-editor.mp4
Create Filters in Tagboxes from Code Examples in Manual
Expand
titleCreate Filters in Tagboxes from Code Examples in Manual
title

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:

query-filters_default-values-for-tagbox.mp4
Expand

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. 

...