キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
Browse apps to extend the software in the new JMP Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-339784%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3EComment%20afficher%20un%20message%20%C2%AB%26nbsp%3BFichier%20en%20cours%20d'utilisation%26nbsp%3B%C2%BB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-339784%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3ESalut%2C%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EJe%20cr%C3%A9e%20actuellement%20un%20fichier%20JMP%20qui%20fait%20office%20de%20base%20de%20donn%C3%A9es.%20Par%20cons%C3%A9quent%2C%20je%20voudrais%20afficher%20un%20message%20%22Fichier%20en%20cours%20d'utilisation%22%20et%20garder%20le%20fichier%20verrouill%C3%A9%20pour%20modification%20lorsque%20quelqu'un%20d'autre%20a%20d%C3%A9j%C3%A0%20ouvert%20la%20base%20de%20donn%C3%A9es%20et%20apporte%20des%20modifications%20au%20fichier.%20Par%20exemple%2C%20le%20m%C3%AAme%20message%20que%20vous%20recevez%20lorsque%20vous%20ouvrez%20un%20fichier%20Excel%20sur%20un%20emplacement%20de%20serveur%20d%C3%A9j%C3%A0%20utilis%C3%A9%20par%20quelqu'un%20d'autre%26nbsp%3B%3A%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20image-alt%3D%22file%20in%20use%20message.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22file%20in%20use%20message.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22file%20in%20use%20message.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22file%20in%20use%20message.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22file%20in%20use%20message.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22file%20in%20use%20message.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22file%20in%20use%20message.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22file%20in%20use%20message.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F28754i41DD73882C69D926%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22file%20in%20use%20message.png%22%20alt%3D%22file%20in%20use%20message.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EJe%20pense%20avoir%20d%C3%A9j%C3%A0%20trouv%C3%A9%20une%20partie%20de%20la%20r%C3%A9ponse%20dans%20le%20post%20suivant%20de%20la%20communaut%C3%A9%26nbsp%3B%3A%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FMulti-User-Access%2Fm-p%2F109626%23U109626%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-forum-thread%20lia-fa-icon%20lia-fa-forum%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3EAcc%C3%A8s%20multi-utilisateur%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3ESi%20j'ai%20raison%2C%20je%20devrais%20encore%20trouver%20comment%20verrouiller%20la%20table%20si%20elle%20est%20ouverte%20par%20un%20autre%20utilisateur.%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EQuelqu'un%20pourrait-il%20m'aider%20%C3%A0%20cr%C3%A9er%20un%20tel%20script%26nbsp%3B%3F%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EMerci%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-339784%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CLINGO-LABEL%3EAcc%C3%A8s%20aux%20donn%C3%A9es%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-341069%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Comment%20afficher%20un%20message%20%22Fichier%20en%20cours%20d'utilisation%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-341069%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECela%20fonctionnera%20probablement%20dans%20JMP%2014.%20J'ai%20signal%C3%A9%20le%20probl%C3%A8me%20JMP%2015%2F16%20que%20je%20voyais.%3C%2FP%3E%3CP%3ESi%20vous%20devez%20le%20faire%20fonctionner%20en%2015%2C%20vous%20pouvez%20faire%20quelque%20chose%20comme%20cette%20fonction%20que%20j'ai%20utilis%C3%A9e%20dans%20le%20compl%C3%A9ment%20FileSnapper.%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%20FileSnapper%3AisFileOpenElsewhere%20%3D%20Function(%20%7Bfilepath%7D%2C%20%7Bdt%2C%20savelog%7D%2C%0A%20%20If(%20endswith(filepath%2C%22.jmp%22)%20%26amp%3B%20File%20Exists(%20filepath%20)%2C%0A%20%20%20dt%20%3D%20Open(%20filepath%2C%20private%20)%3B%20%20%0A%20%20%20savelog%20%3D%20Log%20Capture(%20dt%20%26lt%3B%26lt%3B%20save%20)%3B%0A%20%20%20close(dt%2C%22nosave%22)%3B%0A%20%20%20Length(%20savelog%20)%20!%3D%200%3B%20%2F%2F%20error%20message%20means%20another%20JMP%20has%20dt%20open%0A%20%20%2C%20%2F%2F%20else%0A%20%20%200%20%2F%2F%20not%20open%20if%20not%20exists%20%0A%20%20)%0A%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3ECela%20fonctionne%20en%20essayant%20d'enregistrer%20le%20fichier%20d%C3%A8s%20qu'il%20est%20ouvert%20et%20en%20captant%20le%20message%20du%20journal.%20S'il%20n'y%20a%20pas%20de%20message%20de%20journal%2C%20la%20sauvegarde%20a%20fonctionn%C3%A9.%20Vous%20voudriez%20r%C3%A9organiser%20un%20peu%20cela%2C%20probablement%20en%20ne%20fermant%20pas%20la%20table%20si%20la%20sauvegarde%20a%20r%C3%A9ussi%2C%20et%20en%20n'utilisant%20pas%3CEM%3E%20priv%C3%A9%3C%2FEM%3E%20.%20L'inconv%C3%A9nient%20est%20que%20si%20le%20fichier%20est%20tr%C3%A8s%20volumineux%2C%20la%20sauvegarde%20suppl%C3%A9mentaire%20peut%20prendre%20un%20certain%20temps%20et%20double%20le%20risque%20d'avoir%20une%20panne%20de%20courant%20pendant%20une%20sauvegarde%2C%20corrompant%20les%20donn%C3%A9es.%20(Pour%20FileSnapper%2C%20le%20fichier%20est%20une%20sentinelle%2C%20petit%2C%20sur%20le%20point%20d'%C3%AAtre%20supprim%C3%A9%20et%20recr%C3%A9%C3%A9%20%C3%A0%20chaque%20fois%2C%20donc%20%C3%A7a%20marche%20bien.)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-341045%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Comment%20afficher%20un%20message%20%22Fichier%20en%20cours%20d'utilisation%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-341045%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EOk%2C%20merci%20d'avoir%20regard%C3%A9%20ce%20Craig.%3C%2FP%3E%3CP%3EJe%20vais%20essayer%20de%20configurer%20le%20script%20de%20David%20dans%20mon%20fichier%20JMP.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-339926%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Comment%20afficher%20un%20message%20%22Fichier%20en%20cours%20d'utilisation%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-339926%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHmm.%20Je%20peux%20voir%20que%20cela%20fonctionne%20dans%20JMP%2014%2C%20mais%20peut-%C3%AAtre%20pas%2015.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-339904%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Comment%20afficher%20un%20message%20%22Fichier%20en%20cours%20d'utilisation%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-339904%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ELe%20script%20de%20David%20contient%20le%20code%20qui%20v%C3%A9rifie%20l'indication%20visible%26nbsp%3B%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Several%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%22%20style%3D%22width%3A%20493px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Several%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%22%20style%3D%22width%3A%20493px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Several%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%22%20style%3D%22width%3A%20493px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Several%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%22%20style%3D%22width%3A%20493px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Several%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%22%20style%3D%22width%3A%20493px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Several%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%22%20style%3D%22width%3A%20493px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Several%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%22%20style%3D%22width%3A%20493px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Several%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%22%20style%3D%22width%3A%20493px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Several%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%22%20style%3D%22width%3A%20493px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Several%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%22%20style%3D%22width%3A%20493px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Several%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%22%20style%3D%22width%3A%20493px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Several%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%22%20style%3D%22width%3A%20493px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Several%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%22%20style%3D%22width%3A%20493px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Several%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%22%20style%3D%22width%3A%20493px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F28764iB52CA662BB094D01%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22LockedFile.PNG%22%20alt%3D%22Several%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESeveral%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESeveral%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESeveral%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESeveral%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESeveral%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESeveral%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESeveral%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESeveral%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESeveral%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESeveral%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESeveral%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESeveral%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESeveral%20copies%20of%20JMP%20open%2C%20same%20table%20in%20two%20copies%2C%20one%20of%20them%20is%20locked%20out%20by%20the%20other.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EPlusieurs%20exemplaires%20de%20JMP%20ouverts%2C%20m%C3%AAme%20tableau%20en%20deux%20exemplaires%2C%20l'un%20d'eux%20est%20verrouill%C3%A9%20par%20l'autre.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-339902%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Comment%20afficher%20un%20message%20%22Fichier%20en%20cours%20d'utilisation%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-339902%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EMerci%20pour%20la%20r%C3%A9ponse%20Craige.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESerait-il%20possible%20d'afficher%20un%20message%2Favertissement%20indiquant%20que%20le%20fichier%20est%20d%C3%A9j%C3%A0%20utilis%C3%A9%20par%20quelqu'un%20d'autre%26nbsp%3B%3F%20Actuellement%2C%20le%20deuxi%C3%A8me%20utilisateur%20peut%20ignorer%20que%20le%20fichier%20est%20d%C3%A9j%C3%A0%20ouvert%20par%20un%20autre%20utilisateur.%20Ainsi%2C%20si%20le%20deuxi%C3%A8me%20utilisateur%20apporte%20des%20modifications%20au%20fichier%2C%20ces%20modifications%20ne%20peuvent%20pas%20%C3%AAtre%20enregistr%C3%A9es%20dans%20le%20fichier%20d'origine.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-339880%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Comment%20afficher%20un%20message%20%22Fichier%20en%20cours%20d'utilisation%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-339880%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EUne%20table%20JMP%20est%20verrouill%C3%A9e%20en%20%C3%A9criture%20par%20le%20premier%20utilisateur%20qui%20l'ouvre.%20Les%20utilisateurs%20suivants%20obtiennent%20un%20acc%C3%A8s%20en%20lecture%20seule%20(ils%20ne%20peuvent%20pas%20enregistrer%20leurs%20modifications).%20Le%20script%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F4536%22%20target%3D%22_blank%22%3E%20%40David_Burnham%3C%2FA%3E%20%C3%A9crit%20suppose%20que%20l'utilisateur%20avec%20le%20verrou%20fermera%20la%20table%20assez%20rapidement%20(200%20essais)%2C%20puis%20ouvrira%20la%20table%20pour%20le%20nouvel%20utilisateur%2C%20qui%20devrait%20obtenir%20le%20verrou%20pour%20le%20nouvel%20utilisateur.%20Cela%20pourrait%20tr%C3%A8s%20bien%20fonctionner%20pour%202%20ou%203%20utilisateurs%20qui%20utilisent%20un%20programme%20soigneusement%20%C3%A9crit%20pour%20mettre%20%C3%A0%20jour%20la%20table.%20Ce%20n'est%20pas%20pour%20un%20utilisateur%20qui%20pourrait%20ouvrir%20la%20table%20puis%20aller%20d%C3%A9jeuner%20sans%20la%20refermer.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-743872%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20Comment%20afficher%20un%20message%20%22Fichier%20en%20cours%20d'utilisation%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-743872%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EPeux-tu%20poster%20le%20test%20%3F%20Et%20le%20fichier%20est-il%20un%20fichier%20r%C3%A9seau%20ou%20un%20fichier%20local%26nbsp%3B%3F%20Je%20ne%20suis%20pas%20s%C3%BBr%20de%20ce%20que%20JMP%20ou%20le%20syst%C3%A8me%20d'exploitation%20pourraient%20faire%20diff%C3%A9remment%2C%20mais%20au%20moins%20parfois%2C%20je%20pense%20que%20JMP%20enregistre%20dans%20un%20autre%20fichier%2C%20puis%20supprime%2Frenomme%2F%C3%A9change%20pour%20r%C3%A9duire%20au%20maximum%20la%20fen%C3%AAtre%20de%20panne%20de%20courant.%20Il%20se%20pourrait%20que%20ce%20processus%20fasse%20obstacle.%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3022%22%20target%3D%22_blank%22%3E%40briancorcoran%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-743739%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20Comment%20afficher%20un%20message%20%22Fichier%20en%20cours%20d'utilisation%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-743739%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ELors%20des%20tests%2C%20je%20trouve%20un%20sc%C3%A9nario%20dans%20lequel%20je%20peux%20ouvrir%20la%20table%20sans%20message%20dans%20%3CSTRONG%3Esavelog%3C%2FSTRONG%3E%20%2C%20mais%20lorsque%20je%20viens%20de%20sauvegarder%2C%20j'obtiens%20une%20erreur%20%22Impossible%20d'obtenir%20le%20marqueur%20de%20fin%20de%20fichier%22.%20Non%20seulement%20cela%20emp%C3%AAche%20la%20sauvegarde%20des%20derni%C3%A8res%20donn%C3%A9es%2C%20mais%20le%20fichier%20entier%20dispara%C3%AEt%20et%20toutes%20les%20donn%C3%A9es%20sont%20perdues.%3C%2FP%3E%0A%3CP%3EDans%20l'environnement%20de%20test%20j'ai%202%20scripts%2C%20identiques%20sauf%20qu'un%20script%20met%20%C3%A0%20jour%20la%201%C3%A8re%20colonne%20du%20tableau%20et%20le%202%C3%A8me%20script%20met%20%C3%A0%20jour%20la%202%C3%A8me%20colonne.%20Chaque%20script%20tente%20de%20mettre%20%C3%A0%20jour%20la%20table%20100%20fois.%20Si%20l'open%20rapporte%20(via%20%3CEM%3Esavelog%3C%2FEM%3E%20)%20que%20la%20table%20est%20verrouill%C3%A9e%2C%20il%20attend%20et%20r%C3%A9essaye%20(dans%20le%20sens%20de%20mon%20script%20d'origine).%20Cependant%2C%20peut-%C3%AAtre%20une%20ou%20deux%20fois%20sur%20100%20tentatives%2C%20une%20erreur%20de%20marqueur%20de%20fin%20de%20fichier%20se%20produira.%20Cela%20peut%20se%20produire%20lors%20de%20l'ouverture%20du%20fichier%20(avec%20le%20test%20%3CEM%3Esavelog%3C%2FEM%3E%20)%20ou%20lors%20de%20la%20sauvegarde%20des%20r%C3%A9sultats%20(fermeture%20et%20sauvegarde%20en%20supposant%20qu'il%20existe%20un%20acc%C3%A8s%20en%20%C3%A9criture).%20J'ai%20impl%C3%A9ment%C3%A9%20un%20test%20%3CEM%3Ede%20sauvegarde%3C%2FEM%3E%20similaire%20%C3%A0%20la%20fermeture%2C%20mais%20il%20est%20alors%20trop%20tard%2C%20le%20mal%20est%20fait.%3C%2FP%3E%0A%3CP%3EMon%20exp%C3%A9rience%20de%20cette%20erreur%20est%20que%20si%20vous%20l'obtenez%20en%20essayant%20de%20sauvegarder%20les%20r%C3%A9sultats%2C%20vous%20rencontrez%20de%20gros%20probl%C3%A8mes%20et%20risquez%20de%20perdre%20compl%C3%A8tement%20la%20table.%20J'essaie%20donc%20de%20me%20concentrer%20sur%20l'%C3%A9limination%20de%20l'erreur%20qui%20se%20produit%20en%20premier%20lieu%20en%20essayant%20d'obtenir%20de%20mani%C3%A8re%20fiable%20un%20acc%C3%A8s%20en%20lecture-%C3%A9criture%20lors%20de%20l'ouverture%20de%20la%20table.%2099%26nbsp%3B%25%20du%20temps%2C%20j%E2%80%99y%20parviens%2C%20mais%20je%20peux%20toujours%20obtenir%20l%E2%80%99erreur.%20Je%20soup%C3%A7onne%20que%20ce%20qui%20se%20passe%2C%20c'est%20qu'il%20y%20a%20une%20faible%20chance%20que%20les%20deux%20scripts%20obtiennent%20un%20acc%C3%A8s%20en%20lecture-%C3%A9criture%20au%20fichier%20(au%20moins%2C%20comme%20indiqu%C3%A9%20par%20savelog)%2C%20mais%20%C3%A0%20un%20moment%20donn%C3%A9%2C%20un%20script%20conserve%20un%20acc%C3%A8s%20en%20lecture-%C3%A9criture%20et%20l'autre%20script%20obtient%20la%20fin%20du%20fichier.%20erreur%20de%20marqueur%20-%20probablement%20lorsque%20l'autre%20script%20a%20effectu%C3%A9%20une%20mise%20%C3%A0%20jour).%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-744192%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20Comment%20afficher%20un%20message%20%22Fichier%20en%20cours%20d'utilisation%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-744192%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ELes%20probl%C3%A8mes%20sont%20pires%20avec%20un%20lecteur%20r%C3%A9seau%20(activ%C3%A9%20dans%20mon%20cas)%20avec%20un%20fichier%20sur%20OneDrive.%20Mais%20mes%20tests%20ont%20%C3%A9t%C3%A9%20effectu%C3%A9s%20avec%20un%20fichier%20local.%20Windows%2010%2C%20JMP%2017.%3C%2FP%3E%0A%3CP%3ELes%20scripts%20%C2%AB%20locktest1%20%C2%BB%20et%20%C2%AB%20locktest2%20%C2%BB%20sont%20identiques%20sauf%20que%20le%20premier%20script%20met%20%C3%A0%20jour%20la%20colonne%201%20du%20tableau%20des%20r%C3%A9sultats%20tandis%20que%20le%20deuxi%C3%A8me%20script%20met%20%C3%A0%20jour%20la%20colonne%202.%3C%2FP%3E%0A%3CP%3EEn%20ex%C3%A9cutant%20chaque%20script%20simultan%C3%A9ment%20dans%20des%20instances%20JMP%20distinctes%2C%20il%20est%20possible%20de%20tester%20la%20logique%20de%20gestion%20des%20verrouillages%20de%20fichiers.%3C%2FP%3E%0A%3CP%3ELa%20ligne%2075%20des%20scripts%20contient%20le%20chemin%20de%20la%20table%20des%20r%C3%A9sultats.%20Placez%20le%20tableau%20des%20r%C3%A9sultats%20dans%20un%20emplacement%20appropri%C3%A9%20et%20mettez%20%C3%A0%20jour%20la%20variable%20path%20pour%20pointer%20vers%20cet%20emplacement.%3C%2FP%3E%0A%3CP%3EOuvrez%20une%20session%20JMP%20et%20ouvrez%20locktest1.%20Afficher%20le%20journal%20int%C3%A9gr%C3%A9.%3C%2FP%3E%0A%3CP%3EOuvrez%20une%20deuxi%C3%A8me%20session%20JMP%20et%20ouvrez%20loctest2%2C%20avec%20un%20journal%20int%C3%A9gr%C3%A9.%3C%2FP%3E%0A%3CP%3EEx%C3%A9cutez%20les%20deux%20scripts%20(j'ex%C3%A9cute%20le%20premier%2C%20j'attends%20que%20le%20journal%20indique%20i%3D5%2C%20puis%20j'ex%C3%A9cute%20le%20second%2C%20mais%20ce%20n'est%20qu'une%20superstition).%3C%2FP%3E%0A%3CP%3ELa%20boucle%20d%C3%A9finie%20%C3%A0%20la%20ligne%2079%20effectue%2050%20it%C3%A9rations.%20Si%20les%20deux%20scripts%20se%20terminent%20avec%20succ%C3%A8s%2C%20le%20r%C3%A9sultat%20devrait%20%C3%AAtre%20que%20le%20tableau%20des%20r%C3%A9sultats%20contienne%20des%20nombres%20de%201%20%C3%A0%2050%20dans%20chacune%20des%20deux%20colonnes.%3C%2FP%3E%0A%3CP%3EIl%20existe%20un%20script%20de%20table%20qui%20vous%20permettra%20de%20r%C3%A9initialiser%20le%20contenu%20de%20la%20table.%3C%2FP%3E%0A%3CP%3EEn%20pratique%2C%20il%20existe%203%20modes%20de%20d%C3%A9faillance%20possibles%20%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EUn%20ou%20plusieurs%20messages%20%C2%AB%20Impossible%20d'obtenir%20le%20marqueur%20de%20fin%20de%20fichier%20%C2%BB%20s'affichent.%20Cette%20erreur%20se%20produit%20lors%20de%20la%20sauvegarde%20et%20il%20n'est%20pas%20possible%20de%20sauvegarder%20les%20r%C3%A9sultats.%20Il%20y%20aura%20donc%20des%20valeurs%20manquantes%20dans%20le%20tableau%20des%20r%C3%A9sultats.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLI%3E%0A%3CLI%3E%C3%80%20un%20moment%20donn%C3%A9%2C%20le%20tableau%20des%20r%C3%A9sultats%20dispara%C3%AEtra.%20Si%20le%20fichier%20ne%20peut%20pas%20%C3%AAtre%20trouv%C3%A9%2C%20les%20scripts%20abandonnent%20l'ex%C3%A9cution%20avec%20un%20message%20%C2%AB%26nbsp%3Bfichier%20non%20trouv%C3%A9%26nbsp%3B%C2%BB.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLI%3E%0A%3CLI%3EParfois%2C%20les%20deux%20scripts%20ne%20parviennent%20pas%20%C3%A0%20verrouiller%20la%20table.%20Ceci%20est%20indiqu%C3%A9%20par%20les%20deux%20scripts%20effectuant%20500%20tentatives%20pour%20obtenir%20un%20verrou.%20Si%20vous%20abandonnez%20les%20scripts%2C%20puis%20essayez%20d'ouvrir%20la%20table%20des%20r%C3%A9sultats%2C%20elle%20aura%20une%20variable%20de%20table%20%3CEM%3Efile_lock%3C%2FEM%3E%20.%20La%20table%20sera%20verrouill%C3%A9e%20dans%20les%20deux%20instances%20de%20JMP.%20La%20seule%20fa%C3%A7on%20de%20le%20d%C3%A9verrouiller%20est%20de%20fermer%20les%20deux%20sessions%20de%20JMP.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E50%20it%C3%A9rations%20suffisent%20g%C3%A9n%C3%A9ralement%20pour%20observer%20(1)%20et%20(2)%2C%20mais%20il%20faut%20parfois%20augmenter%20le%20nombre%20d'it%C3%A9rations%20pour%20voir%20(2).%20Le%20sc%C3%A9nario%20(3)%20est%20plus%20probable%20avec%20des%20centaines%20d'it%C3%A9rations%20et%20avec%20l'attente%20sur%20la%20ligne%20100%20supprim%C3%A9e.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-749493%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20Comment%20afficher%20un%20message%20%22Fichier%20en%20cours%20d'utilisation%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-749493%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ED%C3%A9sol%C3%A9%2C%20j'ai%20perdu%20la%20trace.%20J'ai%20fait%20une%20vid%C3%A9o%20de%20la%20table%20de%20donn%C3%A9es%20disparaissant%20du%20bureau%20et%20je%20l'ai%20envoy%C3%A9e%20%C3%A0%20l'%C3%A9quipe%20de%20d%C3%A9veloppement.%20Merci!%3C%2FP%3E%3C%2FLINGO-BODY%3E
言語を選択 翻訳バーを非表示
RobRobeyns
Level III

How to prompt a " File in Use" message

Hi,

 

I'm currently creating a JMP file which acts as a database. Therefore I would like to prompt a "File in use" message and keep the file locked for editing when someone else already opened the database and is making changes to the file. For example, the same message you get when you open an Excel file on a server location that is already in use by someone else:

 

file in use message.png

 

 

 

 

I think I already found a part of the answer in the following Community post: Multi-User Access 

 

If I'm correct I would still need to figure out how to lock the table if it is opened by another user.

 

Could someone please help with creating such a script?

 

Thanks

 

10件の返信10
Craige_Hales
Super User

Re: How to prompt a " File in Use" message

Sorry, lost track of this. I made a video of the data table vanishing off the desktop and sent it to the development team. Thanks!

Craige