Storyline Variables and SCORM

Oct 22, 2012

Is there an interface API in Storyline which might allow populating a Storyline variable with a value stored in JavaScript?  My particular example would be retrieving any of the: [Student name, Lesson Status] from the SCORM LMS and making it available to the course automatically.

I am OK writing the SCORM JavaScript to retrieve the values into a known global variable.  What I lack is a mechanism in Storyline to retrieve those values and insert in a Storyline variable.

54 Replies
rathna  kumaran

Hi Katherine,

 

Did you have any update on your post. I am too facing the same issue now.  

When retrieving the learner's name from the LMS in Storyline from ABSORB LMS with SCORM 1.2, I get the following: undefined firstname lastname

Any clue why/how "undefined" is showing up in the results?  

Russell Killips

I'm thinking that when you call GetStudentName(), ABSORB LMS is returning Firstname Lastname.

A lot of LMS's will return Lastname, Firstname.

The script that was provided above, was trying to switch Lastname, Firstname into FirstName Lastname.

Try using the code below instead that doesn't do any switching.

var player = GetPlayer();

var myName = lmsAPI.GetStudentName();

player.SetVar("newName", myName);