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

[Solved] Grid and client filtering

1 Answer 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Grzegorz Żydek
Top achievements
Rank 1
Grzegorz Żydek asked on 07 Jun 2010, 02:33 PM
Hi,

When i try filter grid with javascript using:
(PodmiotId~eq~'4')~or~(PodmiotId~eq~'1')~or~(PodmiotId~eq~'2')
I've got error:

Expected RightParenthesis


The problem occurs always when i conect 3 or more filters with 'or'

Please help me, if you can.

Best reards,
Grzesiek

1 Answer, 1 is accepted

Sort by
0
Grzegorz Żydek
Top achievements
Rank 1
answered on 07 Jun 2010, 02:56 PM
OK, I found a solution.

Instead of:
(PodmiotId~eq~'4')~or~(PodmiotId~eq~'1')~or~(PodmiotId~eq~'2')

I used
((PodmiotId~eq~'4')~or~(PodmiotId~eq~'1'))~or~(PodmiotId~eq~'2')

So I have to add extra parantheses if I want join multiple filters with 'or' word
Isn't it a bug?

Cheers, Grzesiek

Tags
General Discussions
Asked by
Grzegorz Żydek
Top achievements
Rank 1
Answers by
Grzegorz Żydek
Top achievements
Rank 1
Share this question
or