Write a new value in %Results.ScorePercent%
Apr 20, 2017
By
Daniel Koch
Hey,
I need to write a new value into the variable "Results.ScorePercent", because I need to communicate with a LMS via the variable "cmi.core.score.raw" in the SCORM-Package.
So I have a small JavaScript where I can successfully change the value of my own variable "MyVariable". But I can't change the value of Results.ScorePercent.
var player = GetPlayer();
player.SetVar("Results.ScorePercent" , 12);
player.SetVar("MyVariable" , "JavaScript works");
Maybe it is possible to create an own variable that will give its value to the LMS?
Thanks for the help!
3 Replies
The results variables are read only even using javascript.
You can find javascript on the forums to set your own variable as a score in the LMS, sorry I don't have the code on this machine to share.
Thanks for the advice, found a solution for this in another post: https://community.articulate.com/discussions/articulate-storyline/help-passing-completion-status#99181
Awesome Daniel - glad you found what you needed and thanks for linking to the thread that helped.
This discussion is closed. You can start a new discussion or contact Articulate Support.