Domino 9 und frühere Versionen > Entwicklung

"Entry is no longer in view"

(1/2) > >>

0xse:
"Entry is no longer in view" ist die Weiterführung von http://www.atnotes.de/index.php?topic=20301.0.

Dim view As  NotesView
Dim viewentry As NotesViewEntry
Dim viewentrycollection As NotesViewEntryCollection

[...]

Set view = session.currentdatabase.getview("VwDayKndnNrSum")   
Set viewentrycollection = view.getAllEntriesByKey("20",False)
Set viewentry = viewentrycollection.GetFirstEntry()

Bis hierhin funktioniert auch alles wie es soll. Nur danach nicht mehr...

viewentry.ColumnValues(0)

Das sollte ja eigentlich den Wert der ersten Speile des aktuellen Eintrags (Zeile) holen. Nur hierbei kommt halt die Meldung "Entry is no longer in view".
Es werden in dieser Ansicht keine Dokumente angezeigt, sondern nur Kategorien. Deswegen auch getAllEntriesByKey und nicht getAllDocumentsByKey. Und naja, ich hab keine Ahnung wieso der meckert das der Eintrag nicht mehr da ist.

In Google hab ich mal ein bißchen gesucht, aber da gab's überall nur inhaltslose Antworten und von denen hat leider keine geholfen.

Glombi:
NotesViewEntryCollection macht in Verbindung mit Kategorien Probleme.

Daher nutze ich diese Klassen eher selten.

Hier dazu was aus der KBASE:
Title:   
   Accessing NotesViewEntry Method or Property Returns Error: "Entry is no Longer in View: <viewname>"
Product:   Lotus Notes  >  Lotus Notes  >  Versions 6.0, 5.x
Platform(s):   Platform Independent
Date:   30.09.2002
Doc Number:   1089632



This document is based on the following Software Problem Reports (SPRs):
About SPRs
SPR Number   SPR Status   SPR Fixed Release
CSMH483KAX
SSHE4HH3WT   No Plans to Fix in This Release
No Plans to Fix in This Release   Not Applicable
Not Applicable
Problem
When accessing a Property or Method of the NotesViewEntry class, the following error displays:

"Entry is no longer in view: <viewname>"

Here is one example of a script that causes this error:

 Dim s As New NotesSession
 Dim db As NotesDatabase
 Dim view As NotesView
 Dim entry As NotesViewEntry
 Dim entryCol As NotesViewEntryCollection
 
 Set db = s.CurrentDatabase
 Set view = db.getView("Multi")
 Set entryCol = view.AllEntries
 
 Set entry = entryCol.GetFirstEntry
 While Not(entry Is Nothing)
  Print entry.universalid
  Set entry = entrycol.getnextentry(entry)
 Wend



Solution
This issue occurs when the entry is accessed in a View design that uses the column property "Show multiple values as separate entries".   This issue has been reported to Lotus Quality Engineering.

As a workaround, either disable the "Show multiple values as separate entries" property in the view or create a second view with the same design with the property disabled.

Supporting Information:

The "Show multiple values as separate entries" property is found on the Sort tab (second from the left) in the Column Properties dialog box.

Andreas

Glombi:
Ergänzung:
"Show multiple values as separate entries" sprich "Mehrfachwerte getrennt anzeigen" ist bei einer kategorisierten Spalte automatisch gesetzt und lässt sich nicht deaktivieren.

Andreas

0xse:
Das heißt also Warten bis dieser Fehler in Notes behoben wurde? :|

Semeaphoros:
Nein, eine nicht kategorisierte Ansicht nehmen oder den Programmansatz ändern. So schnell wird das Problem nicht gefixt.

Navigation

[0] Themen-Index

[#] Nächste Seite

Zur normalen Ansicht wechseln