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.
http://community.articulate.com/forums/p/15117/87588.aspx#87588
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
Same problem here.
Seems than GetStudentName() method doesn't exists under tincan.
Bumping this thread. Was this ever answered? I have a course that needs to have this implemented.
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.
There's something in here about that, near the end...
https://community.articulate.com/discussions/articulate-storyline/how-to-send-tin-can-statements-with-javascript#reply-318334
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?
Hi, Randall -- Thanks so much for your response, and my apologies, but unfortunately this request falls outside of our scope of support. You may want to take a look at this information that explains how we handle bookmarking, and this article covers how we send status. Hope that is helpful! :)
Hello again, Randall! I also wanted to let you know as you mentioned never passing content, you are welcome to reach out to our Support Engineers for additional assistance using this form.
This discussion is closed. You can start a new discussion or contact Articulate Support.