Getting learner name via Tin Can

Dec 07, 2012

I'm looking to use Javascript to get the learners' name from the LMS. I'm using Tin Can and not SCORM.

I have checked out the below script which works with SCORM but not Tin Can.

var player = GetPlayer();
var myName = lmsAPI.GetStudentName();
var array  = myName.split(',');
var newName = array[1] + '  ' + array[0];
player.SetVar("newName", newName);

Any ideas how I can do this with Tin Can?

7 Replies
Christie Pollick

Hi, Randall -- Thanks for reaching out here! You may already be aware, but I wanted to note for others who may come across this thread that JavaScript is not something for which we are able to provide support, so we'll need to defer to the JS gurus in the community to assist you further. And in case you don't have it handy, here is our JS Best Practices sheet. 

Randall Sauchuck

Hi Mark,

That article concerns sending data to TinCan not receiving it. According to everything I have seen so far it seems like it is NOT possible to GET data from the LMS because of TinCan's fundamental structure.

I am curious how bookmarking works with Storyline/TinCan implementations. Does SL just use local cookies to maintain the course state? How does it trigger completion and passing status? I have a test course in SCORM cloud that never signals "passed" even when the requirements are met.

Does anyone there at Articulate have insights?

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