Functions for SCORM 2004 3rd edition

Dec 12, 2014

Hi!,

We've developed a course in Storyline which has a personalized javascript to calculate the partial progress of the user.

In this javascript we use the following functions:

- lmsAPI.GetComments()

- lmsAPI.WriteComment

- lmsAPI.SetScore

- lmsAPI.GetScore

- GetPlayer

- SetStatus

The problem is that if we publish with SCORM 1.2, the javascript works, but if we publish with SCORM 2004 3rd edition, it doesn't work.

The question is, these functions are not valid in SCORM 2004 3rd edition?, have they changed?

We must publish with SCORM 2004 3rd edition, because with SCORM 1.2 the option Resume, doesn't work properly.

Thanks!

4 Replies
Bastiaan Timmer

It depends on which version of Storyline you are using. If you use the latest version, Storyline 360, then you might try the following Javascript code:

SCORM 1.2:

//get LMS API
var lmsAPI = parent;
//set score; the first number is the score
lmsAPI.SetScore(90, 100, 0);
//set status; possible values: "completed","incomplete", "failed", "passed"
//set status; possible values: "completed","passed", "icomplete", "failed"
SCORM_CallLMSSetValue("cmi.core.lesson_status", "complete");

SCORM 2004:

//get LMS API
var lmsAPI = parent;
//set score; the first number is the score
lmsAPI.SetScore(90, 100, 0);
//set status; possible values: "completed","incomplete", "failed", "passed"
SCORM2004_CallSetValue("cmi.completion_status", "completed");
SCORM2004_CallSetValue("cmi.success_status", "passed");

I've tested both script on SCORM Cloud and they are working as expected.

This discussion is closed. You can start a new discussion or contact Articulate Support.