You may request notification for Getting organisationID after creating lesson. |
1:
Getting organisationID after creating lesson
By: Praveen Pawar
|
01/07/10 07:12 PM | |||
Hello all,
I am working on an integration whereby LAMS invokes methods in a WCF service that I've written. One of the places I call this web service is when a new lesson is added by an Author or Monitor and have been able to get this invocation working using the Metro web services framework for J2EE. I have added code to the initializeLesson() method in '/lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/service/MonitoringService.java'. The methods called is as follows --> initializeLesson() --> createNewLesson() --> createNewLessonWithoutClass() --> saveLesson(). The OrganisationID is not passed in, yet the correct value IS saved in the database (lams_lesson table) once the lesson has been added. After createNewLesson() is called, I am able to extract a number of properties from 'Lesson' object that I need for my web services call, such as LessonId, LearningDesignId, etc. However, I am not able to get the OrganisationId, despite trying several ways, such as: - lesson.getLessonData.getOrganisationID() If the OrganisationID doesn't appear to be passed in, how is it still saved in the database. Is there some other logic that is deriving the OrganisationID, just before it is commited to the database or indeed, done as an update? Is there some other place I need to make this call or another approach to take to retrieve the OrganisationID from the Lesson object. Please let me know if you need any clarifications. Thanks and regards, Posted by Praveen Pawar |
|
||||||||||
|
Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum