Skip to main content
April 29, 2010
Question

Pull Users Score from LMS

  • April 29, 2010
  • 1 reply
  • 492 views

Hi,

I am using Cp4 and wondering if there could be a way to pull the user's score from LMS(SABA). When a module is relaunched, assuming he had taken the quiz previously and a score has been sent to the LMS, just before the assessment slides I want to display sort of like asessment history especifically view his score on his previous attempt.

Thanks.

BR//

-Miguel

This topic has been closed for replies.

1 reply

Michael V Baker
Inspiring
April 29, 2010

I believe this is possible but the solution is fairly advanced and would take a while to set it up. The LMS communication (in all the cases I've seen so far) is done with JavaScript. Captivate can call JS functions with an action such as On slide enter. In the scorm_support.js file that comes with Captivate the api for the scorm communication is retrieved and stored in g_objAPI. By the time the file starts up it should have been able to obtain the API and initialized it. The SCORM standard found at www.adlnet.gov defines data that must be maintained and functions to use in getting and setting data. In your case I believe you're interested in g_objAPI.GetValue("cmi.score"); // get data for SCORM 2004 SCO

I'm not sure where the SCORM initialization is done by Captivate files. In all the cases I've seen it's usually right at startup. You probably don't want to be changing the scorm_support.js files that come with Captivate because patches may update them and overwrite your changes. You can create your own JS and include it by customizing the HTML. The last step will be to get the data into the Captivate movie and you do that using SetVariable. The Captivate movie is embedded in the html with a name i.e. Captivate. In the JS file you use document.Captivate.SetVariable(varName, varValue); and use your own custom variable in the Captivate movie to display the score.

<disclaimer>

I haven't actually done this before with Captivate. I've done the SetVariable to place custom contents from a database but it wasn't an LMS. I've also worked on a couple of LMS projects and other projects where we had to write our own LMS support. Stitching these together should be possible and this is the way I would attempt it.

</disclamer>

HTH,

Mike