Data Source Widget Filtering - part II

Following up on Data Source Widget Filtering

In a slightly different context, I’m trying to select for items that don’t match - is ‘not equal’ not supported here? I have tried both

<arg id="search">account_name!=SUNY Brockport</arg>

and <arg id="search">account_name&lt;&gt;SUNY Brockport</arg>

but neither will limit the results. I should point out that

<arg id="search">account_name=SUNY Brockport</arg>

works fine to select for that specific name in another widget.

I should add that I also tried

<arg id="exclude_search">account_name=SUNY Brockport</arg>

to no avail…

I should have fooled around with this a bit more before posting, but I kept thinking of things to try after the post - sorry.

Turns out that exclude_search does work, but only when that is the only search argument. If there is an also then the exclude doesn’t work.

I need to be able to select everything whose approval date is greater than a specific date, but then exclude the one with a certain name.

Hi G,

Sorry to hear this is giving you trouble – each of the data types supported by this custom module could be a little different, but I think if you were to peek in the /includes/{type}.php code for the particular data type you’re loading, you can see how it goes through search and/or exclude_search, that’s really where all the filtering logic gets applied. Glancing at an older version of that code that I’m not sure if it matches what you’re using, I wonder if there’s some way of using the _mode setting to get the overlap you’re after? Something like exclude_search_mode=all ?

thanks - I tried fooling with the searchmodes already, but I’ll try again since there are two of them and i might not have hit the right combination

well, I couldn’t get it to work when there is also a search argument, but I figured out a way to hide what I needed to with css, so I’m peaceful about it for now…

-= G =-