Domino 9 und frühere Versionen > ND8: Entwicklung

In welchem Ordner liegt ein Dokument

(1/3) > >>

Ch33:
Hallo zusammen,

ich bin dabei in einer Anwendung eine Ansicht mit allen Dokumenten zu erstellen,
hier wäre es für User wichtig zu sehen in welchen Ordnern die Dokument leigen.

In der Mailschablone scheint das ja mit @Whichfolders (vgl. Ansich Alle Dokumente $All) zu funktionieren. In meiner Anwendung bleibt die Spalte leer.

Ich habe schon überall versucht mehr herauszufinden, aber ich finde immer nur widersprüchliche Angaben.
Ich bin davon ausgegangen, dass für @WhichFolders die Aktivierung von FolderReferences in der DB über Lotus Script nicht erforderlich ist.

Kann dies jemand Bestätigen oder hat jemand eine Idee, warum die Spalte leer bleibt

Vielen Dank im voraus

Gruß
Christian

Klafu:
Hallo Christian,

könnte es daran liegen? :)


--- Zitat ---Usage

@WhichFolders is intended for use only as a column formula in the mail template.

This function is effective only when the view is open in the UI and the outline pane on the left is visible.
--- Ende Zitat ---

Chris

Ch33:
Hallo, also es ist keine Mailschablone die Outline wird Angezeigt
Dann sieht es mit einer einfachen, nicht aufwändigen Löschung schlecht aus.

Verstehe zwar nicht warum das auf die Mailschablone begrenzt ist, aber scheinbar kommt man da anders nicht ran.

Vielen Dank

TRO:
aus meiner Grabbelbox:

The FolderReferences property of the NotesDocument class
is a new R5 property that will return a list of all the
folders a document is a member of.  It's particularly useful
in mail databases when you need to determine what folders a
document belongs to.  However, to use this property, there
are three requirements:

1. ($FolderInfo) view.  This view is provided in the standard
    R5 Notes mail template.
2. ($FolderRefInfo) view.  This view is provided in the standard
    R5 Notes mail template.
3. db.folderreferencesenabled := true

The third requirement, setting the db.folderreferencesenabled
flag requires you to write a bit of LotusScript to set this
property:

Sub Initialize
   Dim session As New notessession
   Dim db As notesdatabase

   Set db = session.currentdatabase

   If Not (db.FolderReferencesEnabled) Then
      db.FolderReferencesEnabled = True
      Print "DB Folder References has been enabled."
   Else
      Print "DB Folder References has already been enabled."
   End If
End Sub

Once the three prerequisites are in place, you can begin
using  the folderreferences property.  However, keep in
mind that if you apply the three prerequisites (above)
to an existing db, the folderreferences property will
return NULL for these documents.  This is because
folderreferences are set only after the three
prerequisites are set AND a document is moved into a
folder.  If you look at the document properties for a
document, you will see that there are three fields:
$FolderRef, $FolderRefFlags, $FolderRefID.  This means
that the folderreferences property will evaluate correctly
for this document.

If you have an existing Domino databases containing documents
that you want to start using folderreferences in, the best
solution is to write a small LotusScript program to process
each document in each folder of the db and "re-add" that
document to the folder.  This will create the three internal
fields ($FolderRef, $FolderRefFlags, $FolderRefID) that Notes
needs in order to calculate the folderreferences property.


hth

Thomas

Tode:
@Thomas: So hatte ich das auch in Erinnerung, und habe die Schritte mal an meiner "Spiel"- Datenbank durchgeführt. Die $Folder* Items in den Dokumenten werden auch sauber gesetzt, aber @WhichFolders liefert in den Ansichten trotzdem nix... Und auch ich habe ein Frameset mit Outline und Standard- Frame- Namen... Keine Ahnung, was da noch fehlt..

Navigation

[0] Themen-Index

[#] Nächste Seite

Zur normalen Ansicht wechseln