Forum Discussion
ScottDellinger
8 years agoCommunity Member
How to access xAPI/Tin Can LMS variables in JavaScript
When Storyline 360 publishes a SCORM 1.2 or 2004 package, an entire library of SCORM JavaScript functions are created and can be used inside Storyline (for instance: SCORM_CallLMSGetValue("cmi.core....
Nandhakumar_S
7 years agoCommunity Member
HI Steven Pascoe,
Can you share your working story file?
rosycolelli
7 years agoCommunity Member
Hello, I need to pass my score to LMS. I have to publish the course as Tincan. I tried the below Java but doesn't work.... LMS shows Score unknown
var player = GetPlayer(); var passingScore = "75"; function findLMSAPI(win) { if (win.hasOwnProperty("GetStudentID")) return win; else if (win.parent == win) return null; else return findLMSAPI(win.parent); } var lmsAPI = findLMSAPI(this); lmsAPI.SetScore(player.GetVar("Score"), 75, 0); if (player.GetVar("Score")>= passingScore) { SetStatus("passed"); } else { SetStatus("failed"); }
Could you help me, please?
- SocratesAnas2614 years agoCommunity Member
Why do I get the feeling that without coding skills nobody can really utilize xAPI statements?