Skip to main content
Known Participant
Feb 1, 2019 9:18 AM UTC
Question

Problème scorm dans captivate

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 is closed to new replies. Start a new post to keep the conversation going.

    5 replies

    Participating Frequently
    Feb 4, 2019 2:59 PM UTC

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

    Translate
    Participating Frequently
    Feb 1, 2019 3:39 PM UTC

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

    Translate
    Lilybiri
    Legend
    Feb 1, 2019 4:53 PM UTC

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

    Translate
    rvmouthAuthor
    Known Participant
    Feb 6, 2019 9:18 AM UTC

    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("");

    }

    Translate