Hallo,
ich habe in meinen Template nun eine neue Funktion hinzugefügt,das Feld möchte
ich nun ein Script in allen meinen Dokumenten setzen.
Um das Feld handelt es sich um ein Optionfeld, das vorher nicht
im Dokument vorhanden war.
Hier der Code:
| Sub Initialize |
| Dim wert As String |
| Dim s As New NotesSession |
| Dim db As NotesDatabase |
| Dim tmpdoc As NotesDocument |
| |
| Set db = s.CurrentDatabase |
| |
| Dim strTextArray(0) As String |
| strTextArray(0) = "0" |
| Dim item As NotesItem |
| |
| Dim v As NotesView |
| Set v = db.GetView("German\Unread") |
| Dim doc As NotesDocument |
| Set doc = v.GetLastDocument() |
| Do While Not (doc Is Nothing) |
| Set item = doc.GetFirstItem( "Doc_freigabe" ) |
| item.IsAuthors = True |
| Call doc.ReplaceItemValue("Doc_Freigabe", strTextArray) |
| item.IsAuthors = False |
| Call doc.Save(True,True) |
| Set doc = v.GetLastDocument() |
| Loop |
| End Sub |
In einer Ansicht schaue ich nun nach ob das Feld geändert wurde, aber dies
ist nicht der fall. Ich frage mich nun warum??
Ein weiters Problem ist.... :
Da ich in der Datenbank nun aber ca. 2.8gb an Dokumenten habe ,
suche ich nach eine Möglichkeit, das bei der nächsten Replikation nur dieses
Feld geändert wird und nicht gleich die komplette DB als neu angesehen wird.
Gruß Jörg