Domino 9 und frühere Versionen > ND6: Entwicklung

Probleme mit privaten Ordnern

(1/1)

pippo:
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

umi:
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

--- Ende Code ---

Axel:
Hi,

betrifft dieser Bug auch die Versionen 6.5.x ?

Axel

umi:
Alle Versionen ab 6, afaik..

Michael Gerdes:
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ß

Navigation

[0] Themen-Index

Zur normalen Ansicht wechseln