0 Replies Latest reply on Aug 6, 2010 2:04 PM by celee

    Output for Lesson Builder template

    celee Level 1

      The template rquires that AICCTracking_for_Director.html be installed for data to be exported but I can't find that anywhere,  and uses the following functions on exit

       

      on

       

       

      doButtonAction me

       

      if

       

       

      gKnowledgeTrack = -1 or gKnowledgeTrack = 1 then

       

       

      -- Send exiting tracking messages to JavaScript on HTML page

      lessonStatus = getLessonStatus()

      elapsedTime

       

       

      = (the milliseconds - gStartMilliseconds)/1000

      percentCorrect = getPercentCorrect()

      externalEvent

       

       

      ("MM_CMIFunction('MM_cmiSetLessonStatus;" & lessonStatus & "')")

      externalEvent

       

       

      ("MM_CMIFunction('CMISetTime;" & elapsedTime & "')")

      externalEvent

       

       

      ("MM_CMIFunction('CMISetScore;" & percentCorrect & "')")

      externalEvent

       

       

      ("MM_CMIFunction('CMIFinish')")

      externalEvent

       

       

      ("MM_CMIFunction('CMIExitAU')")

      end if

       

      end

       

       

      doButtonAction

       

      I would like to output the data to a single string that I can use to record results.  I would like to have the lesson name, the possible points, the earned points, and the percent points earned all in a  concatenated string.  I'm a lingo amatuer and I tried:

       

      on sendVariables

       

       

       

       

       

       

       

      pSendVariables = glessonTitle &

      totalPoints & pointsEarned & percentPointsEarned

      setPref("results", pSendVariables)

       

       

      end

       

       

      end

       

       

       

      and got an error that a variable was being used before a value was assigned. I'm in way over my head here.  Any suggestions?