lmsAPI supported functions/parameters
Jun 25, 2013
By
Zio Fonta
Anyone can provide a list of supported functions/ parameters to be used with lmsAPI?
we are doing infinite tests trying to pass variables to Moodle without results, and i think that lmsAPI does not support read/writing of all scorm 2004 functions/parameters.
Is there any documentation of usage of lmsAPI and supported parameters in Storyline?
I.e. we find out that cmi.suspend_data is passed out as an unreadable variable.
Please, i already asked this replying to a thread with not answer.
thank you.
14 Replies
Mose of the Scorm 2004 functions will work when you use it inside the storyline. can you please share your codes so we can look into it
Yhanx Sinchu,
i am searching a way to pass a variable to scorm when each slide has been viewed.
So i thouhgt that i could use cmi.interactions to set one id for each slide and change the value from "incomplete" to "completed" at the end of each timeline. But any other strategy would be good (i.e. using any variable that can be read by the scorm)
so, at the beginning, on the first slide, i launch this javascript:
var lmsAPI = parent;
lmsAPI.SetValue("cmi.interactions.1.id","slide1");
lmsAPI.SetValue("cmi.interactions.2.id","slide2");
...
lmsAPI.SetValue("cmi.interactions.1.description","incomplete");
lmsAPI.SetValue("cmi.interactions.2.description","incomplete");
...
then at the end of timeline of slide 1 i executed:
var lmsAPI = parent;
lmsAPI.SetValue("cmi.interactions.1.description","completed");
and so on. But nothing happens.
the scorm is on Moodle platform, someone suggested me to use
var lmsAPI = parent;
before using lmsAPI function, but i'm stillo not sure about this.
when i try to read variables passed, nothing happens.
where am i wrong?
thank you
Hi Zio,
Have you managed to get this to work?
I am also looking for a way to pass data as an interaction to the LMS.
Thanks, Ayoub
Hi Ayoub,
You may want to send a private message to Zio as I'm not certain he's still subscribed. In the meantime, have you already looked at the quiz data Storyline sends to an LMS? Also, if you're looking to just report Storyline variables to your LMS you could use a method such as this one.
Ashley, that method is not flexible cause it force you to use hidden slide and is so "tricky".
i found out how to do communicate variables to LMS executing javascript triggering any event, the solution is using the Storyline LMS functions that are already defined in the "LMS" published folder.
Ayoub, if i can help you i will show you how to set the script, let me know.
Thanks
Hi Zio,
I'm very interested in examples of the code, if you have it!
I've managed to get things to work, using survey/quiz data. But it's not a very elegant solution.
Having not looked at the way I got it to work for over a month, I'm already puzzled by how I did it ... :|
Thanks,
Ayoub
Hi Zio,
I too am interested in this solution. Like Ayoub I solved the problem using internal components of Storyline. But this solution is not very elegant and would require a lot of work to repeat it. I'd be interested to learn how you solved this problem using the javascript function in LmsApi.
Thanks
Bruno
Hi! Zio - would you publish how you implemented your scripts?
Best regards
Bjarne
I saved my own data to the "suspend data" field by modifying a function in SCORMFunctions.js.
Storyline courses use that field, but I added on my own info separated from Storyline's using a delimiter. So when the course resumes, I get the suspend data and split it on the delimiter.
If more detail is required, I'd be happy to share.
Hi Norm!
I'm looking for a method to tell moodle that a given slide has been visited... and retrieve the information on a subsequent run. Would you still be happy to share?
I'm using Storyline 2 on Moodle.
The only data I can get from Moodle right now is the student's name.
Hi Lucio!
I'm not sure if Norm is still subscribed here. If you do not hear back soon, you are welcome to reach out directly to the user via the 'Contact Me' option on the user profile.
Ok thank you Leslie!!
Hi Lucio...I will try my best. Hope you're well...it's been a while!
If you don't have too many slides, one approach could be:
Create a String variable for each slide e.g. "slide_1". When the user arrives there, set the value to "visited". String variables get saved to the LMS, and get sent back when the course launches. So you could check the value for "slide_1". If it equals "visited", then do something. "Contact Me" if you'd like to chat more.
Hi Norm,
I’m well thank you. I hope you and your family are also doing well.
You’ve got to be kidding!!! Is it as simple as that?
I’ll try it right away!
Thank you for replying so promptly!!
This discussion is closed. You can start a new discussion or contact Articulate Support.