Skip to main content
Participant
August 5, 2014
Question

How to use cmi.core.lesson_status to completed in Captivate 8

  • August 5, 2014
  • 1 reply
  • 1543 views

Hi,

My requirement is:

  1. First Slide - On Enter - score of 5 points should be passed to LMS.
  2. Last Slide - On Enter - score of 10 points & completed status should be passed to LMS

I have used like this:

First Slide:

window.cpAPIInterface.setVariableValue("cpQuizInfoTotalProjectPoints", 5);

Last Slide:

window.cpAPIInterface.setVariableValue("cpQuizInfoTotalProjectPoints", 10);

var score = CaptivateObj.getVariableValue('cpQuizInfoTotalProjectPoints');

var intLMSScoreRaw = score;
g_objAPI.LMSSetValue('cmi.core.score.max', 3);
g_objAPI.LMSSetValue('cmi.core.score.raw', intLMSScoreRaw);

if (score >= 10) {

g_objAPI.LMSSetValue('cmi.core.lesson_status', 'passed');
}
else {
g_objAPI.LMSSetValue('cmi.core.lesson_status', 'failed');
}

g_objAPI.LMSCommit('');
g_objAPI.LMSFinish('');
CaptivateObj.cpEISetValue('rdcmndExit',1);


The text highlighted in red doesn't work and not able to communicate with LMS using javascript in Captivate 8.

What are the new methods implemented in Captivate 8 to communicate with LMS?

Thanks

Satish

    This topic has been closed for replies.

    1 reply

    Inspiring
    August 5, 2014

    Hi, Satish. This probably isn't an exact answer to your question: I've not had to edit these lines in working with the last two LMS environments. If your LMS has a log, you might be able to see the message the LMS receives from the Cap project.

    It looks like you're trying to ensure people view every slide, or at least a portion of them. Perhaps that would be a better way to go because it relies on readily available configuration. Our new LMS threw me for a loop as far as completions. I ended up creating a 10-slide project and publishing it normally, then testing the permutations in the LMS until I could get it to recognize the completion message from Cap. You may be in a similar situation, and there might be a different setting to try in your LMS.


    Good luck - LMS-issues are painful.


    Mary