4 Replies Latest reply: Aug 19, 2014 5:42 PM by ziofonta222 RSS

    Captivate functions to communicate with LMS api

    ziofonta222 Community Member

      Hi everybody, I am looking for a document reference that summarize all the native functions used in Captivate to communicate with LMS api, for example setting the cmi.core.score.raw (alias cmi.score.raw for scorm 2004), the status, and in particular I am in need to find out the function to set cmi.objectives parameters (id, raw score, max score, min score....)

      Is there any Adobe reference for this javascripting to communicate between Captivate and LMS?

      Just to be more clear on the purpose, i need to call a javascript like this one I was calling previously from Articulate Storyline, to record partial objectives with id, raw score, min score, max score,  when the user has completed a group of question slides.

       

      var player = GetPlayer();

      var attempt = player.GetVar("d1attempt");

      var lmsAPI = parent;

      var score1=0;

      if( attempt==1){

      score1=10;

      }

      else if( attempt==2){

      score1=5;

      }

      player.SetVar("d1score", score1);

      var score_section1 =parseInt(player.GetVar("scoresection1")) + parseInt(score1);

      player.SetVar("scoresection1", score_section1);

      lmsAPI.SetObjectiveScore(1,score_section1, 30, 0);

       

       

       

      in the above code, the funcion lmsAPI.SetObjectiveScore() is native for Storyline, that, depending on the scorm version you have chosen for your scorm package, will translate this native function to read or write data using scorm 1.2 or 1.3 data model, without the need to use different functions.

       

      thank you