Copy link to clipboard
Copied
I am trying to use javascript (in CP 8) to control the user's score that is passed to the LMS. I have tried the following code as an On Enter Action on the last slide of my course:
SCORM2004_CallSetValue("cmi.score.scaled","")
SCORM2004_CallSetValue("cmi.score.scaled","0")
SCORM2004_CallSetValue("cmi.core.lesson_status”,””)
SCORM2004_CallSetValue("cmi.core.lesson_status”,”0”)
I've been testing in Scorm Cloud but so far the code above has not had any affect on the score. Is there something missing from my code?
Copy link to clipboard
Copied
Hi,
Have you found a solution? I have the same question.
/Jacob
Copy link to clipboard
Copied
You are mixing SCORM 2004 and SCORM 1.2.
cmi.core.lesson_status is a 1.2 value, 2004 is "cmi.success_status" or "cmi.completion_status". They work in conjunction depending on how the manifest is configured, Not the same as 1.2 at all. Also "0" is not a valid value.
cmi.score_scaled valid values are -1 to 1.
It's difficult to make your own calls if you publish with SCORM as there is already success criteria encoded by Captivate.
All SCORM calls with ".core" are 1.2
Copy link to clipboard
Copied
What is the correct Syntax on Enter Action JS -> SCORM2004_CallSetValue("cmi.core.lesson_status","Complete") for SCORM 1.2 ?
Copy link to clipboard
Copied
SCORM_CallLMSSetValue("cmi.core.lesson_status", "completed");
The valid values are:
Copy link to clipboard
Copied
Thnaks for your return TLCMediaDesign
I have tried the following code :
SCORM_objAPI.LMSSetValue('cmi.core.lesson_status', 'passed');
SCORM_objAPI.LMSCommit('');
and it's working.
Copy link to clipboard
Copied
Could you give me a sample of javascript code to access the LMS variables like cmi.core.lesson_status scorm1.2 ?
Thank you.