Das Notes Forum

Domino 9 und frühere Versionen => ND6: Entwicklung => Thema gestartet von: pippo am 10.09.04 - 15:47:34

Titel: Probleme mit privaten Ordnern
Beitrag von: pippo am 10.09.04 - 15:47:34
Hallo,
habe einen privaten Ordner bei Erstbenutzung. Mit Client 5.x konnte ich mit Set view = db.GetView(Orner...) und mit Set vc = view.AllEntries die Einträge bearbeiten. MIt Client 6.x geht das nicht mehr. Habe mir die Objekte mit dem Debugger angeschaut. Da sind die meisten Objekte einfach nothing...

Hat NOtes da was umgebaut?
Kann mir da jemand bitte helfen?

Grüße, Pippo
Titel: Re:Probleme mit privaten Ordnern
Beitrag von: umi am 13.09.04 - 08:22:36
Dies ist in der Tat ein Bug von Notes 6.
Gefunden auf ldd:
Code
Workaround:
One can loop through all of the views and folders in the database until the correct one is found - which is determined by testing for the name and checking whether the Readers field contains the users name. 

The below example uses the GetView method if it's being executed on a R5 client or server otherwise it uses the loop workaround. In the below example the references to "POFU" should be changed to the name of the view/folder you would like to get a handle to:


If s.NotesBuildVersion<190 Then 'If running R5 then simply use GetView. 
Set pview=db.GetView("POFU")
Else 'If ND6 will do loop workaround
Forall v In db.Views
If v.name="POFU" And Isarray(v.readers) Then
If v.readers(0)=s.UserName Then
Set pview=v
Exit Forall
End If
End If
End Forall
End If
'now pview has handle to the Personal On First Use version of the view/folder
Titel: Re:Probleme mit privaten Ordnern
Beitrag von: Axel am 13.09.04 - 10:57:47
Hi,

betrifft dieser Bug auch die Versionen 6.5.x ?

Axel
Titel: Re:Probleme mit privaten Ordnern
Beitrag von: umi am 13.09.04 - 12:56:41
Alle Versionen ab 6, afaik..
Titel: Re: Probleme mit privaten Ordnern
Beitrag von: Michael Gerdes am 01.02.06 - 11:16:55
Hallo.

Ich hatte das gleiche Problem mit view.Allentries und privaten Ordnern auf einem 6.5er Client. Habe eine neues Data-Verzeichnis erstellen lassen, desktop6.ndk gelöscht und alle anderen Standardvorgehensweisen ausprobiert. Nichts half. Nach der Deinstallation des Notes-Clients und der Instalation einer neueren Version (6.5.4) trat der Fehler nicht mehr auf. Es scheint also so, als sei der Fehler in den Versionen ab 6.5.4 behoben.

Gruß