I have a JavaScript that needs to know the "entry mode" for the course. In SCORM 2004 this is "cmi.entry" and in 1.2 it is "cmi.core.entry". The values are ab-initio, resume, and "". Can anyone provide a hint on where I can find the mode (so I can store it into a user variable and access it from there), or how I can get the value directly from the API? I have tried using "parent.GetEntryMode()" but it doesn't resolve.
2 Replies
In case someone else hits the same issue, I wound up using the call below to determine the entry mode for the SCORM package.
var modeOfEntry = parent.lmsAPI.GetEntryMode();
The following constants are defined in APIConstants.js:
ENTRY_REVIEW 1
ENTRY_FIRST_TIME 2
ENTRY_RESUME 3
Some additional information after further testing...
The "parent.lmsAPI.GetEntryMode()" call works inside of a WebObject HTML file.
Inside of a trigger, "parent.SCORM2004_GetEntryMode()" works (assuming you are using SCORM 2004, of course).
This discussion is closed. You can start a new discussion or contact Articulate Support.