combobox - Vaadin - Multiple filters for Tree table -
i'm doing project in vaadin 7. in need implement filters treet able.
i quiet successful in applying filters 1 value. mean, have 4 comboboxex 'c1', 'c2', 'c3', 'c4' , treetable 'tt'. load values 'tt' using hierarchicalcontainer 'hc'.
i implemented filters comboboxes using valuechangelistener & addcontainerfilter(). when select value 'c1' filters , displays rows accordingly in 'tt'. then, when select value 'c2'. ignores filter set 'c1' , filters value based on value set @ 'c2' , same in rest of filters.
all need is, when set value in both comboboxex 'c1' & 'c2' tree table 'tt' should display rows based on values in both 'c1' & 'c2'.
filterlogic = c1 , c2 (correct)
not
filterlogic = c1 or c2 (wrong)
i tried lot , studied lot of codes. but, can't done. appreciated.!
i did same job in project using vaadin 6, on each combobox "in valuechangelistener" need execute query in have pass string getting c1 , c2 etc, if c1 pass empty string in other parameters represent c2,c3 etc.....it work fine.
ps : use "like" in query instead of = desired output
Comments
Post a Comment