Skip to main content
Inspiring
December 13, 2017
Question

SCORM 2004 GetValue() syntax??

  • December 13, 2017
  • 1 reply
  • 737 views

I'm trying to retrieve cmi.entry from SCORM 2004v4 to determine which states some items should be in. I've tried

var myEntry = SCORM_CallLMSGetValue( "cmi.entry");

alert(myEntry); //test to see if anything was returned

then assigning the result to a user variable, but nothing seems to come through from the LMS. I can't even get the alert to pop up with the value of myEntry - as if JS doesn't recognize the statement and breaks.

What should the proper syntax be? Does it matter if this call is in an Execute Javascript window on a slide or in the SCORM_index.html file?

Your help would be greatly appreciated!

CP9, publishing to HTML, tested in SCORM cloud and EthosCE LMS

    This topic has been closed for replies.

    1 reply

    dan561Author
    Inspiring
    December 13, 2017

    Sorry for the time any of you might have spent working on this one - I solved it myself by looking in the scormdriver.js file and finding the correct function.

    Correct syntax for SCORM2004 is

    var myEntry = SCORM2004_CallGetValue( "cmi.entry" );

    Cheers!

    RodWard
    Community Expert
    Community Expert
    December 14, 2017

    I notice you are using SCORM 2004 version 4.  Hopefully you have already checked that your target LMS actually supports that version of SCORM.  Not all do. 

    dan561Author
    Inspiring
    December 14, 2017

    Hi Rod - yes I did check that out. We're in with the modern crowd, luckily.