How to use cmi.core.lesson_status to completed in Captivate 8
Hi,
My requirement is:
- First Slide - On Enter - score of 5 points should be passed to LMS.
- 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
