This is a migrated thread and some comments may be shown as answers.

More filter examples

1 Answer 122 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Bruce
Top achievements
Rank 1
Bruce asked on 21 Sep 2011, 08:32 PM
Is there a way to pass multiple values for orderId.
filter: [ { field: "orderId", operation: "eq", value: 10248 }]

For example...

filter: [ { field: "orderId", operation: "in", value: 10248,10249 }]

It would be nice there were more examples of how to use this config.

1 Answer, 1 is accepted

Sort by
0
Andrew
Top achievements
Rank 1
answered on 30 Dec 2011, 01:55 AM

There is no "in" operator.   How about this?

     dataSource.filter({
                  logic: "or",
                  filters: [
                    {field: "orderId", operator: "eq", value: 10248},
                    {field: "orderId", operator: "eq", value: 10249}
                  ]
                });

Tags
Data Source
Asked by
Bruce
Top achievements
Rank 1
Answers by
Andrew
Top achievements
Rank 1
Share this question
or