Skip to main content
Participating Frequently
October 11, 2017
Question

Getting Raw score from moodle LMS Captivate 2017

  • October 11, 2017
  • 2 replies
  • 271 views

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

    This topic has been closed for replies.

    2 replies

    TLCMediaDesign
    Inspiring
    October 11, 2017

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

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

    Legend
    October 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