Bonsoir,
Je souhaite quand je clique sur un bouton dans le document parent affecter une valeur à tous les documents réponse de ce document.
Je veux faire e code en LotusScript.
Merci pour toute proposition
Dim ws As New NotesUIWorkspace
Dim session As New notessession
Dim collection As NotesDocumentCollection
Dim currentResponse As NotesDocument
Set uidoc=ws.CurrentDocument
'Set doc=uidoc.Document
Set collection = doc.Responses
if not collection is Nothing then
if collection.count >0 then
cal collection.StampAll("StatusNum", "10")
end if
end ifDim ws As New NotesUIWorkspace
Dim session As New notessession
Dim collection As NotesDocumentCollection
Dim currentResponse As NotesDocument
Set uidoc=ws.CurrentDocument
'Set doc=uidoc.Document
Set collection = doc.Responses
Set currentResponse = collection.GetFirstDocument
While Not ( currentResponse Is Nothing )
'Status=doc.StatusNum(0)
Call currentResponse.ReplaceItemValue("StatusNum", "10")
call currentResponse.save(true,false)
Set currentResponse = collection.GetNextDocument( currentResponse )
Wend