Skip to main content
Known Participant
February 1, 2019
Question

Problème scorm dans captivate

  • February 1, 2019
  • 2 replies
  • 354 views

Bonjour,

Je rencontre un problème avec l'api scorm.

Je pousse via un script JS les réponses à chaque slide dans captivate. Cependant scorm réinitialise entre chaque slide le score à zéro.

Est-ce dû à un paramètre, dans captivate, que je n'aurai pas mis en place?

Merci

    This topic has been closed for replies.

    2 replies

    Participating Frequently
    February 4, 2019

    Je fais une publication au format HML5  et dans le dossier j'ai mes éléments suivants:

    Participating Frequently
    February 1, 2019

    J'ajoute une capture ou l'on voit le score raw repasser à zéro alors que le quiz est compléter.

    Lilybiri
    Legend
    February 1, 2019

    Est-ce que vous utlisez le script SCORM  de Captivate, qui transfère le résultat après chaqye diapostive de quiz?

    rvmouthAuthor
    Known Participant
    February 6, 2019

    Nous utilisons des script JS pour faire  le push  :

    /**

    * Push information about quiz to LMS

    */

    function pushInitQuiz(){

        SCORM_CallLMSSetValue(path_min, 0);

        SCORM_CallLMSSetValue(path_max, 100);

        SCORM_CallLMSSetValue(path_raw, 0);

        SCORM_CallLMSSetValue(path_status, "incomplete");

    }

    /**

    * Push information about current question to LMS

    * @param {*} _index The current question index

    */

    function pushInitQuestion(_index){

        SCORM_CallLMSSetValue(path_type(_index),"performance");

        SCORM_CallLMSSetValue(path_question_id(_index),question_ids[_index]);

        SCORM_CallLMSSetValue(path_weight(_index), question_weights[_index]);

        SCORM_CallLMSSetValue(path_correct_response(_index),correct_lists[_index]);

    }

    /**

    * Push information about current student response to LMS

    * @param {*} _index The current question index

    */

    function pushOnNextQuestion(_index){

        SCORM_CallLMSSetValue(path_student_rep(_index),cpFormatedResponses);

        SCORM_CallLMSSetValue(path_result(_index),cpNote);

        SCORM_CallLMSSetValue(path_time(_index),getTime());

    }

    /**

    * Push the updated student raw

    */

    function pushUpdatedRaw(){

        SCORM_CallLMSSetValue(path_raw, cpRaw * 100 / (cpCurrentIt + 1));

        //SCORM_CallLMSSetValue(path_raw, cpRaw/getQuizMaxPoints()*100);

        SCORM_CallLMSCommit("");

    }

    /**

    * Push information when exiting quiz

    */

    function pushOnFinish(){

        SCORM_CallLMSSetValue(path_status, "passed");

        SCORM_CallLMSCommit("");

    }