Donnez vie à vos documents numériques !
 

Problème de mise à jour en chaîne de champs de date

abracadabraPDF Forums PDF – Général Problème de mise à jour en chaîne de champs de date

  • Ce sujet est vide.
  • Créateur
    Sujet
  • #43482
    Deckard
    Invité

    Bonjour,

    Je suis en train de créer un formulaire. Il sert à valider des compétences informatiques. Pour chaque compétence validée, un champs texte reçoit la date du jour en cours.

    Le processus est un peu complexe à suivre.

    Prenons l’exemple d’une compétence comportant 7 items à valider. Si au moins 4 sont acquis par l’élève, la compétence entière est considérée comme acquise.

    – Pour cela j’utilise 1 case à cocher par item (valeur d’exportation = 1).

    – Un champs texte calcul la somme de ces 7 items ;

    – Un second champs (notefinaleenseignant) texte calcule la moyenne rapprochée pour ne fournir comme résultat que 0 ou 1 ;

    – Ce résultat est utilisé pour affiché le message “Compétence acquise” sur la fiche finale (résultat précédent = 1) dans un champs texte (OKe) ;

    – Enfin, ce dernier champ est utilisé pour remplir un champs texte (au format date) avec la date du jour (date). Si le résultat du champs est remis à zéro (suite à une erreur ou une autre raison), ce champs comportant la date est remis à zéro (tout comme le message “Compétence acquise” qui disparait).

    Le script pour le champs avec la date est :

    var m = this.getField(“date11”);

    var n = this.getField(“OKe11”).valueAsString;

    if ( n == “”)

    {

    m.value = “”;

    }

    else

    {

    m.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    Le problème est que si l’apparition ou la disparition de la date est bien circonscrite à la compétence validée, toutes les dates sont mises à jour en même temps ! Et je ne le veux pas.

    Une date qui apparait doit restée bloquée sauf si l’enseignant change son jugement et qu’une compétence précédemment acquise est considérée comme ne l’étant plus (donc effacement de la date et les autres dates présentes sur la fiche doivent restées inchangées, ce qui n’est pas le cas).

    J’ai changé le nom des champs comportant les dates pour “casser” les filiations, mais cela ne change rien.

    Même en créant séparément les champs (sans copier-coller ou dupliquer), j’ai le même résultat.

    Si quelqu’un pouvait m’aider. Je n’y comprends rien et je débute en javascript.

    Merci d’avance surtout que c’est plutôt urgent.

    Deckard

    NB : pourquoi avoir choisi cette méthode de passer de champs texte en champs texte ? Parce que je peux suivre ainsi les résultats et être certains qu’ils sont correctes (j’ai pu repérer quelques bugs). C’est plus simple pour un débutant comme moi.

    NB 2 : Version 8 d’Acrobat Pro utilisée.

    NB 3 : Le doc est ici http://perso.orange.fr/fujiconnection/B2i%202007%20Conforme%20B.pdf

Affichage de 8 réponses de 1 à 8 (sur un total de 8)
  • Auteur
    Réponses
  • #48878
    Merlin
    Maître des clés

    A l’ouverture de ton PDF le deboggueur d’Acrobat 7 Pro commence par dire ceci :

    TypeError: f has no properties

    1041:

    Et il me le répète ensuite à chaque fois que je clique quelque part…

    Difficile d’en dire plus dans ces conditions car rien ne fonctionne.

    Je pense qu’il te faudrait commencer par analyser la ligne 1041…

    😉 😉 :afro:

    #48879
    Deckard
    Invité

    J’ai mis à jour le pdf (même nom, même adresse) avec une version plus récente.

    Acrobat Reader 7.0.8 me le charge sans problèmes. Aucun message d’erreur.

    La ligne 1041 ? Elle me donne juste : //

    Et puis je ne vois pas d’où vient ce f.value. Il ne devrais plus exister.

    Au départ, la première mouture de mon document comprenait deux champs date mis à jour avec ce script :

    var f = this.getField(“datevalidationglobale”);

    f.value = util.printd(“dd/mm/yyyy”, new Date());

    Mais j’ai virer ces champs et effacer le script.

    Tenez, voilà tous les scripts de mon document :

    //



    //
    Ne pas modifier les balises XML

    //

    //

    //copienomeleve

    //

    /*********** appartient à : Document-Level:copienomeleve ***********/

    var v=this.getField(“nomeleve”).valueAsString;

    var u=this.getField(“nomeleveauto”);

    u.value = “[ ” + v + ” ]”;

    //

    //

    //

    //Le document sera fermé.

    //

    /*********** appartient à : Document-Actions:Le document sera fermé. ***********/

    var v1=this.getField(“nomeleve”).valueAsString;

    var u1=this.getField(“nomeleveauto.0”);

    u1.value = “[ ” + v1 + ” ]”;

    v=this.getField(“notefinale11”).valueAsString;

    var u=this.getField(“OK11”);

    u.value = v;

    v=this.getField(“notefinale12”).valueAsString;

    var u=this.getField(“OK12”);

    u.value = v;

    v=this.getField(“notefinale13”).valueAsString;

    var u=this.getField(“OK13”);

    u.value = v;

    v=this.getField(“notefinale14”).valueAsString;

    var u=this.getField(“OK14”);

    u.value = v;

    v=this.getField(“notefinale21”).valueAsString;

    var u=this.getField(“OK21”);

    u.value = v;

    v=this.getField(“notefinale22”).valueAsString;

    var u=this.getField(“OK22”);

    u.value = v;

    v=this.getField(“notefinale23”).valueAsString;

    var u=this.getField(“OK23”);

    u.value = v;

    v=this.getField(“notefinale24”).valueAsString;

    var u=this.getField(“OK24”);

    u.value = v;

    v=this.getField(“notefinale31”).valueAsString;

    var u=this.getField(“OK31”);

    u.value = v;

    v=this.getField(“notefinale32”).valueAsString;

    var u=this.getField(“OK32”);

    u.value = v;

    v=this.getField(“notefinale33”).valueAsString;

    var u=this.getField(“OK33”);

    u.value = v;

    v=this.getField(“notefinale34”).valueAsString;

    var u=this.getField(“OK34”);

    u.value = v;

    v=this.getField(“notefinale35”).valueAsString;

    var u=this.getField(“OK35”);

    u.value = v;

    v=this.getField(“notefinale36”).valueAsString;

    var u=this.getField(“OK36”);

    u.value = v;

    v=this.getField(“notefinale41”).valueAsString;

    var u=this.getField(“OK41”);

    u.value = v;

    v=this.getField(“notefinale42”).valueAsString;

    var u=this.getField(“OK42”);

    u.value = v;

    v=this.getField(“notefinale43”).valueAsString;

    var u=this.getField(“OK43”);

    u.value = v;

    v=this.getField(“notefinale44”).valueAsString;

    var u=this.getField(“OK44”);

    u.value = v;

    v=this.getField(“notefinale51”).valueAsString;

    var u=this.getField(“OK51”);

    u.value = v;

    v=this.getField(“notefinale52”).valueAsString;

    var u=this.getField(“OK52”);

    u.value = v;

    v=this.getField(“notefinale53”).valueAsString;

    var u=this.getField(“OK53”);

    u.value = v;

    v=this.getField(“notefinale54”).valueAsString;

    var u=this.getField(“OK54”);

    u.value = v;

    v=this.getField(“noteb2i”).valueAsString;

    var u=this.getField(“b2i”);

    u.value = v;

    //

    //

    //

    //Le document sera enregistré.

    //

    /*********** appartient à : Document-Actions:Le document sera enregistré. ***********/

    var v1=this.getField(“nomeleve”).valueAsString;

    var u1=this.getField(“nomeleveauto.0”);

    u1.value = “[ ” + v1 + ” ]”;

    v=this.getField(“notefinale11”).valueAsString;

    var u=this.getField(“OK11”);

    u.value = v;

    v=this.getField(“notefinale12”).valueAsString;

    var u=this.getField(“OK12”);

    u.value = v;

    v=this.getField(“notefinale13”).valueAsString;

    var u=this.getField(“OK13”);

    u.value = v;

    v=this.getField(“notefinale14”).valueAsString;

    var u=this.getField(“OK14”);

    u.value = v;

    v=this.getField(“notefinale21”).valueAsString;

    var u=this.getField(“OK21”);

    u.value = v;

    v=this.getField(“notefinale22”).valueAsString;

    var u=this.getField(“OK22”);

    u.value = v;

    v=this.getField(“notefinale23”).valueAsString;

    var u=this.getField(“OK23”);

    u.value = v;

    v=this.getField(“notefinale24”).valueAsString;

    var u=this.getField(“OK24”);

    u.value = v;

    v=this.getField(“notefinale31”).valueAsString;

    var u=this.getField(“OK31”);

    u.value = v;

    v=this.getField(“notefinale32”).valueAsString;

    var u=this.getField(“OK32”);

    u.value = v;

    v=this.getField(“notefinale33”).valueAsString;

    var u=this.getField(“OK33”);

    u.value = v;

    v=this.getField(“notefinale34”).valueAsString;

    var u=this.getField(“OK34”);

    u.value = v;

    v=this.getField(“notefinale35”).valueAsString;

    var u=this.getField(“OK35”);

    u.value = v;

    v=this.getField(“notefinale36”).valueAsString;

    var u=this.getField(“OK36”);

    u.value = v;

    v=this.getField(“notefinale41”).valueAsString;

    var u=this.getField(“OK41”);

    u.value = v;

    v=this.getField(“notefinale42”).valueAsString;

    var u=this.getField(“OK42”);

    u.value = v;

    v=this.getField(“notefinale43”).valueAsString;

    var u=this.getField(“OK43”);

    u.value = v;

    v=this.getField(“notefinale44”).valueAsString;

    var u=this.getField(“OK44”);

    u.value = v;

    v=this.getField(“notefinale51”).valueAsString;

    var u=this.getField(“OK51”);

    u.value = v;

    v=this.getField(“notefinale52”).valueAsString;

    var u=this.getField(“OK52”);

    u.value = v;

    v=this.getField(“notefinale53”).valueAsString;

    var u=this.getField(“OK53”);

    u.value = v;

    v=this.getField(“notefinale54”).valueAsString;

    var u=this.getField(“OK54”);

    u.value = v;

    v=this.getField(“noteb2i”).valueAsString;

    var u=this.getField(“b2i”);

    u.value = v;

    //

    //

    //

    //Le document a été enregistré.

    //

    /*********** appartient à : Document-Actions:Le document a été enregistré. ***********/

    var v1=this.getField(“nomeleve”).valueAsString;

    var u1=this.getField(“nomeleveauto.0”);

    u1.value = “[ ” + v1 + ” ]”;

    v=this.getField(“notefinale11”).valueAsString;

    var u=this.getField(“OK11”);

    u.value = v;

    v=this.getField(“notefinale12”).valueAsString;

    var u=this.getField(“OK12”);

    u.value = v;

    v=this.getField(“notefinale13”).valueAsString;

    var u=this.getField(“OK13”);

    u.value = v;

    v=this.getField(“notefinale14”).valueAsString;

    var u=this.getField(“OK14”);

    u.value = v;

    v=this.getField(“notefinale21”).valueAsString;

    var u=this.getField(“OK21”);

    u.value = v;

    v=this.getField(“notefinale22”).valueAsString;

    var u=this.getField(“OK22”);

    u.value = v;

    v=this.getField(“notefinale23”).valueAsString;

    var u=this.getField(“OK23”);

    u.value = v;

    v=this.getField(“notefinale24”).valueAsString;

    var u=this.getField(“OK24”);

    u.value = v;

    v=this.getField(“notefinale31”).valueAsString;

    var u=this.getField(“OK31”);

    u.value = v;

    v=this.getField(“notefinale32”).valueAsString;

    var u=this.getField(“OK32”);

    u.value = v;

    v=this.getField(“notefinale33”).valueAsString;

    var u=this.getField(“OK33”);

    u.value = v;

    v=this.getField(“notefinale34”).valueAsString;

    var u=this.getField(“OK34”);

    u.value = v;

    v=this.getField(“notefinale35”).valueAsString;

    var u=this.getField(“OK35”);

    u.value = v;

    v=this.getField(“notefinale36”).valueAsString;

    var u=this.getField(“OK36”);

    u.value = v;

    v=this.getField(“notefinale41”).valueAsString;

    var u=this.getField(“OK41”);

    u.value = v;

    v=this.getField(“notefinale42”).valueAsString;

    var u=this.getField(“OK42”);

    u.value = v;

    v=this.getField(“notefinale43”).valueAsString;

    var u=this.getField(“OK43”);

    u.value = v;

    v=this.getField(“notefinale44”).valueAsString;

    var u=this.getField(“OK44”);

    u.value = v;

    v=this.getField(“notefinale51”).valueAsString;

    var u=this.getField(“OK51”);

    u.value = v;

    v=this.getField(“notefinale52”).valueAsString;

    var u=this.getField(“OK52”);

    u.value = v;

    v=this.getField(“notefinale53”).valueAsString;

    var u=this.getField(“OK53”);

    u.value = v;

    v=this.getField(“notefinale54”).valueAsString;

    var u=this.getField(“OK54”);

    u.value = v;

    v=this.getField(“noteb2i”).valueAsString;

    var u=this.getField(“b2i”);

    u.value = v;

    //

    //

    //

    //Le document sera imprimé.

    //

    /*********** appartient à : Document-Actions:Le document sera imprimé. ***********/

    var v1=this.getField(“nomeleve”).valueAsString;

    var u1=this.getField(“nomeleveauto.0”);

    u1.value = “[ ” + v1 + ” ]”;

    v=this.getField(“notefinale11”).valueAsString;

    var u=this.getField(“OK11”);

    u.value = v;

    v=this.getField(“notefinale12”).valueAsString;

    var u=this.getField(“OK12”);

    u.value = v;

    v=this.getField(“notefinale13”).valueAsString;

    var u=this.getField(“OK13”);

    u.value = v;

    v=this.getField(“notefinale14”).valueAsString;

    var u=this.getField(“OK14”);

    u.value = v;

    v=this.getField(“notefinale21”).valueAsString;

    var u=this.getField(“OK21”);

    u.value = v;

    v=this.getField(“notefinale22”).valueAsString;

    var u=this.getField(“OK22”);

    u.value = v;

    v=this.getField(“notefinale23”).valueAsString;

    var u=this.getField(“OK23”);

    u.value = v;

    v=this.getField(“notefinale24”).valueAsString;

    var u=this.getField(“OK24”);

    u.value = v;

    v=this.getField(“notefinale31”).valueAsString;

    var u=this.getField(“OK31”);

    u.value = v;

    v=this.getField(“notefinale32”).valueAsString;

    var u=this.getField(“OK32”);

    u.value = v;

    v=this.getField(“notefinale33”).valueAsString;

    var u=this.getField(“OK33”);

    u.value = v;

    v=this.getField(“notefinale34”).valueAsString;

    var u=this.getField(“OK34”);

    u.value = v;

    v=this.getField(“notefinale35”).valueAsString;

    var u=this.getField(“OK35”);

    u.value = v;

    v=this.getField(“notefinale36”).valueAsString;

    var u=this.getField(“OK36”);

    u.value = v;

    v=this.getField(“notefinale41”).valueAsString;

    var u=this.getField(“OK41”);

    u.value = v;

    v=this.getField(“notefinale42”).valueAsString;

    var u=this.getField(“OK42”);

    u.value = v;

    v=this.getField(“notefinale43”).valueAsString;

    var u=this.getField(“OK43”);

    u.value = v;

    v=this.getField(“notefinale44”).valueAsString;

    var u=this.getField(“OK44”);

    u.value = v;

    v=this.getField(“notefinale51”).valueAsString;

    var u=this.getField(“OK51”);

    u.value = v;

    v=this.getField(“notefinale52”).valueAsString;

    var u=this.getField(“OK52”);

    u.value = v;

    v=this.getField(“notefinale53”).valueAsString;

    var u=this.getField(“OK53”);

    u.value = v;

    v=this.getField(“notefinale54”).valueAsString;

    var u=this.getField(“OK54”);

    u.value = v;

    v=this.getField(“noteb2i”).valueAsString;

    var u=this.getField(“b2i”);

    u.value = v;

    //

    //

    //

    //Le document a été imprimé.

    //

    /*********** appartient à : Document-Actions:Le document a été imprimé. ***********/

    var v1=this.getField(“nomeleve”).valueAsString;

    var u1=this.getField(“nomeleveauto.0”);

    u1.value = “[ ” + v1 + ” ]”;

    v=this.getField(“notefinale11”).valueAsString;

    var u=this.getField(“OK11”);

    u.value = v;

    v=this.getField(“notefinale12”).valueAsString;

    var u=this.getField(“OK12”);

    u.value = v;

    v=this.getField(“notefinale13”).valueAsString;

    var u=this.getField(“OK13”);

    u.value = v;

    v=this.getField(“notefinale14”).valueAsString;

    var u=this.getField(“OK14”);

    u.value = v;

    v=this.getField(“notefinale21”).valueAsString;

    var u=this.getField(“OK21”);

    u.value = v;

    v=this.getField(“notefinale22”).valueAsString;

    var u=this.getField(“OK22”);

    u.value = v;

    v=this.getField(“notefinale23”).valueAsString;

    var u=this.getField(“OK23”);

    u.value = v;

    v=this.getField(“notefinale24”).valueAsString;

    var u=this.getField(“OK24”);

    u.value = v;

    v=this.getField(“notefinale31”).valueAsString;

    var u=this.getField(“OK31”);

    u.value = v;

    v=this.getField(“notefinale32”).valueAsString;

    var u=this.getField(“OK32”);

    u.value = v;

    v=this.getField(“notefinale33”).valueAsString;

    var u=this.getField(“OK33”);

    u.value = v;

    v=this.getField(“notefinale34”).valueAsString;

    var u=this.getField(“OK34”);

    u.value = v;

    v=this.getField(“notefinale35”).valueAsString;

    var u=this.getField(“OK35”);

    u.value = v;

    v=this.getField(“notefinale36”).valueAsString;

    var u=this.getField(“OK36”);

    u.value = v;

    v=this.getField(“notefinale41”).valueAsString;

    var u=this.getField(“OK41”);

    u.value = v;

    v=this.getField(“notefinale42”).valueAsString;

    var u=this.getField(“OK42”);

    u.value = v;

    v=this.getField(“notefinale43”).valueAsString;

    var u=this.getField(“OK43”);

    u.value = v;

    v=this.getField(“notefinale44”).valueAsString;

    var u=this.getField(“OK44”);

    u.value = v;

    v=this.getField(“notefinale51”).valueAsString;

    var u=this.getField(“OK51”);

    u.value = v;

    v=this.getField(“notefinale52”).valueAsString;

    var u=this.getField(“OK52”);

    u.value = v;

    v=this.getField(“notefinale53”).valueAsString;

    var u=this.getField(“OK53”);

    u.value = v;

    v=this.getField(“notefinale54”).valueAsString;

    var u=this.getField(“OK54”);

    u.value = v;

    v=this.getField(“noteb2i”).valueAsString;

    var u=this.getField(“b2i”);

    u.value = v;

    //

    //

    //

    //Correction:Annot1:MouseUp:Action1

    //

    /*********** appartient à : AcroForm:Correction:Annot1:MouseUp:Action1 ***********/

    ////////////////////////////////////////////////////////////////////////////

    // boite de dialogue

    var cResponse = app.response({

    cQuestion: “Entrez votre mot de passe”, cTitle: “Mot de passe”, });

    // test de la reponse

    {

    if ( cResponse == null) // si annulation

    {

    app.alert(“Vous devez entrer votre mot de passe pour utiliser ce document.”);

    } // envoi alerte

    else if ( cResponse == “temp”) // sinon si reponse est 000000

    {

    this.getField(“validationenseignant”).readonly = false; // deverrouille les champs PIERRE

    app.beep(); // bip de confirmation

    }

    else // sinon si autre reponse (mot de passe erroné)

    {

    app.alert(“Ce mot de passe est invalide !”,3);

    } // envoi alerte

    }

    //

    //

    //

    //OKe11:Calculate

    //

    /*********** appartient à : AcroForm:OKe11:Calculate ***********/

    var z = “Compétence acquise”;

    var y = this.getField(“OKe11”);

    var x = this.getField(“notefinaleenseignant11”).valueAsString;

    if ( x == 1)

    {

    y.value = z;

    }

    else

    {

    y.value = “”;

    }

    //

    //

    //

    //OKe12:Calculate

    //

    /*********** appartient à : AcroForm:OKe12:Calculate ***********/

    var z1 = “Compétence acquise”;

    var y1 = this.getField(“OKe12”);

    var x1 = this.getField(“notefinaleenseignant12”).valueAsString;

    if ( x1 == 1)

    {

    y1.value = z1;

    }

    else

    {

    y1.value = “”;

    }

    //

    //

    //

    //OKe13:Calculate

    //

    /*********** appartient à : AcroForm:OKe13:Calculate ***********/

    var z = “Compétence acquise”;

    var y = this.getField(“OKe13”);

    var x = this.getField(“notefinaleenseignant13”).valueAsString;

    if ( x == 1)

    {

    y.value = z;

    }

    else

    {

    y.value = “”;

    }

    //

    //

    //

    //OKe14:Calculate

    //

    /*********** appartient à : AcroForm:OKe14:Calculate ***********/

    var z = “Compétence acquise”;

    var y = this.getField(“OKe14”);

    var x = this.getField(“notefinaleenseignant14”).valueAsString;

    if ( x == 1)

    {

    y.value = z;

    }

    else

    {

    y.value = “”;

    }

    //

    //

    //

    //OKe21:Calculate

    //

    /*********** appartient à : AcroForm:OKe21:Calculate ***********/

    var z21 = “Compétence acquise”;

    var y21 = this.getField(“OKe21”);

    var x21 = this.getField(“notefinaleenseignant21”).valueAsString;

    if ( x21 == 1)

    {

    y21.value = z21;

    }

    else

    {

    y21.value = “”;

    }

    //

    //

    //

    //OKe22:Calculate

    //

    /*********** appartient à : AcroForm:OKe22:Calculate ***********/

    var z22 = “Compétence acquise”;

    var y22 = this.getField(“OKe22”);

    var x22 = this.getField(“notefinaleenseignant22”).valueAsString;

    if ( x22 == 1)

    {

    y22.value = z22;

    }

    else

    {

    y22.value = “”;

    }

    //

    //

    //

    //OKe23:Calculate

    //

    /*********** appartient à : AcroForm:OKe23:Calculate ***********/

    var z23 = “Compétence acquise”;

    var y23 = this.getField(“OKe23”);

    var x23 = this.getField(“notefinaleenseignant23”).valueAsString;

    if ( x23 == 1)

    {

    y23.value = z23;

    }

    else

    {

    y23.value = “”;

    }

    //

    //

    //

    //OKe24:Calculate

    //

    /*********** appartient à : AcroForm:OKe24:Calculate ***********/

    var z24 = “Compétence acquise”;

    var y24 = this.getField(“OKe24”);

    var x24 = this.getField(“notefinaleenseignant24”).valueAsString;

    if ( x24 == 1)

    {

    y24.value = z24;

    }

    else

    {

    y24.value = “”;

    }

    //

    //

    //

    //OKe31:Calculate

    //

    /*********** appartient à : AcroForm:OKe31:Calculate ***********/

    var z31 = “Compétence acquise”;

    var y31 = this.getField(“OKe31”);

    var x31 = this.getField(“notefinaleenseignant31”).valueAsString;

    if ( x31 == 1)

    {

    y31.value = z31;

    }

    else

    {

    y31.value = “”;

    }

    //

    //

    //

    //OKe32:Calculate

    //

    /*********** appartient à : AcroForm:OKe32:Calculate ***********/

    var z32 = “Compétence acquise”;

    var y32 = this.getField(“OKe32”);

    var x32 = this.getField(“notefinaleenseignant32”).valueAsString;

    if ( x32 == 1)

    {

    y32.value = z32;

    }

    else

    {

    y32.value = “”;

    }

    //

    //

    //

    //OKe33:Calculate

    //

    /*********** appartient à : AcroForm:OKe33:Calculate ***********/

    var z33 = “Compétence acquise”;

    var y33 = this.getField(“OKe33”);

    var x33 = this.getField(“notefinaleenseignant33”).valueAsString;

    if ( x33 == 1)

    {

    y33.value = z33;

    }

    else

    {

    y33.value = “”;

    }

    //

    //

    //

    //OKe34:Calculate

    //

    /*********** appartient à : AcroForm:OKe34:Calculate ***********/

    var z34 = “Compétence acquise”;

    var y34 = this.getField(“OKe34”);

    var x34 = this.getField(“notefinaleenseignant34”).valueAsString;

    if ( x34 == 1)

    {

    y34.value = z34;

    }

    else

    {

    y34.value = “”;

    }

    //

    //

    //

    //OKe35:Calculate

    //

    /*********** appartient à : AcroForm:OKe35:Calculate ***********/

    var z35 = “Compétence acquise”;

    var y35 = this.getField(“OKe35”);

    var x35 = this.getField(“notefinaleenseignant35”).valueAsString;

    if ( x35 == 1)

    {

    y35.value = z35;

    }

    else

    {

    y35.value = “”;

    }

    //

    //

    //

    //OKe36:Calculate

    //

    /*********** appartient à : AcroForm:OKe36:Calculate ***********/

    var z36 = “Compétence acquise”;

    var y36 = this.getField(“OKe36”);

    var x36 = this.getField(“notefinaleenseignant36”).valueAsString;

    if ( x36 == 1)

    {

    y36.value = z36;

    }

    else

    {

    y36.value = “”;

    }

    //

    //

    //

    //OKe41:Calculate

    //

    /*********** appartient à : AcroForm:OKe41:Calculate ***********/

    var z41 = “Compétence acquise”;

    var y41 = this.getField(“OKe41”);

    var x41 = this.getField(“notefinaleenseignant41”).valueAsString;

    if ( x41 == 1)

    {

    y41.value = z41;

    }

    else

    {

    y41.value = “”;

    }

    //

    //

    //

    //OKe42:Calculate

    //

    /*********** appartient à : AcroForm:OKe42:Calculate ***********/

    var z42 = “Compétence acquise”;

    var y42 = this.getField(“OKe42”);

    var x42 = this.getField(“notefinaleenseignant42”).valueAsString;

    if ( x42 == 1)

    {

    y42.value = z42;

    }

    else

    {

    y42.value = “”;

    }

    //

    //

    //

    //OKe43:Calculate

    //

    /*********** appartient à : AcroForm:OKe43:Calculate ***********/

    var z43 = “Compétence acquise”;

    var y43 = this.getField(“OKe43”);

    var x43 = this.getField(“notefinaleenseignant43”).valueAsString;

    if ( x43 == 1)

    {

    y43.value = z43;

    }

    else

    {

    y43.value = “”;

    }

    //

    //

    //

    //OKe44:Calculate

    //

    /*********** appartient à : AcroForm:OKe44:Calculate ***********/

    var z44 = “Compétence acquise”;

    var y44 = this.getField(“OKe44”);

    var x44 = this.getField(“notefinaleenseignant44”).valueAsString;

    if ( x44 == 1)

    {

    y44.value = z44;

    }

    else

    {

    y44.value = “”;

    }

    //

    //

    //

    //OKe51:Calculate

    //

    /*********** appartient à : AcroForm:OKe51:Calculate ***********/

    var z51 = “Compétence acquise”;

    var y51 = this.getField(“OKe51”);

    var x51 = this.getField(“notefinaleenseignant51”).valueAsString;

    if ( x51 == 1)

    {

    y51.value = z51;

    }

    else

    {

    y51.value = “”;

    }

    //

    //

    //

    //OKe52:Calculate

    //

    /*********** appartient à : AcroForm:OKe52:Calculate ***********/

    var z52 = “Compétence acquise”;

    var y52 = this.getField(“OKe52”);

    var x52 = this.getField(“notefinaleenseignant52”).valueAsString;

    if ( x52 == 1)

    {

    y52.value = z52;

    }

    else

    {

    y52.value = “”;

    }

    //

    //

    //

    //OKe53:Calculate

    //

    /*********** appartient à : AcroForm:OKe53:Calculate ***********/

    var z53 = “Compétence acquise”;

    var y53 = this.getField(“OKe53”);

    var x53 = this.getField(“notefinaleenseignant53”).valueAsString;

    if ( x53 == 1)

    {

    y53.value = z53;

    }

    else

    {

    y53.value = “”;

    }

    //

    //

    //

    //OKe54:Calculate

    //

    /*********** appartient à : AcroForm:OKe54:Calculate ***********/

    var z54 = “Compétence acquise”;

    var y54 = this.getField(“OKe54”);

    var x54 = this.getField(“notefinaleenseignant54”).valueAsString;

    if ( x54 == 1)

    {

    y54.value = z54;

    }

    else

    {

    y54.value = “”;

    }

    //

    //

    //

    //date11:Calculate

    //

    /*********** appartient à : AcroForm:date11:Calculate ***********/

    var m11 = this.getField(“date11”);

    var n11 = this.getField(“OKe11”).valueAsString;

    if ( n11 == “”)

    {

    m11.value = “”;

    }

    else

    {

    m11.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date12:Calculate

    //

    /*********** appartient à : AcroForm:date12:Calculate ***********/

    var m12 = this.getField(“date12”);

    var n12 = this.getField(“OKe12”).valueAsString;

    if ( n12 == “”)

    {

    m12.value = “”;

    }

    else

    {

    m12.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date13:Calculate

    //

    /*********** appartient à : AcroForm:date13:Calculate ***********/

    var m13 = this.getField(“date13”);

    var n13 = this.getField(“OKe13”).valueAsString;

    if ( n13 == “”)

    {

    m13.value = “”;

    }

    else

    {

    m13.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date14:Calculate

    //

    /*********** appartient à : AcroForm:date14:Calculate ***********/

    var m14 = this.getField(“date14”);

    var n14 = this.getField(“OKe14”).valueAsString;

    if ( n14 == “”)

    {

    m14.value = “”;

    }

    else

    {

    m14.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date21:Calculate

    //

    /*********** appartient à : AcroForm:date21:Calculate ***********/

    var m21 = this.getField(“date21”);

    var n21 = this.getField(“OKe21”).valueAsString;

    if ( n21 == “”)

    {

    m21.value = “”;

    }

    else

    {

    m21.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date22:Calculate

    //

    /*********** appartient à : AcroForm:date22:Calculate ***********/

    var m22 = this.getField(“date22”);

    var n22 = this.getField(“OKe22”).valueAsString;

    if ( n22 == “”)

    {

    m22.value = “”;

    }

    else

    {

    m22.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date23:Calculate

    //

    /*********** appartient à : AcroForm:date23:Calculate ***********/

    var m23 = this.getField(“date23”);

    var n23 = this.getField(“OKe23”).valueAsString;

    if ( n23 == “”)

    {

    m23.value = “”;

    }

    else

    {

    m23.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date24:Calculate

    //

    /*********** appartient à : AcroForm:date24:Calculate ***********/

    var m24 = this.getField(“date24”);

    var n24 = this.getField(“OKe24”).valueAsString;

    if ( n24 == “”)

    {

    m24.value = “”;

    }

    else

    {

    m24.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date31:Calculate

    //

    /*********** appartient à : AcroForm:date31:Calculate ***********/

    var m31 = this.getField(“date31”);

    var n31 = this.getField(“OKe31”).valueAsString;

    if ( n31 == “”)

    {

    m31.value = “”;

    }

    else

    {

    m31.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date32:Calculate

    //

    /*********** appartient à : AcroForm:date32:Calculate ***********/

    var m32 = this.getField(“date32”);

    var n32 = this.getField(“OKe32”).valueAsString;

    if ( n32 == “”)

    {

    m32.value = “”;

    }

    else

    {

    m32.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date33:Calculate

    //

    /*********** appartient à : AcroForm:date33:Calculate ***********/

    var m33 = this.getField(“date33”);

    var n33 = this.getField(“OKe33”).valueAsString;

    if ( n33 == “”)

    {

    m33.value = “”;

    }

    else

    {

    m33.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date34:Calculate

    //

    /*********** appartient à : AcroForm:date34:Calculate ***********/

    var m34 = this.getField(“date34”);

    var n34 = this.getField(“OKe34”).valueAsString;

    if ( n34 == “”)

    {

    m34.value = “”;

    }

    else

    {

    m34.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date35:Calculate

    //

    /*********** appartient à : AcroForm:date35:Calculate ***********/

    var m35 = this.getField(“date35”);

    var n35 = this.getField(“OKe35”).valueAsString;

    if ( n35 == “”)

    {

    m35.value = “”;

    }

    else

    {

    m35.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date36:Calculate

    //

    /*********** appartient à : AcroForm:date36:Calculate ***********/

    var m36 = this.getField(“date36”);

    var n36 = this.getField(“OKe36”).valueAsString;

    if ( n36 == “”)

    {

    m36.value = “”;

    }

    else

    {

    m36.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date41:Calculate

    //

    /*********** appartient à : AcroForm:date41:Calculate ***********/

    var m41 = this.getField(“date41”);

    var n41 = this.getField(“OKe41”).valueAsString;

    if ( n41 == “”)

    {

    m41.value = “”;

    }

    else

    {

    m41.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date42:Calculate

    //

    /*********** appartient à : AcroForm:date42:Calculate ***********/

    var m42 = this.getField(“date42”);

    var n42 = this.getField(“OKe42”).valueAsString;

    if ( n42 == “”)

    {

    m42.value = “”;

    }

    else

    {

    m42.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date43:Calculate

    //

    /*********** appartient à : AcroForm:date43:Calculate ***********/

    var m43 = this.getField(“date43”);

    var n43 = this.getField(“OKe43”).valueAsString;

    if ( n43 == “”)

    {

    m43.value = “”;

    }

    else

    {

    m43.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date44:Calculate

    //

    /*********** appartient à : AcroForm:date44:Calculate ***********/

    var m44 = this.getField(“date44”);

    var n44 = this.getField(“OKe44”).valueAsString;

    if ( n44 == “”)

    {

    m44.value = “”;

    }

    else

    {

    m44.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date51:Calculate

    //

    /*********** appartient à : AcroForm:date51:Calculate ***********/

    var m51 = this.getField(“date51”);

    var n51 = this.getField(“OKe51”).valueAsString;

    if ( n51 == “”)

    {

    m51.value = “”;

    }

    else

    {

    m51.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date52:Calculate

    //

    /*********** appartient à : AcroForm:date52:Calculate ***********/

    var m52 = this.getField(“date52”);

    var n52 = this.getField(“OKe52”).valueAsString;

    if ( n52 == “”)

    {

    m52.value = “”;

    }

    else

    {

    m52.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date53:Calculate

    //

    /*********** appartient à : AcroForm:date53:Calculate ***********/

    var m53 = this.getField(“date53”);

    var n53 = this.getField(“OKe53”).valueAsString;

    if ( n53 == “”)

    {

    m53.value = “”;

    }

    else

    {

    m53.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date54:Calculate

    //

    /*********** appartient à : AcroForm:date54:Calculate ***********/

    var m54 = this.getField(“date54”);

    var n54 = this.getField(“OKe54”).valueAsString;

    if ( n54 == “”)

    {

    m54.value = “”;

    }

    else

    {

    m54.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //noteb2i:Calculate

    //

    /*********** appartient à : AcroForm:noteb2i:Calculate ***********/

    var a = this.getField(“cumulenseignantfinal”);

    event.value = Math.round(a.value / 36);

    //

    //

    //

    //notefinale11:Calculate

    //

    /*********** appartient à : AcroForm:notefinale11:Calculate ***********/

    var a = this.getField(“calcultotal11”);

    event.value = Math.round(a.value / 9);

    //

    //

    //

    //notefinale12:Calculate

    //

    /*********** appartient à : AcroForm:notefinale12:Calculate ***********/

    var a = this.getField(“calcultotal12”);

    event.value = Math.round(a.value / 5);

    //

    //

    //

    //notefinale13:Calculate

    //

    /*********** appartient à : AcroForm:notefinale13:Calculate ***********/

    var a = this.getField(“calcultotal13”);

    event.value = Math.round(a.value / 16);

    //

    //

    //

    //notefinale14:Calculate

    //

    /*********** appartient à : AcroForm:notefinale14:Calculate ***********/

    var a = this.getField(“calcultotal14”);

    event.value = Math.round(a.value / 20);

    //

    //

    //

    //notefinale21:Calculate

    //

    /*********** appartient à : AcroForm:notefinale21:Calculate ***********/

    var a = this.getField(“calcultotal21”);

    event.value = Math.round(a.value / 1);

    //

    //

    //

    //notefinale22:Calculate

    //

    /*********** appartient à : AcroForm:notefinale22:Calculate ***********/

    var a = this.getField(“calcultotal22”);

    event.value = Math.round(a.value / 3);

    //

    //

    //

    //notefinale23:Calculate

    //

    /*********** appartient à : AcroForm:notefinale23:Calculate ***********/

    var a = this.getField(“calcultotal23”);

    event.value = Math.round(a.value / 4);

    //

    //

    //

    //notefinale24:Calculate

    //

    /*********** appartient à : AcroForm:notefinale24:Calculate ***********/

    var a = this.getField(“calcultotal24”);

    event.value = Math.round(a.value / 6);

    //

    //

    //

    //notefinale31:Calculate

    //

    /*********** appartient à : AcroForm:notefinale31:Calculate ***********/

    var a = this.getField(“calcultotal31”);

    event.value = Math.round(a.value / 11);

    //

    //

    //

    //notefinale32:Calculate

    //

    /*********** appartient à : AcroForm:notefinale32:Calculate ***********/

    var a = this.getField(“calcultotal32”);

    event.value = Math.round(a.value / 11);

    //

    //

    //

    //notefinale33:Calculate

    //

    /*********** appartient à : AcroForm:notefinale33:Calculate ***********/

    var a = this.getField(“calcultotal33”);

    event.value = Math.round(a.value / 7);

    //

    //

    //

    //notefinale34:Calculate

    //

    /*********** appartient à : AcroForm:notefinale34:Calculate ***********/

    var a = this.getField(“calcultotal34”);

    event.value = Math.round(a.value / 3);

    //

    //

    //

    //notefinale35:Calculate

    //

    /*********** appartient à : AcroForm:notefinale35:Calculate ***********/

    var a = this.getField(“calcultotal35”);

    event.value = Math.round(a.value / 2);

    //

    //

    //

    //notefinale36:Calculate

    //

    /*********** appartient à : AcroForm:notefinale36:Calculate ***********/

    var a = this.getField(“calcultotal36”);

    event.value = Math.round(a.value / 7);

    //

    //

    //

    //notefinale41:Calculate

    //

    /*********** appartient à : AcroForm:notefinale41:Calculate ***********/

    var a = this.getField(“calcultotal41”);

    event.value = Math.round(a.value / 7);

    //

    //

    //

    //notefinale42:Calculate

    //

    /*********** appartient à : AcroForm:notefinale42:Calculate ***********/

    var a = this.getField(“calcultotal42”);

    event.value = Math.round(a.value / 3);

    //

    //

    //

    //notefinale43:Calculate

    //

    /*********** appartient à : AcroForm:notefinale43:Calculate ***********/

    var a = this.getField(“calcultotal43”);

    event.value = Math.round(a.value / 5);

    //

    //

    //

    //notefinale44:Calculate

    //

    /*********** appartient à : AcroForm:notefinale44:Calculate ***********/

    var a = this.getField(“calcultotal44”);

    event.value = Math.round(a.value / 3);

    //

    //

    //

    //notefinale51:Calculate

    //

    /*********** appartient à : AcroForm:notefinale51:Calculate ***********/

    var a = this.getField(“calcultotal51”);

    event.value = Math.round(a.value / 9);

    //

    //

    //

    //notefinale52:Calculate

    //

    /*********** appartient à : AcroForm:notefinale52:Calculate ***********/

    var a = this.getField(“calcultotal52”);

    event.value = Math.round(a.value / 5);

    //

    //

    //

    //notefinale53:Calculate

    //

    /*********** appartient à : AcroForm:notefinale53:Calculate ***********/

    var a = this.getField(“calcultotal53”);

    event.value = Math.round(a.value / 1);

    //

    //

    //

    //notefinale54:Calculate

    //

    /*********** appartient à : AcroForm:notefinale54:Calculate ***********/

    var a = this.getField(“calcultotal54”);

    event.value = Math.round(a.value / 1);

    //

    //

    //

    //notefinaleenseignant11:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant11:Calculate ***********/

    var a = this.getField(“calculenseignant11”);

    event.value = Math.round(a.value / 9);

    //

    //

    //

    //notefinaleenseignant12:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant12:Calculate ***********/

    var b = this.getField(“calculenseignant12”);

    event.value = Math.round(b.value / 5);

    //

    //

    //

    //notefinaleenseignant13:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant13:Calculate ***********/

    var a = this.getField(“calculenseignant13”);

    event.value = Math.round(a.value / 16);

    //

    //

    //

    //notefinaleenseignant14:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant14:Calculate ***********/

    var a = this.getField(“calculenseignant14”);

    event.value = Math.round(a.value / 20);

    //

    //

    //

    //notefinaleenseignant21:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant21:Calculate ***********/

    var a = this.getField(“calculenseignant21”);

    event.value = Math.round(a.value / 1);

    //

    //

    //

    //notefinaleenseignant22:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant22:Calculate ***********/

    var a = this.getField(“calculenseignant22”);

    event.value = Math.round(a.value / 3);

    //

    //

    //

    //notefinaleenseignant23:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant23:Calculate ***********/

    var a = this.getField(“calculenseignant23”);

    event.value = Math.round(a.value / 4);

    //

    //

    //

    //notefinaleenseignant24:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant24:Calculate ***********/

    var a = this.getField(“calculenseignant24”);

    event.value = Math.round(a.value / 6);

    //

    //

    //

    //notefinaleenseignant31:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant31:Calculate ***********/

    var a = this.getField(“calculenseignant31”);

    event.value = Math.round(a.value / 11);

    //

    //

    //

    //notefinaleenseignant32:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant32:Calculate ***********/

    var a = this.getField(“calculenseignant32”);

    event.value = Math.round(a.value / 11);

    //

    //

    //

    //notefinaleenseignant33:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant33:Calculate ***********/

    var a = this.getField(“calculenseignant33”);

    event.value = Math.round(a.value / 7);

    //

    //

    //

    //notefinaleenseignant34:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant34:Calculate ***********/

    var a = this.getField(“calculenseignant34”);

    event.value = Math.round(a.value / 3);

    //

    //

    //

    //notefinaleenseignant35:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant35:Calculate ***********/

    var a = this.getField(“calculenseignant35”);

    event.value = Math.round(a.value / 1);

    //

    //

    //

    //notefinaleenseignant36:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant36:Calculate ***********/

    var a = this.getField(“calculenseignant36”);

    event.value = Math.round(a.value / 7);

    //

    //

    //

    //notefinaleenseignant41:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant41:Calculate ***********/

    var a = this.getField(“calculenseignant41”);

    event.value = Math.round(a.value / 7);

    //

    //

    //

    //notefinaleenseignant42:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant42:Calculate ***********/

    var a = this.getField(“calculenseignant42”);

    event.value = Math.round(a.value / 3);

    //

    //

    //

    //notefinaleenseignant43:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant43:Calculate ***********/

    var a = this.getField(“calculenseignant43”);

    event.value = Math.round(a.value / 5);

    //

    //

    //

    //notefinaleenseignant44:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant44:Calculate ***********/

    var a = this.getField(“calculenseignant44”);

    event.value = Math.round(a.value / 3);

    //

    //

    //

    //notefinaleenseignant51:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant51:Calculate ***********/

    var a = this.getField(“calculenseignant51”);

    event.value = Math.round(a.value / 9);

    //

    //

    //

    //notefinaleenseignant52:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant52:Calculate ***********/

    var a = this.getField(“calculenseignant52”);

    event.value = Math.round(a.value / 5);

    //

    //

    //

    //notefinaleenseignant53:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant53:Calculate ***********/

    var a = this.getField(“calculenseignant53”);

    event.value = Math.round(a.value / 1);

    //

    //

    //

    //notefinaleenseignant54:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant54:Calculate ***********/

    var a = this.getField(“calculenseignant54”);

    event.value = Math.round(a.value / 1);

    //

    //

    Si ça peut aider à comprendre…

    Deckard

    #48880
    Deckard
    Invité

    J’ai mis à jour le pdf (même nom, même adresse) avec une version plus récente.

    Acrobat Reader 7.0.8 me le charge sans problèmes. Aucun message d’erreur.

    La ligne 1041 ? Elle me donne juste : //

    Et puis je ne vois pas d’où vient ce f.value. Il ne devrais plus exister.

    Au départ, la première mouture de mon document comprenait deux champs date mis à jour avec ce script :

    var f = this.getField(“datevalidationglobale”);

    f.value = util.printd(“dd/mm/yyyy”, new Date());

    Mais j’ai virer ces champs et effacer le script.

    Tenez, voilà tous les scripts de mon document :

    //



    //
    Ne pas modifier les balises XML

    //

    //

    //copienomeleve

    //

    /*********** appartient à : Document-Level:copienomeleve ***********/

    var v=this.getField(“nomeleve”).valueAsString;

    var u=this.getField(“nomeleveauto”);

    u.value = “[ ” + v + ” ]”;

    //

    //

    //

    //Le document sera fermé.

    //

    /*********** appartient à : Document-Actions:Le document sera fermé. ***********/

    var v1=this.getField(“nomeleve”).valueAsString;

    var u1=this.getField(“nomeleveauto.0”);

    u1.value = “[ ” + v1 + ” ]”;

    v=this.getField(“notefinale11”).valueAsString;

    var u=this.getField(“OK11”);

    u.value = v;

    v=this.getField(“notefinale12”).valueAsString;

    var u=this.getField(“OK12”);

    u.value = v;

    v=this.getField(“notefinale13”).valueAsString;

    var u=this.getField(“OK13”);

    u.value = v;

    v=this.getField(“notefinale14”).valueAsString;

    var u=this.getField(“OK14”);

    u.value = v;

    v=this.getField(“notefinale21”).valueAsString;

    var u=this.getField(“OK21”);

    u.value = v;

    v=this.getField(“notefinale22”).valueAsString;

    var u=this.getField(“OK22”);

    u.value = v;

    v=this.getField(“notefinale23”).valueAsString;

    var u=this.getField(“OK23”);

    u.value = v;

    v=this.getField(“notefinale24”).valueAsString;

    var u=this.getField(“OK24”);

    u.value = v;

    v=this.getField(“notefinale31”).valueAsString;

    var u=this.getField(“OK31”);

    u.value = v;

    v=this.getField(“notefinale32”).valueAsString;

    var u=this.getField(“OK32”);

    u.value = v;

    v=this.getField(“notefinale33”).valueAsString;

    var u=this.getField(“OK33”);

    u.value = v;

    v=this.getField(“notefinale34”).valueAsString;

    var u=this.getField(“OK34”);

    u.value = v;

    v=this.getField(“notefinale35”).valueAsString;

    var u=this.getField(“OK35”);

    u.value = v;

    v=this.getField(“notefinale36”).valueAsString;

    var u=this.getField(“OK36”);

    u.value = v;

    v=this.getField(“notefinale41”).valueAsString;

    var u=this.getField(“OK41”);

    u.value = v;

    v=this.getField(“notefinale42”).valueAsString;

    var u=this.getField(“OK42”);

    u.value = v;

    v=this.getField(“notefinale43”).valueAsString;

    var u=this.getField(“OK43”);

    u.value = v;

    v=this.getField(“notefinale44”).valueAsString;

    var u=this.getField(“OK44”);

    u.value = v;

    v=this.getField(“notefinale51”).valueAsString;

    var u=this.getField(“OK51”);

    u.value = v;

    v=this.getField(“notefinale52”).valueAsString;

    var u=this.getField(“OK52”);

    u.value = v;

    v=this.getField(“notefinale53”).valueAsString;

    var u=this.getField(“OK53”);

    u.value = v;

    v=this.getField(“notefinale54”).valueAsString;

    var u=this.getField(“OK54”);

    u.value = v;

    v=this.getField(“noteb2i”).valueAsString;

    var u=this.getField(“b2i”);

    u.value = v;

    //

    //

    //

    //Le document sera enregistré.

    //

    /*********** appartient à : Document-Actions:Le document sera enregistré. ***********/

    var v1=this.getField(“nomeleve”).valueAsString;

    var u1=this.getField(“nomeleveauto.0”);

    u1.value = “[ ” + v1 + ” ]”;

    v=this.getField(“notefinale11”).valueAsString;

    var u=this.getField(“OK11”);

    u.value = v;

    v=this.getField(“notefinale12”).valueAsString;

    var u=this.getField(“OK12”);

    u.value = v;

    v=this.getField(“notefinale13”).valueAsString;

    var u=this.getField(“OK13”);

    u.value = v;

    v=this.getField(“notefinale14”).valueAsString;

    var u=this.getField(“OK14”);

    u.value = v;

    v=this.getField(“notefinale21”).valueAsString;

    var u=this.getField(“OK21”);

    u.value = v;

    v=this.getField(“notefinale22”).valueAsString;

    var u=this.getField(“OK22”);

    u.value = v;

    v=this.getField(“notefinale23”).valueAsString;

    var u=this.getField(“OK23”);

    u.value = v;

    v=this.getField(“notefinale24”).valueAsString;

    var u=this.getField(“OK24”);

    u.value = v;

    v=this.getField(“notefinale31”).valueAsString;

    var u=this.getField(“OK31”);

    u.value = v;

    v=this.getField(“notefinale32”).valueAsString;

    var u=this.getField(“OK32”);

    u.value = v;

    v=this.getField(“notefinale33”).valueAsString;

    var u=this.getField(“OK33”);

    u.value = v;

    v=this.getField(“notefinale34”).valueAsString;

    var u=this.getField(“OK34”);

    u.value = v;

    v=this.getField(“notefinale35”).valueAsString;

    var u=this.getField(“OK35”);

    u.value = v;

    v=this.getField(“notefinale36”).valueAsString;

    var u=this.getField(“OK36”);

    u.value = v;

    v=this.getField(“notefinale41”).valueAsString;

    var u=this.getField(“OK41”);

    u.value = v;

    v=this.getField(“notefinale42”).valueAsString;

    var u=this.getField(“OK42”);

    u.value = v;

    v=this.getField(“notefinale43”).valueAsString;

    var u=this.getField(“OK43”);

    u.value = v;

    v=this.getField(“notefinale44”).valueAsString;

    var u=this.getField(“OK44”);

    u.value = v;

    v=this.getField(“notefinale51”).valueAsString;

    var u=this.getField(“OK51”);

    u.value = v;

    v=this.getField(“notefinale52”).valueAsString;

    var u=this.getField(“OK52”);

    u.value = v;

    v=this.getField(“notefinale53”).valueAsString;

    var u=this.getField(“OK53”);

    u.value = v;

    v=this.getField(“notefinale54”).valueAsString;

    var u=this.getField(“OK54”);

    u.value = v;

    v=this.getField(“noteb2i”).valueAsString;

    var u=this.getField(“b2i”);

    u.value = v;

    //

    //

    //

    //Le document a été enregistré.

    //

    /*********** appartient à : Document-Actions:Le document a été enregistré. ***********/

    var v1=this.getField(“nomeleve”).valueAsString;

    var u1=this.getField(“nomeleveauto.0”);

    u1.value = “[ ” + v1 + ” ]”;

    v=this.getField(“notefinale11”).valueAsString;

    var u=this.getField(“OK11”);

    u.value = v;

    v=this.getField(“notefinale12”).valueAsString;

    var u=this.getField(“OK12”);

    u.value = v;

    v=this.getField(“notefinale13”).valueAsString;

    var u=this.getField(“OK13”);

    u.value = v;

    v=this.getField(“notefinale14”).valueAsString;

    var u=this.getField(“OK14”);

    u.value = v;

    v=this.getField(“notefinale21”).valueAsString;

    var u=this.getField(“OK21”);

    u.value = v;

    v=this.getField(“notefinale22”).valueAsString;

    var u=this.getField(“OK22”);

    u.value = v;

    v=this.getField(“notefinale23”).valueAsString;

    var u=this.getField(“OK23”);

    u.value = v;

    v=this.getField(“notefinale24”).valueAsString;

    var u=this.getField(“OK24”);

    u.value = v;

    v=this.getField(“notefinale31”).valueAsString;

    var u=this.getField(“OK31”);

    u.value = v;

    v=this.getField(“notefinale32”).valueAsString;

    var u=this.getField(“OK32”);

    u.value = v;

    v=this.getField(“notefinale33”).valueAsString;

    var u=this.getField(“OK33”);

    u.value = v;

    v=this.getField(“notefinale34”).valueAsString;

    var u=this.getField(“OK34”);

    u.value = v;

    v=this.getField(“notefinale35”).valueAsString;

    var u=this.getField(“OK35”);

    u.value = v;

    v=this.getField(“notefinale36”).valueAsString;

    var u=this.getField(“OK36”);

    u.value = v;

    v=this.getField(“notefinale41”).valueAsString;

    var u=this.getField(“OK41”);

    u.value = v;

    v=this.getField(“notefinale42”).valueAsString;

    var u=this.getField(“OK42”);

    u.value = v;

    v=this.getField(“notefinale43”).valueAsString;

    var u=this.getField(“OK43”);

    u.value = v;

    v=this.getField(“notefinale44”).valueAsString;

    var u=this.getField(“OK44”);

    u.value = v;

    v=this.getField(“notefinale51”).valueAsString;

    var u=this.getField(“OK51”);

    u.value = v;

    v=this.getField(“notefinale52”).valueAsString;

    var u=this.getField(“OK52”);

    u.value = v;

    v=this.getField(“notefinale53”).valueAsString;

    var u=this.getField(“OK53”);

    u.value = v;

    v=this.getField(“notefinale54”).valueAsString;

    var u=this.getField(“OK54”);

    u.value = v;

    v=this.getField(“noteb2i”).valueAsString;

    var u=this.getField(“b2i”);

    u.value = v;

    //

    //

    //

    //Le document sera imprimé.

    //

    /*********** appartient à : Document-Actions:Le document sera imprimé. ***********/

    var v1=this.getField(“nomeleve”).valueAsString;

    var u1=this.getField(“nomeleveauto.0”);

    u1.value = “[ ” + v1 + ” ]”;

    v=this.getField(“notefinale11”).valueAsString;

    var u=this.getField(“OK11”);

    u.value = v;

    v=this.getField(“notefinale12”).valueAsString;

    var u=this.getField(“OK12”);

    u.value = v;

    v=this.getField(“notefinale13”).valueAsString;

    var u=this.getField(“OK13”);

    u.value = v;

    v=this.getField(“notefinale14”).valueAsString;

    var u=this.getField(“OK14”);

    u.value = v;

    v=this.getField(“notefinale21”).valueAsString;

    var u=this.getField(“OK21”);

    u.value = v;

    v=this.getField(“notefinale22”).valueAsString;

    var u=this.getField(“OK22”);

    u.value = v;

    v=this.getField(“notefinale23”).valueAsString;

    var u=this.getField(“OK23”);

    u.value = v;

    v=this.getField(“notefinale24”).valueAsString;

    var u=this.getField(“OK24”);

    u.value = v;

    v=this.getField(“notefinale31”).valueAsString;

    var u=this.getField(“OK31”);

    u.value = v;

    v=this.getField(“notefinale32”).valueAsString;

    var u=this.getField(“OK32”);

    u.value = v;

    v=this.getField(“notefinale33”).valueAsString;

    var u=this.getField(“OK33”);

    u.value = v;

    v=this.getField(“notefinale34”).valueAsString;

    var u=this.getField(“OK34”);

    u.value = v;

    v=this.getField(“notefinale35”).valueAsString;

    var u=this.getField(“OK35”);

    u.value = v;

    v=this.getField(“notefinale36”).valueAsString;

    var u=this.getField(“OK36”);

    u.value = v;

    v=this.getField(“notefinale41”).valueAsString;

    var u=this.getField(“OK41”);

    u.value = v;

    v=this.getField(“notefinale42”).valueAsString;

    var u=this.getField(“OK42”);

    u.value = v;

    v=this.getField(“notefinale43”).valueAsString;

    var u=this.getField(“OK43”);

    u.value = v;

    v=this.getField(“notefinale44”).valueAsString;

    var u=this.getField(“OK44”);

    u.value = v;

    v=this.getField(“notefinale51”).valueAsString;

    var u=this.getField(“OK51”);

    u.value = v;

    v=this.getField(“notefinale52”).valueAsString;

    var u=this.getField(“OK52”);

    u.value = v;

    v=this.getField(“notefinale53”).valueAsString;

    var u=this.getField(“OK53”);

    u.value = v;

    v=this.getField(“notefinale54”).valueAsString;

    var u=this.getField(“OK54”);

    u.value = v;

    v=this.getField(“noteb2i”).valueAsString;

    var u=this.getField(“b2i”);

    u.value = v;

    //

    //

    //

    //Le document a été imprimé.

    //

    /*********** appartient à : Document-Actions:Le document a été imprimé. ***********/

    var v1=this.getField(“nomeleve”).valueAsString;

    var u1=this.getField(“nomeleveauto.0”);

    u1.value = “[ ” + v1 + ” ]”;

    v=this.getField(“notefinale11”).valueAsString;

    var u=this.getField(“OK11”);

    u.value = v;

    v=this.getField(“notefinale12”).valueAsString;

    var u=this.getField(“OK12”);

    u.value = v;

    v=this.getField(“notefinale13”).valueAsString;

    var u=this.getField(“OK13”);

    u.value = v;

    v=this.getField(“notefinale14”).valueAsString;

    var u=this.getField(“OK14”);

    u.value = v;

    v=this.getField(“notefinale21”).valueAsString;

    var u=this.getField(“OK21”);

    u.value = v;

    v=this.getField(“notefinale22”).valueAsString;

    var u=this.getField(“OK22”);

    u.value = v;

    v=this.getField(“notefinale23”).valueAsString;

    var u=this.getField(“OK23”);

    u.value = v;

    v=this.getField(“notefinale24”).valueAsString;

    var u=this.getField(“OK24”);

    u.value = v;

    v=this.getField(“notefinale31”).valueAsString;

    var u=this.getField(“OK31”);

    u.value = v;

    v=this.getField(“notefinale32”).valueAsString;

    var u=this.getField(“OK32”);

    u.value = v;

    v=this.getField(“notefinale33”).valueAsString;

    var u=this.getField(“OK33”);

    u.value = v;

    v=this.getField(“notefinale34”).valueAsString;

    var u=this.getField(“OK34”);

    u.value = v;

    v=this.getField(“notefinale35”).valueAsString;

    var u=this.getField(“OK35”);

    u.value = v;

    v=this.getField(“notefinale36”).valueAsString;

    var u=this.getField(“OK36”);

    u.value = v;

    v=this.getField(“notefinale41”).valueAsString;

    var u=this.getField(“OK41”);

    u.value = v;

    v=this.getField(“notefinale42”).valueAsString;

    var u=this.getField(“OK42”);

    u.value = v;

    v=this.getField(“notefinale43”).valueAsString;

    var u=this.getField(“OK43”);

    u.value = v;

    v=this.getField(“notefinale44”).valueAsString;

    var u=this.getField(“OK44”);

    u.value = v;

    v=this.getField(“notefinale51”).valueAsString;

    var u=this.getField(“OK51”);

    u.value = v;

    v=this.getField(“notefinale52”).valueAsString;

    var u=this.getField(“OK52”);

    u.value = v;

    v=this.getField(“notefinale53”).valueAsString;

    var u=this.getField(“OK53”);

    u.value = v;

    v=this.getField(“notefinale54”).valueAsString;

    var u=this.getField(“OK54”);

    u.value = v;

    v=this.getField(“noteb2i”).valueAsString;

    var u=this.getField(“b2i”);

    u.value = v;

    //

    //

    //

    //Correction:Annot1:MouseUp:Action1

    //

    /*********** appartient à : AcroForm:Correction:Annot1:MouseUp:Action1 ***********/

    ////////////////////////////////////////////////////////////////////////////

    // boite de dialogue

    var cResponse = app.response({

    cQuestion: “Entrez votre mot de passe”, cTitle: “Mot de passe”, });

    // test de la reponse

    {

    if ( cResponse == null) // si annulation

    {

    app.alert(“Vous devez entrer votre mot de passe pour utiliser ce document.”);

    } // envoi alerte

    else if ( cResponse == “temp”) // sinon si reponse est 000000

    {

    this.getField(“validationenseignant”).readonly = false; // deverrouille les champs PIERRE

    app.beep(); // bip de confirmation

    }

    else // sinon si autre reponse (mot de passe erroné)

    {

    app.alert(“Ce mot de passe est invalide !”,3);

    } // envoi alerte

    }

    //

    //

    //

    //OKe11:Calculate

    //

    /*********** appartient à : AcroForm:OKe11:Calculate ***********/

    var z = “Compétence acquise”;

    var y = this.getField(“OKe11”);

    var x = this.getField(“notefinaleenseignant11”).valueAsString;

    if ( x == 1)

    {

    y.value = z;

    }

    else

    {

    y.value = “”;

    }

    //

    //

    //

    //OKe12:Calculate

    //

    /*********** appartient à : AcroForm:OKe12:Calculate ***********/

    var z1 = “Compétence acquise”;

    var y1 = this.getField(“OKe12”);

    var x1 = this.getField(“notefinaleenseignant12”).valueAsString;

    if ( x1 == 1)

    {

    y1.value = z1;

    }

    else

    {

    y1.value = “”;

    }

    //

    //

    //

    //OKe13:Calculate

    //

    /*********** appartient à : AcroForm:OKe13:Calculate ***********/

    var z = “Compétence acquise”;

    var y = this.getField(“OKe13”);

    var x = this.getField(“notefinaleenseignant13”).valueAsString;

    if ( x == 1)

    {

    y.value = z;

    }

    else

    {

    y.value = “”;

    }

    //

    //

    //

    //OKe14:Calculate

    //

    /*********** appartient à : AcroForm:OKe14:Calculate ***********/

    var z = “Compétence acquise”;

    var y = this.getField(“OKe14”);

    var x = this.getField(“notefinaleenseignant14”).valueAsString;

    if ( x == 1)

    {

    y.value = z;

    }

    else

    {

    y.value = “”;

    }

    //

    //

    //

    //OKe21:Calculate

    //

    /*********** appartient à : AcroForm:OKe21:Calculate ***********/

    var z21 = “Compétence acquise”;

    var y21 = this.getField(“OKe21”);

    var x21 = this.getField(“notefinaleenseignant21”).valueAsString;

    if ( x21 == 1)

    {

    y21.value = z21;

    }

    else

    {

    y21.value = “”;

    }

    //

    //

    //

    //OKe22:Calculate

    //

    /*********** appartient à : AcroForm:OKe22:Calculate ***********/

    var z22 = “Compétence acquise”;

    var y22 = this.getField(“OKe22”);

    var x22 = this.getField(“notefinaleenseignant22”).valueAsString;

    if ( x22 == 1)

    {

    y22.value = z22;

    }

    else

    {

    y22.value = “”;

    }

    //

    //

    //

    //OKe23:Calculate

    //

    /*********** appartient à : AcroForm:OKe23:Calculate ***********/

    var z23 = “Compétence acquise”;

    var y23 = this.getField(“OKe23”);

    var x23 = this.getField(“notefinaleenseignant23”).valueAsString;

    if ( x23 == 1)

    {

    y23.value = z23;

    }

    else

    {

    y23.value = “”;

    }

    //

    //

    //

    //OKe24:Calculate

    //

    /*********** appartient à : AcroForm:OKe24:Calculate ***********/

    var z24 = “Compétence acquise”;

    var y24 = this.getField(“OKe24”);

    var x24 = this.getField(“notefinaleenseignant24”).valueAsString;

    if ( x24 == 1)

    {

    y24.value = z24;

    }

    else

    {

    y24.value = “”;

    }

    //

    //

    //

    //OKe31:Calculate

    //

    /*********** appartient à : AcroForm:OKe31:Calculate ***********/

    var z31 = “Compétence acquise”;

    var y31 = this.getField(“OKe31”);

    var x31 = this.getField(“notefinaleenseignant31”).valueAsString;

    if ( x31 == 1)

    {

    y31.value = z31;

    }

    else

    {

    y31.value = “”;

    }

    //

    //

    //

    //OKe32:Calculate

    //

    /*********** appartient à : AcroForm:OKe32:Calculate ***********/

    var z32 = “Compétence acquise”;

    var y32 = this.getField(“OKe32”);

    var x32 = this.getField(“notefinaleenseignant32”).valueAsString;

    if ( x32 == 1)

    {

    y32.value = z32;

    }

    else

    {

    y32.value = “”;

    }

    //

    //

    //

    //OKe33:Calculate

    //

    /*********** appartient à : AcroForm:OKe33:Calculate ***********/

    var z33 = “Compétence acquise”;

    var y33 = this.getField(“OKe33”);

    var x33 = this.getField(“notefinaleenseignant33”).valueAsString;

    if ( x33 == 1)

    {

    y33.value = z33;

    }

    else

    {

    y33.value = “”;

    }

    //

    //

    //

    //OKe34:Calculate

    //

    /*********** appartient à : AcroForm:OKe34:Calculate ***********/

    var z34 = “Compétence acquise”;

    var y34 = this.getField(“OKe34”);

    var x34 = this.getField(“notefinaleenseignant34”).valueAsString;

    if ( x34 == 1)

    {

    y34.value = z34;

    }

    else

    {

    y34.value = “”;

    }

    //

    //

    //

    //OKe35:Calculate

    //

    /*********** appartient à : AcroForm:OKe35:Calculate ***********/

    var z35 = “Compétence acquise”;

    var y35 = this.getField(“OKe35”);

    var x35 = this.getField(“notefinaleenseignant35”).valueAsString;

    if ( x35 == 1)

    {

    y35.value = z35;

    }

    else

    {

    y35.value = “”;

    }

    //

    //

    //

    //OKe36:Calculate

    //

    /*********** appartient à : AcroForm:OKe36:Calculate ***********/

    var z36 = “Compétence acquise”;

    var y36 = this.getField(“OKe36”);

    var x36 = this.getField(“notefinaleenseignant36”).valueAsString;

    if ( x36 == 1)

    {

    y36.value = z36;

    }

    else

    {

    y36.value = “”;

    }

    //

    //

    //

    //OKe41:Calculate

    //

    /*********** appartient à : AcroForm:OKe41:Calculate ***********/

    var z41 = “Compétence acquise”;

    var y41 = this.getField(“OKe41”);

    var x41 = this.getField(“notefinaleenseignant41”).valueAsString;

    if ( x41 == 1)

    {

    y41.value = z41;

    }

    else

    {

    y41.value = “”;

    }

    //

    //

    //

    //OKe42:Calculate

    //

    /*********** appartient à : AcroForm:OKe42:Calculate ***********/

    var z42 = “Compétence acquise”;

    var y42 = this.getField(“OKe42”);

    var x42 = this.getField(“notefinaleenseignant42”).valueAsString;

    if ( x42 == 1)

    {

    y42.value = z42;

    }

    else

    {

    y42.value = “”;

    }

    //

    //

    //

    //OKe43:Calculate

    //

    /*********** appartient à : AcroForm:OKe43:Calculate ***********/

    var z43 = “Compétence acquise”;

    var y43 = this.getField(“OKe43”);

    var x43 = this.getField(“notefinaleenseignant43”).valueAsString;

    if ( x43 == 1)

    {

    y43.value = z43;

    }

    else

    {

    y43.value = “”;

    }

    //

    //

    //

    //OKe44:Calculate

    //

    /*********** appartient à : AcroForm:OKe44:Calculate ***********/

    var z44 = “Compétence acquise”;

    var y44 = this.getField(“OKe44”);

    var x44 = this.getField(“notefinaleenseignant44”).valueAsString;

    if ( x44 == 1)

    {

    y44.value = z44;

    }

    else

    {

    y44.value = “”;

    }

    //

    //

    //

    //OKe51:Calculate

    //

    /*********** appartient à : AcroForm:OKe51:Calculate ***********/

    var z51 = “Compétence acquise”;

    var y51 = this.getField(“OKe51”);

    var x51 = this.getField(“notefinaleenseignant51”).valueAsString;

    if ( x51 == 1)

    {

    y51.value = z51;

    }

    else

    {

    y51.value = “”;

    }

    //

    //

    //

    //OKe52:Calculate

    //

    /*********** appartient à : AcroForm:OKe52:Calculate ***********/

    var z52 = “Compétence acquise”;

    var y52 = this.getField(“OKe52”);

    var x52 = this.getField(“notefinaleenseignant52”).valueAsString;

    if ( x52 == 1)

    {

    y52.value = z52;

    }

    else

    {

    y52.value = “”;

    }

    //

    //

    //

    //OKe53:Calculate

    //

    /*********** appartient à : AcroForm:OKe53:Calculate ***********/

    var z53 = “Compétence acquise”;

    var y53 = this.getField(“OKe53”);

    var x53 = this.getField(“notefinaleenseignant53”).valueAsString;

    if ( x53 == 1)

    {

    y53.value = z53;

    }

    else

    {

    y53.value = “”;

    }

    //

    //

    //

    //OKe54:Calculate

    //

    /*********** appartient à : AcroForm:OKe54:Calculate ***********/

    var z54 = “Compétence acquise”;

    var y54 = this.getField(“OKe54”);

    var x54 = this.getField(“notefinaleenseignant54”).valueAsString;

    if ( x54 == 1)

    {

    y54.value = z54;

    }

    else

    {

    y54.value = “”;

    }

    //

    //

    //

    //date11:Calculate

    //

    /*********** appartient à : AcroForm:date11:Calculate ***********/

    var m11 = this.getField(“date11”);

    var n11 = this.getField(“OKe11”).valueAsString;

    if ( n11 == “”)

    {

    m11.value = “”;

    }

    else

    {

    m11.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date12:Calculate

    //

    /*********** appartient à : AcroForm:date12:Calculate ***********/

    var m12 = this.getField(“date12”);

    var n12 = this.getField(“OKe12”).valueAsString;

    if ( n12 == “”)

    {

    m12.value = “”;

    }

    else

    {

    m12.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date13:Calculate

    //

    /*********** appartient à : AcroForm:date13:Calculate ***********/

    var m13 = this.getField(“date13”);

    var n13 = this.getField(“OKe13”).valueAsString;

    if ( n13 == “”)

    {

    m13.value = “”;

    }

    else

    {

    m13.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date14:Calculate

    //

    /*********** appartient à : AcroForm:date14:Calculate ***********/

    var m14 = this.getField(“date14”);

    var n14 = this.getField(“OKe14”).valueAsString;

    if ( n14 == “”)

    {

    m14.value = “”;

    }

    else

    {

    m14.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date21:Calculate

    //

    /*********** appartient à : AcroForm:date21:Calculate ***********/

    var m21 = this.getField(“date21”);

    var n21 = this.getField(“OKe21”).valueAsString;

    if ( n21 == “”)

    {

    m21.value = “”;

    }

    else

    {

    m21.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date22:Calculate

    //

    /*********** appartient à : AcroForm:date22:Calculate ***********/

    var m22 = this.getField(“date22”);

    var n22 = this.getField(“OKe22”).valueAsString;

    if ( n22 == “”)

    {

    m22.value = “”;

    }

    else

    {

    m22.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date23:Calculate

    //

    /*********** appartient à : AcroForm:date23:Calculate ***********/

    var m23 = this.getField(“date23”);

    var n23 = this.getField(“OKe23”).valueAsString;

    if ( n23 == “”)

    {

    m23.value = “”;

    }

    else

    {

    m23.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date24:Calculate

    //

    /*********** appartient à : AcroForm:date24:Calculate ***********/

    var m24 = this.getField(“date24”);

    var n24 = this.getField(“OKe24”).valueAsString;

    if ( n24 == “”)

    {

    m24.value = “”;

    }

    else

    {

    m24.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date31:Calculate

    //

    /*********** appartient à : AcroForm:date31:Calculate ***********/

    var m31 = this.getField(“date31”);

    var n31 = this.getField(“OKe31”).valueAsString;

    if ( n31 == “”)

    {

    m31.value = “”;

    }

    else

    {

    m31.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date32:Calculate

    //

    /*********** appartient à : AcroForm:date32:Calculate ***********/

    var m32 = this.getField(“date32”);

    var n32 = this.getField(“OKe32”).valueAsString;

    if ( n32 == “”)

    {

    m32.value = “”;

    }

    else

    {

    m32.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date33:Calculate

    //

    /*********** appartient à : AcroForm:date33:Calculate ***********/

    var m33 = this.getField(“date33”);

    var n33 = this.getField(“OKe33”).valueAsString;

    if ( n33 == “”)

    {

    m33.value = “”;

    }

    else

    {

    m33.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date34:Calculate

    //

    /*********** appartient à : AcroForm:date34:Calculate ***********/

    var m34 = this.getField(“date34”);

    var n34 = this.getField(“OKe34”).valueAsString;

    if ( n34 == “”)

    {

    m34.value = “”;

    }

    else

    {

    m34.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date35:Calculate

    //

    /*********** appartient à : AcroForm:date35:Calculate ***********/

    var m35 = this.getField(“date35”);

    var n35 = this.getField(“OKe35”).valueAsString;

    if ( n35 == “”)

    {

    m35.value = “”;

    }

    else

    {

    m35.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date36:Calculate

    //

    /*********** appartient à : AcroForm:date36:Calculate ***********/

    var m36 = this.getField(“date36”);

    var n36 = this.getField(“OKe36”).valueAsString;

    if ( n36 == “”)

    {

    m36.value = “”;

    }

    else

    {

    m36.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date41:Calculate

    //

    /*********** appartient à : AcroForm:date41:Calculate ***********/

    var m41 = this.getField(“date41”);

    var n41 = this.getField(“OKe41”).valueAsString;

    if ( n41 == “”)

    {

    m41.value = “”;

    }

    else

    {

    m41.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date42:Calculate

    //

    /*********** appartient à : AcroForm:date42:Calculate ***********/

    var m42 = this.getField(“date42”);

    var n42 = this.getField(“OKe42”).valueAsString;

    if ( n42 == “”)

    {

    m42.value = “”;

    }

    else

    {

    m42.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date43:Calculate

    //

    /*********** appartient à : AcroForm:date43:Calculate ***********/

    var m43 = this.getField(“date43”);

    var n43 = this.getField(“OKe43”).valueAsString;

    if ( n43 == “”)

    {

    m43.value = “”;

    }

    else

    {

    m43.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date44:Calculate

    //

    /*********** appartient à : AcroForm:date44:Calculate ***********/

    var m44 = this.getField(“date44”);

    var n44 = this.getField(“OKe44”).valueAsString;

    if ( n44 == “”)

    {

    m44.value = “”;

    }

    else

    {

    m44.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date51:Calculate

    //

    /*********** appartient à : AcroForm:date51:Calculate ***********/

    var m51 = this.getField(“date51”);

    var n51 = this.getField(“OKe51”).valueAsString;

    if ( n51 == “”)

    {

    m51.value = “”;

    }

    else

    {

    m51.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date52:Calculate

    //

    /*********** appartient à : AcroForm:date52:Calculate ***********/

    var m52 = this.getField(“date52”);

    var n52 = this.getField(“OKe52”).valueAsString;

    if ( n52 == “”)

    {

    m52.value = “”;

    }

    else

    {

    m52.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date53:Calculate

    //

    /*********** appartient à : AcroForm:date53:Calculate ***********/

    var m53 = this.getField(“date53”);

    var n53 = this.getField(“OKe53”).valueAsString;

    if ( n53 == “”)

    {

    m53.value = “”;

    }

    else

    {

    m53.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //date54:Calculate

    //

    /*********** appartient à : AcroForm:date54:Calculate ***********/

    var m54 = this.getField(“date54”);

    var n54 = this.getField(“OKe54”).valueAsString;

    if ( n54 == “”)

    {

    m54.value = “”;

    }

    else

    {

    m54.value = util.printd(“dd/mm/yyyy”, new Date());

    }

    //

    //

    //

    //noteb2i:Calculate

    //

    /*********** appartient à : AcroForm:noteb2i:Calculate ***********/

    var a = this.getField(“cumulenseignantfinal”);

    event.value = Math.round(a.value / 36);

    //

    //

    //

    //notefinale11:Calculate

    //

    /*********** appartient à : AcroForm:notefinale11:Calculate ***********/

    var a = this.getField(“calcultotal11”);

    event.value = Math.round(a.value / 9);

    //

    //

    //

    //notefinale12:Calculate

    //

    /*********** appartient à : AcroForm:notefinale12:Calculate ***********/

    var a = this.getField(“calcultotal12”);

    event.value = Math.round(a.value / 5);

    //

    //

    //

    //notefinale13:Calculate

    //

    /*********** appartient à : AcroForm:notefinale13:Calculate ***********/

    var a = this.getField(“calcultotal13”);

    event.value = Math.round(a.value / 16);

    //

    //

    //

    //notefinale14:Calculate

    //

    /*********** appartient à : AcroForm:notefinale14:Calculate ***********/

    var a = this.getField(“calcultotal14”);

    event.value = Math.round(a.value / 20);

    //

    //

    //

    //notefinale21:Calculate

    //

    /*********** appartient à : AcroForm:notefinale21:Calculate ***********/

    var a = this.getField(“calcultotal21”);

    event.value = Math.round(a.value / 1);

    //

    //

    //

    //notefinale22:Calculate

    //

    /*********** appartient à : AcroForm:notefinale22:Calculate ***********/

    var a = this.getField(“calcultotal22”);

    event.value = Math.round(a.value / 3);

    //

    //

    //

    //notefinale23:Calculate

    //

    /*********** appartient à : AcroForm:notefinale23:Calculate ***********/

    var a = this.getField(“calcultotal23”);

    event.value = Math.round(a.value / 4);

    //

    //

    //

    //notefinale24:Calculate

    //

    /*********** appartient à : AcroForm:notefinale24:Calculate ***********/

    var a = this.getField(“calcultotal24”);

    event.value = Math.round(a.value / 6);

    //

    //

    //

    //notefinale31:Calculate

    //

    /*********** appartient à : AcroForm:notefinale31:Calculate ***********/

    var a = this.getField(“calcultotal31”);

    event.value = Math.round(a.value / 11);

    //

    //

    //

    //notefinale32:Calculate

    //

    /*********** appartient à : AcroForm:notefinale32:Calculate ***********/

    var a = this.getField(“calcultotal32”);

    event.value = Math.round(a.value / 11);

    //

    //

    //

    //notefinale33:Calculate

    //

    /*********** appartient à : AcroForm:notefinale33:Calculate ***********/

    var a = this.getField(“calcultotal33”);

    event.value = Math.round(a.value / 7);

    //

    //

    //

    //notefinale34:Calculate

    //

    /*********** appartient à : AcroForm:notefinale34:Calculate ***********/

    var a = this.getField(“calcultotal34”);

    event.value = Math.round(a.value / 3);

    //

    //

    //

    //notefinale35:Calculate

    //

    /*********** appartient à : AcroForm:notefinale35:Calculate ***********/

    var a = this.getField(“calcultotal35”);

    event.value = Math.round(a.value / 2);

    //

    //

    //

    //notefinale36:Calculate

    //

    /*********** appartient à : AcroForm:notefinale36:Calculate ***********/

    var a = this.getField(“calcultotal36”);

    event.value = Math.round(a.value / 7);

    //

    //

    //

    //notefinale41:Calculate

    //

    /*********** appartient à : AcroForm:notefinale41:Calculate ***********/

    var a = this.getField(“calcultotal41”);

    event.value = Math.round(a.value / 7);

    //

    //

    //

    //notefinale42:Calculate

    //

    /*********** appartient à : AcroForm:notefinale42:Calculate ***********/

    var a = this.getField(“calcultotal42”);

    event.value = Math.round(a.value / 3);

    //

    //

    //

    //notefinale43:Calculate

    //

    /*********** appartient à : AcroForm:notefinale43:Calculate ***********/

    var a = this.getField(“calcultotal43”);

    event.value = Math.round(a.value / 5);

    //

    //

    //

    //notefinale44:Calculate

    //

    /*********** appartient à : AcroForm:notefinale44:Calculate ***********/

    var a = this.getField(“calcultotal44”);

    event.value = Math.round(a.value / 3);

    //

    //

    //

    //notefinale51:Calculate

    //

    /*********** appartient à : AcroForm:notefinale51:Calculate ***********/

    var a = this.getField(“calcultotal51”);

    event.value = Math.round(a.value / 9);

    //

    //

    //

    //notefinale52:Calculate

    //

    /*********** appartient à : AcroForm:notefinale52:Calculate ***********/

    var a = this.getField(“calcultotal52”);

    event.value = Math.round(a.value / 5);

    //

    //

    //

    //notefinale53:Calculate

    //

    /*********** appartient à : AcroForm:notefinale53:Calculate ***********/

    var a = this.getField(“calcultotal53”);

    event.value = Math.round(a.value / 1);

    //

    //

    //

    //notefinale54:Calculate

    //

    /*********** appartient à : AcroForm:notefinale54:Calculate ***********/

    var a = this.getField(“calcultotal54”);

    event.value = Math.round(a.value / 1);

    //

    //

    //

    //notefinaleenseignant11:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant11:Calculate ***********/

    var a = this.getField(“calculenseignant11”);

    event.value = Math.round(a.value / 9);

    //

    //

    //

    //notefinaleenseignant12:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant12:Calculate ***********/

    var b = this.getField(“calculenseignant12”);

    event.value = Math.round(b.value / 5);

    //

    //

    //

    //notefinaleenseignant13:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant13:Calculate ***********/

    var a = this.getField(“calculenseignant13”);

    event.value = Math.round(a.value / 16);

    //

    //

    //

    //notefinaleenseignant14:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant14:Calculate ***********/

    var a = this.getField(“calculenseignant14”);

    event.value = Math.round(a.value / 20);

    //

    //

    //

    //notefinaleenseignant21:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant21:Calculate ***********/

    var a = this.getField(“calculenseignant21”);

    event.value = Math.round(a.value / 1);

    //

    //

    //

    //notefinaleenseignant22:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant22:Calculate ***********/

    var a = this.getField(“calculenseignant22”);

    event.value = Math.round(a.value / 3);

    //

    //

    //

    //notefinaleenseignant23:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant23:Calculate ***********/

    var a = this.getField(“calculenseignant23”);

    event.value = Math.round(a.value / 4);

    //

    //

    //

    //notefinaleenseignant24:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant24:Calculate ***********/

    var a = this.getField(“calculenseignant24”);

    event.value = Math.round(a.value / 6);

    //

    //

    //

    //notefinaleenseignant31:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant31:Calculate ***********/

    var a = this.getField(“calculenseignant31”);

    event.value = Math.round(a.value / 11);

    //

    //

    //

    //notefinaleenseignant32:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant32:Calculate ***********/

    var a = this.getField(“calculenseignant32”);

    event.value = Math.round(a.value / 11);

    //

    //

    //

    //notefinaleenseignant33:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant33:Calculate ***********/

    var a = this.getField(“calculenseignant33”);

    event.value = Math.round(a.value / 7);

    //

    //

    //

    //notefinaleenseignant34:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant34:Calculate ***********/

    var a = this.getField(“calculenseignant34”);

    event.value = Math.round(a.value / 3);

    //

    //

    //

    //notefinaleenseignant35:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant35:Calculate ***********/

    var a = this.getField(“calculenseignant35”);

    event.value = Math.round(a.value / 1);

    //

    //

    //

    //notefinaleenseignant36:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant36:Calculate ***********/

    var a = this.getField(“calculenseignant36”);

    event.value = Math.round(a.value / 7);

    //

    //

    //

    //notefinaleenseignant41:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant41:Calculate ***********/

    var a = this.getField(“calculenseignant41”);

    event.value = Math.round(a.value / 7);

    //

    //

    //

    //notefinaleenseignant42:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant42:Calculate ***********/

    var a = this.getField(“calculenseignant42”);

    event.value = Math.round(a.value / 3);

    //

    //

    //

    //notefinaleenseignant43:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant43:Calculate ***********/

    var a = this.getField(“calculenseignant43”);

    event.value = Math.round(a.value / 5);

    //

    //

    //

    //notefinaleenseignant44:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant44:Calculate ***********/

    var a = this.getField(“calculenseignant44”);

    event.value = Math.round(a.value / 3);

    //

    //

    //

    //notefinaleenseignant51:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant51:Calculate ***********/

    var a = this.getField(“calculenseignant51”);

    event.value = Math.round(a.value / 9);

    //

    //

    //

    //notefinaleenseignant52:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant52:Calculate ***********/

    var a = this.getField(“calculenseignant52”);

    event.value = Math.round(a.value / 5);

    //

    //

    //

    //notefinaleenseignant53:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant53:Calculate ***********/

    var a = this.getField(“calculenseignant53”);

    event.value = Math.round(a.value / 1);

    //

    //

    //

    //notefinaleenseignant54:Calculate

    //

    /*********** appartient à : AcroForm:notefinaleenseignant54:Calculate ***********/

    var a = this.getField(“calculenseignant54”);

    event.value = Math.round(a.value / 1);

    //

    //

    Si ça peut aider à comprendre…

    Deckard

    #48881
    Merlin
    Maître des clés

    Il faut aller dans les Préférences de Adobe Reader > JavaScript pour activer la console et le debugger (inactifs par défaut).

    Je vais regarder ça mais je n’ai pas beaucoup de temps… patience.

    :-k :scra: :-k

    PS : Y a des nouveaux smileys :

    :shtroumfette: :gdshtroumf: :joker: :perenoel: :spiderman: :shtroumf: :langue: :clown: :queen:

    #48882
    Merlin
    Maître des clés

    Il faut aller dans les Préférences de Adobe Reader > JavaScript pour activer la console et le debugger (inactifs par défaut).

    Je vais regarder ça mais je n’ai pas beaucoup de temps… patience.

    :-k :scra: :-k

    PS : Y a des nouveaux smileys :

    :shtroumfette: :gdshtroumf: :joker: :perenoel: :spiderman: :shtroumf: :langue: :clown: :queen:

    #48883
    Deckard
    Invité

    J’ai pu activer le débogueur, mais c’est du chinois pour moi.

    J’ai pu repérer un message récurent :

    “impossible de trouver la source de Field:Format”, mais ça n’empêche pas les calculs de s’opérer correctement alors ça doit pas être ça… et puis les champs de calcul sont tous au format nombre !?! ](*,)

    Pour le reste, c’est du chinois.

    Deckard

    #48884
    alex
    Invité

    Bonjour,

    Première remarque:

    Ton post m’a intéressé pour une raison simple: pourquoi ai-je moi-même renoncé depuis longtemps à utiliser le format date proposé par AcroForm pour les afficher? Toutes mes dates sont visualisées dans des champs texte! Sans doute pour éviter ces mêmes problèmes ! En effet, la méthode util.printd(“format”,Date) suffit à préciser le format sans se proccuper de celui du container de destination. En clair je te conseille d’utiliser des champs texte (catégorie de format : aucune).

    Deuxième remarque:

    Ton script peut se réduire à quelques lignes, pour cela il suffit de donner un nom générique aux champs, boutons et autres objets (c’est presque fait) puis de définir des fonctions intégéres au document. Tu trouveras de nombreux exemples (y compris les miens) sur les deux forums français consacrés au pdf.

    Bon courage !

    #48885
    Deckard
    Invité

    Merci alex, je vais essayer ta première remarque.

    Pour ce qui est de la seconde, j’ai donné des noms génériques à mes champs de calcul dans la toute première mouture de mon document. Le résultat a été assez bizarre. Les moyennes étaient mal calculées, les validations changeaient de manière incompréhensibles et parfois, un changement dans un champs texte était répercuté dans un précédent.

    Je m’y suis peut-être pris comme un pied, mais depuis que j’ai utilisé des noms spécifiques à chaque champ, tout fonctionne correctement (mis à part ce problème de date bien sûr).

    J’ai juste conservé les noms génériques pour les coches. C’est plus simple de les cacher/révéler dans un script.

    Deckard

Affichage de 8 réponses de 1 à 8 (sur un total de 8)
  • Vous devez être connecté pour répondre à ce sujet.