StudentName from LMS
August 31, 2018 12:00 AM
Hello Everyone,
I have been changing the content of a textbox with the VAR(AICC_Student_Name), it works but the Firstname is duplicated. I have checked our LMS, but I have only one name in there.
Anyone experienced like this? Could anyone help me to solve this?
Discussion (7)
I've used Student_Name for some years now without seeing this problem.
What LMS? Version of Lectora? Published to what target? (AICC? SCORM?)
Publish with debugging turned on, and see what values AICC_Student_Name takes.
If that is not productive, use a network packet analyzer (e. g. Wireshark) and see exactly what information the LMS sends. I'm suspecting an LMS bug since this is not a known Lectora issue.
Isn't that a built-in variable / "Change content" action, published to Scorm / Javascript? It should be alright as otherwise the name would not appear at all. The doubled first name seems to be in the variable.
Does Saba have a profile field for the middle name? Maybe the first name is in both fields?
undefined
Hi, Tere,
You're using JavaScript to read the student name. I always used the built-in variables in Lectora, in Lectora Actions.
I believe that to access a Lectora Variable within a JavaScript extension, you would preface the variable name with "Var". Try using "VarAICCStudentName".
Note: I added the SCORM and JavaScript keywords to this thread.
Hi CarlFink!
Thank you. We are using SABA Cloud. The Lectora version I am using is v17 and I am publishing to SCORM.
I run the course from our LMS, and inspect the elements and I've got attached screenshot.
undefined


Hi Carl and Tim,
Yes, I have used the built-in variable from Lectora. The above screenshot was when I run the course from LMS and inspect the page element.
But in Lectora, I have an On page Show action that will change the content of the textbox with a text + variable.
undefined

Why not test your course on SCORM Cloud (http://cloud.scorm.com)? Free account, and if the problem does not happen there, you know it's somewhere in the SABA/Lectora communication. At that point (or maybe now) Trivantis support might be the place to get help.
I tested this with Lectora 17.0.6 in moodle and it worked as it should. How does the name look like in your page? The content of AICC_Student_Name should be:
Lastname, Firstname
undefined
Discussions have been disabled for this post