View Full Version : Help Does anyone have an example using a RegExp in ArrayStore.filter

16 Mar 2011, 10:30 AM

I trying to filter an ArrayStore using this code. The AOI and Product properties are using the RegExp.

cart_dt2.filter ([{property:'Active' ,value:true},
{property:'ItemCount' ,value:-1},
{property:'AOI' ,value:'^(?!No AOIs In Cart'},
{property:'Product' ,value:'^(?!No Products In Cart'}]);

The sql where clause would look like this

where (Active = true) and (ItemCount = -1) and (AOI <> 'No AOIs In Cart') and
(Product <> 'No Products In Cart'

Thanks for any help