I have a couple JSs that I use to pull user name and system date from the LMS (CSoD). I am looking for a way to pull other user data from the LMS, as well... such as location, email address, etc. Any suggestions?
Unfortunately, the SCORM data model doesn't carry many of these elements. Unless one of these elements is contained within elements that can be pulled from SCORM API, you'll need to find another way. Here are the types of things the spec is designed to support:
One way is to search the parent window that launches your course. What you'll find here depends on the LMS and you *might* be able to pull things into the display. If it's in the HTML on the page that launches the SCORM file, you can grab it through JS DOM.
And of course, if it isn't in the LMS, you can always add a faux registration screen at the beginning of a course and ask the user to input the required data.
3 Replies
Hi Bobbi,
There have been a number of similar posts, so I wanted to point you in the direction of those and hopefully the community is able to assist:
Getting LMS Values
Help with Javascript and pulling data from LMS
Retrieve LMS username as variable
Best of luck with your project!
Hi Bobbi -
Unfortunately, the SCORM data model doesn't carry many of these elements. Unless one of these elements is contained within elements that can be pulled from SCORM API, you'll need to find another way. Here are the types of things the spec is designed to support:
http://scorm.com/scorm-explained/technical-scorm/run-time/run-time-reference/
One way is to search the parent window that launches your course. What you'll find here depends on the LMS and you *might* be able to pull things into the display. If it's in the HTML on the page that launches the SCORM file, you can grab it through JS DOM.
And of course, if it isn't in the LMS, you can always add a faux registration screen at the beginning of a course and ask the user to input the required data.
This discussion is closed. You can start a new discussion or contact Articulate Support.