GWT v2.5
SmartGWT 3.1d EE, (v8.3p_2012-12-28Enterprise Isomorphic-SmartClient-Package-Date: 2012-12-28)
Browser: IE9
Environment: Eclipse Indigo
Java 1.6
Please be patient with me on this. It reeks of fresh noob.
I'm pulling a string and two dates from a drop down and two date fields and putting them into a Criteria which I send with the grid fetch. In the custom datasource the criteria map is empty. Please set me straight.
Client Side
Data Source
This is a mockup datasource. No live data.
SmartGWT 3.1d EE, (v8.3p_2012-12-28Enterprise Isomorphic-SmartClient-Package-Date: 2012-12-28)
Browser: IE9
Environment: Eclipse Indigo
Java 1.6
Please be patient with me on this. It reeks of fresh noob.
I'm pulling a string and two dates from a drop down and two date fields and putting them into a Criteria which I send with the grid fetch. In the custom datasource the criteria map is empty. Please set me straight.
Client Side
Code:
Criteria criteria = new Criteria(); criteria.addCriteria("startDate", this.startDate.getValueAsDate()); criteria.addCriteria("endDate", this.endDate.getValueAsDate()); criteria.addCriteria("study", this.studyField.getValueAsString()); quickQuoteGrid.fetchData(criteria);
Code:
public DSResponse executeFetch(DSRequest req) throws Exception { List<Deal> records = fetchRecords(req.getCriteria()); return new DSResponse(records); } private List<Deal> fetchRecords(Map criteria) { return data; }
Comment