Simulating a spread sheet in story Line 360 using Java Script

Mar 21, 2023

Hello Heroes,

I´m trying to do a course with a simulated spread sheet in it, but I can't get it to work. Do you guys have any idea? Heres´s my code:

//get the Player
var player = GetPLayer();

//get all the text entries 
var canonPactado = player.GetVariable("canonPactado");
var doceCanones = player.GetVariable("doceCanones");
var kilometrosAno = player.GetVariable("kilometrosAno");
var excesoKilometraje = player.GetVariable("excesoKilometraje");

//do calculations
var total = canonPactado+doceCanones+kilometrosAno+excesoKilometraje;

// display the text
var totalText = player.GetSlideObject("valorKilometro");
totalText.Text = total;

1 Reply
Math Notermans

Use Tabulator. https://tabulator.info/ Works perfect. Here you can see a sample i made with it.
https://community.articulate.com/discussions/building-better-courses/feature-requests-overview-and-voting-system

Your code as is has some errors in it.
GetPLayer(); is GetPlayer();
GetVariable() is GetVar()
and more... i don't know where you get this code from, but like this it never is gonna work in Storyline.