Modifying more than one filter with an action

Comments

4 comments

  • Avatar
    Nathan Giusti

    Hey Pawel,

     

    The filtered view template in Blox has an example of this. 

     

    "actions": [
    {
    "type": "Filters",
    "title": "New Opportunities",
    "data": {
    "filters": [
    {
    "filterName": "Stage",
    "filterJaql": {
    "explicit": true,
    "members": [
    "Prospect"
    ]
    }
    },
    {
    "filterName": "Days in Date",
    "filterJaql": {
    "last": {
    "count": 7,
    "offset": 0
    }
    }
    }
    ]
    }
    }
    ]
    0
    Comment actions Permalink
  • Avatar
    Admin

    I am looking for 1 input to modify 2 filters.

    One Input.Text - I type in 'VALUE' and this must be applied to 2 dashboard filters:

    1. FILTER 1 equals "VALUE"

    2. FILTER 2 equals "VALUE"

    0
    Comment actions Permalink
  • Avatar
    Nathan Giusti
    So you want to filters to be set to the same member?
     
    Create two filters the way we have above and then use the same value field as the member for both filters, illustrated below. 
     
    "actions": [
    {
    "type": "Filters",
    "title": "New Opportunities",
    "data": {
    "filters": [
    {
    "filterName": "Stage",
    "filterJaql": {
    "explicit": true,
    "members": [
    {panel:value}
    ]
    }
    },
    {
    "filterName": "Days in Date",
    "filterJaql": {
    "members": [
    {panel:value}
    ]
    }
    }
    ]
    }
    }
    ]
     
     
     
    0
    Comment actions Permalink
  • Avatar
    Admin

    Nathan Giusti, this doesn't work for me. My input comes from Input.Text and when I use your approach the second filter remains empty (due to the id path data.filters[0].filterJaql.contains )

    1
    Comment actions Permalink

Please sign in to leave a comment.