Forum Discussion
EvitaPurzale-e0
3 years agoCommunity Member
Getting username from Cornerstone
Hi all!
Trying to grab the username and put it into three different variables.
Name (Full name)
First Name
Last name
I have below code, which only gives me the name and the last name. The ...
JoeFrancis
3 years agoCommunity Member
Yeah, every vendor's LMS has to be different with the delimiters and object positions. ๐
Absorb LMS returns the GetStudentName query the same way Cornerstone/Saba does, with the learner's first name in position 0 in the array and the last name in position 1 in the array, even though SCORM's cmi.core.student_name (which derives from AICC's cmi.core.student_name) specifies the format as:
Last name, first name and middle initial. Last name and first name are separated by a comma [emphasis mine]. Spaces in the name must be honored.
PhilMayor
3 years agoSuper Hero
Not sure if it was Absorb. One LMS kept giving me the middle name
And 50% of the time it came through as undefined had to write a simple statement to ensure it didnโt display in the course.
Sent from my iPhone
- JoeFrancis3 years agoCommunity Member
Middle name? Well THAT'S useful ๐