Is it possible to execute an lmsget or similar to get values from the lms (e.g. sudent.name, student.id, and put the result into a variable in Storyline?
If the answer is yes, are there any code examples to demonstrate it?
The orginial question was about how to pull data like the user name from the LMS. It appears this example just shows how to ask the user to type in their name.
Is there a way to pull the user name from the LMS or other Database?
Steve - Phil's example does contain the code you need to pull the user's name from the LMS database- worked fine for me. You just need to look it in the .story file.
Remember to always be mindful of the platforms/outputs under which javascript will work reliably. E.g. if you're operating outside of a Flash output, javascript MAY not do all the things you'll ask of it. Having said that, under the right conditions! Phil's example will talk to the LMS as you want.
Does anyone here know how I can find what the variable name of a grade item in Moodle is so that I can use it with Phil's js? I'd like to pull a Pre-Test score from the beginning of a course into a Post-Test results slide to compare the two. The problem is that they are in different .story files, as there are many parts to the course.
Hi Phil, i am trying to get info like student name and students email id from moodle into storyline project using javascript. But its not working. This is the script i have used
var player = GetPlayer();
var myName = lmsAPI.GetStudentName();
var myID = lmsAPI.GetStudentID();
var array = myName.split(',');
var newName = array[1] + ' ' + array[0];
player.SetVar("FullName", newName);
player.SetVar("StuId", myID);
Is there something that i have to change in the script?
Hi Phil, Do you know if it's possible use a script to pull the first name and a picture from either a cloud data base or a CRM and overlay them at key points to create a unique video experience for my enduser.
Hi there Dawn! Since this thread is a bit older, Phil may no longer be subscribed. You may want to contact him directly by clicking on his name, and then click Contact Me from his profile page.
19 Replies
I'd like this too - I just don't know Javascript....
Yes this is possible see this demo, one of the slides has the JS to pull in the name, if you want another variable just swap it for the name
Brilliant. Thanks, Phil.
Opens up a whole bunch of options.
PeteB
Glad it was what you wanted.
Excellent work Phil; I've been looking for a solution to this for ages.
The orginial question was about how to pull data like the user name from the LMS. It appears this example just shows how to ask the user to type in their name.
Is there a way to pull the user name from the LMS or other Database?
ONe of the Demos has a javascript trigger to pull the users name from the LMS, I cannot remember which one but it is definitely in there
Steve - Phil's example does contain the code you need to pull the user's name from the LMS database- worked fine for me. You just need to look it in the .story file.
Remember to always be mindful of the platforms/outputs under which javascript will work reliably. E.g. if you're operating outside of a Flash output, javascript MAY not do all the things you'll ask of it. Having said that, under the right conditions! Phil's example will talk to the LMS as you want.
Thank you very much, it opens new possibilities for working with Storyline
Merci
I've tried using this js in my lms, but am having no success. Any ideas on why that might be?
Does anyone here know how I can find what the variable name of a grade item in Moodle is so that I can use it with Phil's js? I'd like to pull a Pre-Test score from the beginning of a course into a Post-Test results slide to compare the two. The problem is that they are in different .story files, as there are many parts to the course.
Hi Phil, i am trying to get info like student name and students email id from moodle into storyline project using javascript. But its not working. This is the script i have used
var player = GetPlayer();
var myName = lmsAPI.GetStudentName();
var myID = lmsAPI.GetStudentID();
var array = myName.split(',');
var newName = array[1] + ' ' + array[0];
player.SetVar("FullName", newName);
player.SetVar("StuId", myID);
Is there something that i have to change in the script?
THanks a lot!!!!
I have realised this I due to using TinCan rather than Scorm and I have found a workaround.
Hi, Alex -- Would you care to share the workaround you discovered, as it may help others who come across this thread?
Yes, Alex, please do share your work around. When you say 'using Tin Can', are you referring to your Storyline export method, or the LMS?
When I first posted this thread (looks like over three years ago!), Tin Can wasn't an option. We only had SCORM.
I look forward to seeing how you've pulled the info from Tin Can.
Hi Phil, Do you know if it's possible use a script to pull the first name and a picture from either a cloud data base or a CRM and overlay them at key points to create a unique video experience for my enduser.
Thanks so much for all your help!
Hi there Dawn! Since this thread is a bit older, Phil may no longer be subscribed. You may want to contact him directly by clicking on his name, and then click Contact Me from his profile page.
This discussion is closed. You can start a new discussion or contact Articulate Support.