Package com.smartgwt.client.data

Examples of com.smartgwt.client.data.AdvancedCriteria


        endpoint.setPickListProperties(pickListProperties);
        endpoint.setPickListFilterCriteriaFunction(new FormItemCriteriaFunction(){
      @Override
      public AdvancedCriteria getCriteria(FormItemFunctionContext itemContext) {
        String value = getEndpoint();
        AdvancedCriteria criteria = new AdvancedCriteria(OperatorId.OR, new Criterion[]{
            new Criterion(Endpoints.KEY_TITLE, OperatorId.ICONTAINS, value),
            new Criterion(Endpoints.KEY_ENDPOINT, OperatorId.ICONTAINS, value)
        });
        return criteria;
      }});
View Full Code Here


        FilterBuilder filterBuilder = new FilterBuilder();
        filterBuilder.setFieldDataSource(bigFilterDS);


        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);
View Full Code Here

        countryGrid.setAutoFetchData(true);
        countryGrid.setShowFilterEditor(true);
        countryGrid.setAllowFilterExpressions(true);

        AdvancedCriteria initialCriteria = new AdvancedCriteria(OperatorId.AND, new Criterion[]{
                new Criterion("countryName", OperatorId.INOT_CONTAINS, "i"),
                new Criterion("capital", OperatorId.BETWEEN_INCLUSIVE, "A", "F"),

                new AdvancedCriteria(OperatorId.OR, new Criterion[]{
                        new Criterion("population", OperatorId.LESS_THAN, 1000000),
                        new Criterion("population", OperatorId.GREATER_THAN, 100000000)
                })
        });
View Full Code Here

TOP

Related Classes of com.smartgwt.client.data.AdvancedCriteria

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.