[Using the Power nightly of 06-30-2011]
Hello,
I have a DMI that does an extra DSRequest that does some extra fetch. The problem is that while the query works and returns 6 rows, myDSResponse.getDataList() returns null.
The DMI looks like this:
The query worked:
This is the ds.xml operationBinding In question:
Am I doing something wrong, or is this a bug? When step-debugging, the object actually DOES contain a JSON string of the returned rows... Bug in API?
Hello,
I have a DMI that does an extra DSRequest that does some extra fetch. The problem is that while the query works and returns 6 rows, myDSResponse.getDataList() returns null.
The DMI looks like this:
Code:
public DSResponse remove(DSRequest req) throws Exception { //fetch all lecture_presence_rows of this DSRequest presence = new DSRequest("Lecture_presence_Student", "fetch"); presence.setOperationId("AlsoJoinOnCourseEdition"); presence.setRPCManager(req.getRPCManager()); presence.setCriteria("students_id", req.getFieldValue("students_id")); DSResponse resp = presence.execute(); List data = resp.getDataList(); // ****** data is null here, while query worked! and actually returned 6 rows. }
Code:
=== 2011-07-05 10:25:50,435 [l0-5] INFO SQLDriver - [builtinApplication.AlsoJoinOnCourseEdition] Executing SQL query on 'Mysql': SELECT Student.phone, Lecture_presence_Student.reason, Student.sofinummer, Student.street, Student.surname, Student.city, Student.voorletter, Student.archived, Student.cellphone, Student.birthdate, Student.gender, Lecture_presence_Student.presence_id, Student.number_addition, CourseEdition_students_Student.students_id, Lecture_presence_Student.status, Student.tussenvoegsel, Student.number, Student.firstname, Student.postcode, Student.country, Student.birthplace, Student.email, Student.Moodle_id, Student.active, CourseEdition.CourseEdition_id FROM Lecture_presence_Student INNER JOIN Student ON Lecture_presence_Student.Student_id = Student.Student_id INNER JOIN Lecture ON Lecture_presence_Student.Lecture_id = Lecture.Lecture_id INNER JOIN CourseEdition_students_Student ON CourseEdition_students_Student.Student_id=Student.Student_id INNER JOIN CourseEdition ON Lecture.CourseEdition_id=CourseEdition.CourseEdition_id WHERE (CourseEdition_students_Student.students_id='95') === 2011-07-05 10:25:50,471 [l0-5] INFO DSResponse - [builtinApplication.AlsoJoinOnCourseEdition] DSResponse: List with 6 items
Code:
<operationBinding requiresRole="ROLE_USER" requiresAuthentication="true" operationType="fetch" operationId="AlsoJoinOnCourseEdition" > <tableClause>Lecture_presence_Student INNER JOIN Student ON Lecture_presence_Student.Student_id = Student.Student_id INNER JOIN Lecture ON Lecture_presence_Student.Lecture_id = Lecture.Lecture_id INNER JOIN CourseEdition_students_Student ON CourseEdition_students_Student.Student_id=Student.Student_id INNER JOIN CourseEdition ON Lecture.CourseEdition_id=CourseEdition.CourseEdition_id </tableClause> </operationBinding>
Comment