'How do I send cmi commands to the LMS via the Articulate JavaScript editor?

After reading dozens of threads on the Articulate forums, can anyone advise how to get Articulate player to send commands to the LMS via the "Execute JavaScript" dialog in the course editor?

We've tried all of the following to override Articulate's default behaviour when closing courses, but the LMS never receives them:

SCORM_CallLMSSetValue("cmi.exit", "normal");

lmsAPI.SCORM_CallLMSSetValue("cmi.exit", "normal");

SCORM2004_CallSetValue("cmi.exit", "normal")

lmsAPI.SCORM2004_CallSetValue("cmi.exit", "normal")


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source