Page 1 sur 1

Valeur du Checkbox

MessagePublié: 27 Déc 2002 à 17:12
par Babar
Salut à tous,J'ai un petit problème car je cherche à mettre les valeurs d'un checkbox en lotusscript via un agent et cela ne fonctionne pas. La page fonctionne pour le web mais le champ n'apparait même pas....Voici mon code de l'agent, celui est appelé vi le WebQueryOpen :Sub Initialize Dim session As New NotesSession Dim db As NotesDatabase Dim acl As NotesACL Dim entry As NotesAclEntry Dim i As Integer Set db =session.currentdatabase Set acl = db.acl Set entry=acl.getFirstentry i=0 While Not entry Is Nothing i=i+1 Set entry=acl.getNextEntry(entry) Wend e=i If e<>0 Then Dim arrayRole () As String Redim arrayRole(e) As String Dim entryInt As NotesAclEntry Set entryInt = acl.getfirstEntry j=0 While Not entryInt Is Nothing j=j+1 arrayRole(j)=entryInt.name Set entryInt=acl.getNextEntry(entryInt) Wend 'on met les données dans le champ Dim docCourant As NotesDocument Set docCourant=session.documentContext Dim Item As NotesItem Set item = docCourant.getFirstItem("OperateurRole") Call item.appendToTextList(ArrayRole) Call docCourant.save(True,True) End IfEnd SubMerci d'avance

Re: Valeur du Checkbox

MessagePublié: 30 Déc 2002 à 10:29
par Babar
Bon comme personne ne m'aide je vais répondre moi même à mon "post" puisque j'ai trouver la solution. en fait lorsque l'in programme en lotusscript la valeur d'un checkbox, les valeurs ne s'affichent pas directement.En lotuscript il faut donc créer un autre champ dans lequel nous allons mettre les valeurs. Ensuite le champ checkbox prendra en valeur le champ créer. Et Voila sa marche impeccable.