Copy link to clipboard
Copied
Hi,
I have set up a variable in capy 2017 called score_box and then added this text box to the stage $$score_box$$ and trying to return the raw score from my moodle LMS
SCORM_CallLMSGetValue("cmi.core.score.raw",window.cpAPIInterface.setVariableValue("score_box"));
Something is not working as nothing is sent back - any ideas. I can't seem to find a resource with this info to help me debug
Thanks
Mike
Copy link to clipboard
Copied
I would try this:
window.cpAPIInterface.setVariableValue("score_box", SCORM_CallLMSGetValue("cmi.core.score.raw"));
If that doesn't work, you may want to use Google Chrome's developer console to help debug. You could also use alert messages to show you the value of cmi.core.score.raw.
Best,
Jim Leichliter
Copy link to clipboard
Copied
The get value only accepts 1 argument. So try this:
window.score_box=SCORM_CallLMSGetValue("cmi.core.score.raw");