Forum Discussion
Getting student name from the LMS and using it in Articulate
In the LMS we are about to use, we can get the student name since the SCORM runtime variable for it is "cmi.core.student_name". However, how do I get it as a variable in Articulate at run time?
40 Replies
- CandiceBoult-b4Community Member
The screenshots are in the file, I included everything in one place to try and make it easier.
- DavidSweeney1Community Member
Matthew,
I am hoping you might be able to help me on this as I have a very similar issue to Candice above. I had this working for me for a year or so - retrieving both first and last names. However we upgraded our LMS and I am not sure if it is linked but I started to see "undefined" inserted before the full name. Going on your suggestion above, that the LMS might be storing the name in an unusual way, I updated the line in the code from:
var newName = array[1] + ' ' + array[0];
to
var newName = array[0];
and this worked, i.e. it retrieved the full name and the "undefined" was not included.
My question is, have you seen this more frequently now or do I need to investigate why the LMS is storing the name in this way? We use Moodle.
Regards,
David
- JulianRose-c8fdCommunity Member
It might seem fairly obvious (retrospectively), but to note the methods here will not work when publishing a storyline to LMS / LRS with Report to an LMS = xAPI. Presumably the same is true with CMI5.
When you publish to xAPI the result is "undefined", similar to results others have reported using older LMS systems.
They do work fine when Report to an LMS = SCORM 1.2 or 2004 accordingly.
When publishing to xAPI we still get scormdriver.js in the output ../lib/.
There are snippets of code that look like they are to do with xAPI or CMI5. Is this still work in progress?
So now I must look for xAPI "equivalent" methods... maybe more javascript...post and get... - RobertWebbe-404Community Member
I have the same issue as Julian Rose, I like to retrieve the users first and last name but must publish my courses to xAPI. As Julian mentioned, that's not working. Is there someone who understands javascript and get it to work via scormdriver.js? When I review this file via Notepad, I see var strFirstName; and var strLastName; but don't know how get that working.
- Jürgen_Schoene_Community Member
for xAPI it is not possible with scormdriver.js (there is no connection from course to LMS)
have a look in this video
https://www.youtube.com/watch?v=OGYTxy-ru4E&t=422s
the user name (if there is one) is encoded in the start url of the course
the details dependes on the LMS you use - probably for security reasons there is no name transmitted at all, but only a anonymous ID
Related Content
- 8 months ago
- 8 months ago