Is there any possible way to get the value outside the interactives?

Dec 20, 2022

Hi forum,

I am looking for some help with this.

The Idea : We have our custom built app where students login, watch videos, take assessments and also attempt interactives. This custom built app is not SCORM or xAPI compliant. We use Articulate Storyline to develop these interactives. At the moment, the scores of these interactives are not being stored outside of the Interactive on a persistent Database. We intend to save these student scores for future analytics etc.

For this to be achieved, I have tried to store the correctscore in a JavaScript variable name and I am also able to store this variable in localstorage of the browser but I am able to achieve this local storage only when the interactive opens in a new tab or new window.

When I open the interactives using iframe in angular ( angular version 7) from within our application the correctscore value from the variable is not stored.


var player=GetPlayer();

var cs = player.GetVar("correctscore");
player.SetVar('cs',cs);
localStorage.setItem('score', cs);

I am seeking help, suggestions or guidance on the below.
Is there any way to take the value outside the interactives to be stored to a persistent database to be fetched from localstorage or by accessing the JS variable. Any other possible way to take the value outside the interactives?

I also searched about the inbuilt LMSObject but I am not sure what changes I need to do to my APIs ( at least to the certain APIs that will access these interactives ) to make this requirement possible?

Any pointer will be of great help !

Be the first to reply