Advertisement
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: |
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim acl As NotesACL
Dim aclEntry As NotesACLEntry
Dim vc As NotesViewEntryCollection
Dim fdoc As NotesViewEntry
Dim bdoc As NotesDocument
Dim pView As NotesView
Dim pDoc As NotesDocument
Dim pItem As NotesItem
Dim vItem As NotesItem
Dim tf As String
Set db = session.CurrentDatabase
Set view = db.GetView("(byProduct)")
Set acl = db.ACL
Set aclentry = ACL.GetFirstEntry
Goto FindForumMembers
PutDocsInFolder:
Forall role In aclentry.roles
Set vc = view.GetAllEntriesByKey(role)
Set fdoc = vc.GetFirstEntry
Do While Not fdoc Is Nothing
Set bdoc = fdoc.Document
Set vitem = bdoc.GetFirstItem("lstVoters")
p = vitem.contains(aName)
If p = False Then
Call bdoc.PutInFolder( tf)
End If
Set fdoc = vc.GetNextEntry(fdoc)
Loop
End Forall
Return
FindForumMembers:
Do While Not aclentry Is Nothing
Forall role In aclentry.Roles
aName = aclentry.name
Select Case role
Case Is = "[Forum]"
Set pView = db.GetView("Profiles")
Set pDoc = pview.GetDocumentByKey(aName)
Set pItem = pdoc.GetFirstItem("txtSubFolder")
tf = pItem.text
Gosub PutDocsInFolder
Exit Forall
End Select
End Forall
Set aclEntry= acl.GetNextEntry(aclentry)
Loop
End Sub
|
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
|
Loading Advertisement... |
| Open Discussion |