Forum LAMS for Tech-Heads - General Forum: Re: Getting organisationID after creating lesson


 
Search: 

2: Re: Getting organisationID after creating lesson
In response to 1 01/18/10 09:48 PM
[ Reply | Forward ]
Hi,

You can do lesson.getOrganisation().getOrganisationId() if lesson is a java org.lamsfoundation.lams.lesson.Lesson object.

Normally when a lesson is added by a Monitor via the Add Lesson wizard, the wizard (a flash movie) will pass in the organisation id to the LAMS InitializeLessonServlet. When a lesson is created in Author for previewing, no organisation id is saved (it doesn't make sense in this case to have an organisation).

Posted by Jun-Dir Liew

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum