Closed GoogleCodeExporter closed 9 years ago
Original comment by sanjiv.j...@gmail.com
on 17 May 2009 at 2:33
Constructors have been added to allow creation of AdvancedCriteria from code.
See sample usage here :
http://code.google.com/p/smartgwt/source/browse/trunk/samples/showcase/src/com/s
martgwt/sample/sh
owcase/client/grid/sortfilter/GridBigFilterSample.java
FilterBuilder filterBuilder = new FilterBuilder();
AdvancedCriteria criteria = new AdvancedCriteria(OperatorId.AND, new
AdvancedCriteria[] {
new AdvancedCriteria("field2", OperatorId.ISTARTS_WITH, "C"),
new AdvancedCriteria(OperatorId.OR, new AdvancedCriteria[] {
new AdvancedCriteria("field73", OperatorId.NOT_EQUAL_FIELD, "field191"),
new AdvancedCriteria("field130", OperatorId.ICONTAINS, "B")
})
});
filterBuilder.setCriteria(criteria);
There is room for improvement in the API and this will be done in a future
release.
Original comment by sanjiv.j...@gmail.com
on 26 Feb 2010 at 1:13
Original issue reported on code.google.com by
dev...@gmail.com
on 20 Jan 2009 at 7:22