Dim ws As New NotesUiWorkspace
Dim session As NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim DocA As NotesDocument
Dim view As NotesView
Dim acl As NotesACL
Dim Entry As NotesACLEntry
Dim GRUPPE As String
Dim ok As Boolean
'GRUPPE = getParam("GRUPPE")
Set session = New NotesSession
Set db = session.CurrentDatabase
Set acl = db.ACL
Set Entry = acl.GetFirstEntry
While Not Entry Is Nothing
ok = logge (10, "ACL auslesen:" & Entry.Name)
If entry.IsGroup Then
ok = logge(10, "Gruppe:" & entry.Name )
' If entry.Name = GRUPPE Then
ok = logge(10, GRUPPE & " gleich" & entry.Name )
Gosub GRUPPEAUSLESEN
' Else
ok = logge(10, GRUPPE & " nicht gleich" & entry.Name )
' End If
Else
ok = logge (10, entry.Name & " ist keine Gruppe" )
End If
Set Entry = ACL.GetNextEntry( Entry )
Wend
Exit Function
' ******************************** '
GRUPPEAUSLESEN:
ok = logge ( 1 , "GRUPPE AUSLESEN")
Dim memfield As Variant
Dim nd_db As notesdatabase
Dim g_doc As notesdocument
Dim flag As Variant
Dim server As String
Dim ename As String
Set db = session.currentdatabase
server = db.server
Set nd_db = New notesdatabase("","")
flag = nd_db.open(server, "names.nsf")
Set view = nd_db.getview("Groups")
Set g_doc = view.getdocumentbykey(entry.name, True)
'getMember = g_doc.getitemvalue("members")
memfield = g_doc.getitemvalue("members")
Forall X In memfield
'ename = X
'Messagebox (ename$)
'Call eintragePerson(ename$)
End Forall
Return
Für das eintragePerson musst DU Dir was ausdenken
Ciao
Don Pasquale