SmartGwt 3.0p 2/16 nightly
Gwt 2.4
Firefox 6.0
I have the following code ...
Below is my ds.xml file...
The ListGrid code snippet shown above allows listens to my criteria sent and also allows me to filter through my data as needed throughout all of my fields.
However, if I were to change the code from a "Criteria" to a "Criterion"... as shown below.....
The ListGrid returns the correct set of Data, however I am not able to use any filter on any field to filter through my data.
Why is this?
Gwt 2.4
Firefox 6.0
I have the following code ...
Code:
ListGrid addressBook = new ListGrid(); addressBook.setDataSource(employeesDS); addressBook.setAutoFetchData(true); addressBook.setCriteria(new Criteria("Sex", "M")); addressBook.setShowFilterEditor(true); addressBook.setFilterOnKeypress(true);
Code:
<field name="EmployeeId" type="sequence" primaryKey="true" hidden="true" /> <field name="FirstName" title="First Name" type="text" length="64" required="true" /> <field name="LastName" title="Last Name" type="text" length="64" required="true" /> <field name="Sex" title="Sex" type="text" length="1" /> <field name="Position" title="Position" type="text" length="64" /> <field name="DateOfBirth" title="Date Of Birth (MM/DD/YYYY)" type="date" />
However, if I were to change the code from a "Criteria" to a "Criterion"... as shown below.....
Code:
ListGrid addressBook = new ListGrid(); addressBook.setDataSource(employeesDS); addressBook.setAutoFetchData(true); addressBook.setCriteria(new Criterion("Sex", OperatorId.EQUALS, "M")); addressBook.setShowFilterEditor(true); addressBook.setFilterOnKeypress(true);
Why is this?
Comment