StudentName from LMS

teusta07
teusta07 Community Member Posts: 4 ♪ Opening Act ♪
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?

Comments

  • carlfink
    carlfink Community Member Posts: 968 ✭ Legend ✭
    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.
  • teusta07
    teusta07 Community Member Posts: 4 ♪ Opening Act ♪
    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.

     
  • carlfink
    carlfink Community Member Posts: 968 ✭ Legend ✭
    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.
  • timk
    timk Community Member Posts: 1,205 ♦ Idol ♦
    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?

     
  • teusta07
    teusta07 Community Member Posts: 4 ♪ Opening Act ♪
    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.

     

     
  • carlfink
    carlfink Community Member Posts: 968 ✭ Legend ✭
    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.
  • timk
    timk Community Member Posts: 1,205 ♦ Idol ♦
    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