In this case I'm confining that filter by using checkboxes so I'm 
okay there, but for future use...  I'm not sure what you mean 
by "Expression Test"; can you explain a little more or show an 
example?

Thank You
Mark



--- In [email protected], "discoguy77" <[EMAIL PROTECTED]> 
wrote:
>
> Imagine "1,2,10,23". If you try and match "3", you will find it 
even 
> though it's just the "3" in "23". It might be better to do a more 
> advanced regular expressions test.
> 
> --- In [email protected], "Mark" <pusateri02@> wrote:
> >
> > I got it - 
> > 
> > if (item.serviceLine.indexOf(checkBox.data) != -1){
> >    isMatch = true;
> > }...
> >  
> > 
> > 
> > 
> > 
> > 
> > --- In [email protected], "Mark" <pusateri02@> wrote:
> > >
> > > I'm using a filterFuction filtering a few different fields.  
So 
> > far 
> > > so good, but I've been filtering on exact matches.  How can I 
> > expand 
> > > that to search for LIKE or INCLUDES matchs, or something like 
> > that.  
> > > Here's what I have -
> > > 
> > > 5 check boxes for the filter of one of the fields - lets say ( 
1, 
> > 2, 
> > > 3, 4, 5)
> > > My XML (arrayCollection) field had at one time, only 1 or 2 or 
3, 
> > > etc.
> > > 
> > > Now they want it to include more than just one, so that field 
can 
> > > look like more like -
> > > 1
> > > 1,2
> > > 2,4
> > > 2,3,4
> > > 1,2,3,4,5
> > > ...
> > > 
> > > So right now my filter is - 
> > > 
> > > if (item.serviceLine == checkBox.data){
> > >   isMatch = true;
> > > }...
> > > 
> > > This would never return anything other than the check box 
marked 
> > > with the exact single value.
> > > 
> > > How can I expand on this?  I't still early in the game so I 
can 
> > > adjust the XML as needed if that works best.
> > > 
> > > Help,
> > > Mark
> > >
> >
>


Reply via email to