Hello,
I think there is a regression in one of the last SmartGWT Power builds. It is happening in 06-30-2011 build.
This is what happens:
I have a listgrid, that I want to run using a certain Criteria:
My particular call to the server looks as follows.
If I outcomment the setDataFetchMode line, it works. But I do need all records though, since it is for a mail-merge feature, and I need to send _all_ records an email. With the setDataFetchMode in place, the grid just stays empty, eventhough 48 rows were found in the MySQL Table, AND the criteria is not propagated.
Could you guys look into this, or tell me what I am missing? This used to work in an earlier nightly, and happens since a week or two.
I think there is a regression in one of the last SmartGWT Power builds. It is happening in 06-30-2011 build.
This is what happens:
I have a listgrid, that I want to run using a certain Criteria:
Code:
ListGrid grid = new ListGrid(); grid.setDataSource(recipDs); grid.setAlternateRecordStyles(true); grid.setCellHeight(22); grid.setDataSource(recipDs); grid.setAutoFetchData(false); grid.setDataFetchMode(FetchMode.LOCAL); grid.setHeight(250); grid.setFields(gridFields); Criteria recipCrit = new Criteria(); recipCrit.setAttribute("CourseEdition_id", 1); grid.fetchData(recipCrit);
Code:
=== 2011-07-04 12:31:27,746 [l0-7] DEBUG RPCManager - Request #1 (DSRequest) payload: { criteria:{ }, operationConfig:{ dataSource:"CourseEdition_students_Student", operationType:"fetch", textMatchStyle:"exact" }, componentId:"isc_ListGrid_5", appID:"builtinApplication", operation:"CourseEdition_students_Student_fetch", oldValues:null } === 2011-07-04 12:31:27,747 [l0-7] DEBUG AppBase - [builtinApplication.CourseEdition_students_Student_fetch] No userTypes defined, allowing anyone access to all operations for this application === 2011-07-04 12:31:27,747 [l0-7] DEBUG AppBase - [builtinApplication.CourseEdition_students_Student_fetch] No public zero-argument method named '_CourseEdition_students_Student_fetch' found, performing generic datasource operation === 2011-07-04 12:31:27,748 [l0-7] INFO SQLDataSource - [builtinApplication.CourseEdition_students_Student_fetch] Performing fetch operation with criteria: {SaasCustomer_id:1} values: {SaasCustomer_id:1} === 2011-07-04 12:31:27,749 [l0-7] INFO SQLDataSource - [builtinApplication.CourseEdition_students_Student_fetch] derived query: SELECT $defaultSelectClause , (users.username IS NOT NULL) as userAccount FROM CourseEdition_students_Student INNER JOIN Student ON CourseEdition_students_Student.Student_id = Student.Student_id INNER JOIN CourseEdition ON CourseEdition_students_Student.CourseEdition_id = CourseEdition.CourseEdition_id LEFT OUTER JOIN users ON Student.Student_id = users.Student_id WHERE $defaultWhereClause === 2011-07-04 12:31:27,757 [l0-7] DEBUG PoolableSQLConnectionFactory - [builtinApplication.CourseEdition_students_Student_fetch] Returning pooled Connection === 2011-07-04 12:31:27,757 [l0-7] INFO SQLDriver - [builtinApplication.CourseEdition_students_Student_fetch] Executing SQL query on 'Mysql': SELECT CourseEdition.startDate, Student.phone, Student.sofinummer, Student.street, Student.surname, CourseEdition.endDate, Student.city, Student.archived, Student.voorletter, Student.cellphone, Student.birthdate, Student.gender, CourseEdition.published, Student.number_addition, CourseEdition.percentageOfSubscriptions, CourseEdition.editionName, CourseEdition_students_Student.students_id, Student.tussenvoegsel, Student.number, Student.firstname, Student.postcode, CourseEdition.lmsAccess, Student.country, CourseEdition.MoodleCourse_id, CourseEdition.Status, Student.email, Student.birthplace, Student.Moodle_id, Student.active , (users.username IS NOT NULL) as userAccount FROM CourseEdition_students_Student INNER JOIN Student ON CourseEdition_students_Student.Student_id = Student.Student_id INNER JOIN CourseEdition ON CourseEdition_students_Student.CourseEdition_id = CourseEdition.CourseEdition_id LEFT OUTER JOIN users ON Student.Student_id = users.Student_id WHERE ('1'='1') === 2011-07-04 12:31:27,775 [l0-7] INFO DSResponse - [builtinApplication.CourseEdition_students_Student_fetch] DSResponse: List with 48 items
Could you guys look into this, or tell me what I am missing? This used to work in an earlier nightly, and happens since a week or two.
Comment