Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Getting Raw score from moodle LMS Captivate 2017

New Here ,
Oct 11, 2017 Oct 11, 2017

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

229
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Oct 11, 2017 Oct 11, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Oct 11, 2017 Oct 11, 2017
LATEST

The get value only accepts 1 argument. So try this:

window.score_box=SCORM_CallLMSGetValue("cmi.core.score.raw");

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources