Das Notes Forum
Domino 9 und frühere Versionen => Entwicklung => Thema gestartet von: Blackraven am 01.08.03 - 14:18:31
-
Hallo,
ich suche eine Möglichkeit die 50 meistgelesenen Dokumente einer Datenbank in einer Ansicht anzeigen zu lassen.
Hat jem. ne Idee oder Lösung?
Gruß
Manu
-
Hi,
es geht wohl mit @Accessed - ABER Performance !!!
Du müsstest eine View machen, die dieses als Wert in einer Spalte absteigend sortiert. Eine Einschränkung auf 50 Dokumente geht aber so nicht.
@Accessed
Return value
lastAccessed
Time-date. The time and date that the current document was last accessed.
Usage
@Accessed is most useful in field formulas, selection formulas, agents, and actions. Because @Accessed requires some time to compute, it should not be used in applications where efficiency is critical.
The value returned by @Accessed is exact only to the day, not the hour. If the document is accessed twice during the same 24hour period, the value is not updated.
The lastaccessed value is not replicated; each replica copy of the document maintains its own value. The value returned by @Accessed represents the last time the document was accessed in that replica of the database.
If the database is stored on CD-ROM, @Accessed has no meaning because read/write access is not controlled by the Notes/Domino editor.
Usage in workflow applications
This function is useful for determining whether a document has been "stalled" in a workflow application; for example, you can run an agent that checks the lastaccessed date on a series of documents and sends out reminders about documents that should have been read but have not.
@Accessed can also be used in an agent to determine which documents in a database have not been accessed within a certain period of time, and archive them.
Note @Accessed is similar to @Modified, which records the date the document was last edited and saved.
Usage in column or selection formulas
Be careful when using @Accessed in views (in column or selection formulas) because it forces the view to be refreshed every time it's opened. You can prevent this by selecting the Manual/Background option for the view refresh frequency. Using @Accessed in a view will also cause that view to perpetually appear to need refreshing--the refresh mark will always display in the corner.
-
hi!
einen feld-counter einbaun der sich bei jedem öffnen um 1 erhöht und in der ansicht dann nach diesem feld absteigend sortiert anzeigen lassen.
weiss jetzt gar nicht ob das nicht ohnehin auch standardmäßig mitgespeichert wird?
lg
roo
-
Hi Rootine,
das mit dem Feldcounter ist aber nicht immer machbar, denn
- nicht jeder darf ein Dokument bearbeiten
- Speicher- und Replizierkonflikte (insbesondere bei Verteilten DBs)
Man könnte aber in einen extra Dokument, das sich in einer DB befindet, in der alle das Recht haben, Dokumente zu ändern, die UNID der gelesenen Dokument (via Postopen) speichern (jeweils die letzten 50). Dieses Feld könnte dann ein periodischer Agent auswerten und dann die Dokumente in einen speziellen Ordner "Top 50" in der ursprünglichen Datenbank kopieren´.
Das wäre nen bisschen Tipparbeit für das Coding, würde aber immer gehen (sogar bei Zugriff via Web, wenn man das dann noch in ein WebQueryOpen Agent packt).
Andreas
-
Hi Rootine,
das mit dem Feldcounter ist aber nicht immer machbar, denn
- nicht jeder darf ein Dokument bearbeiten
- Speicher- und Replizierkonflikte (insbesondere bei Verteilten DBs)
Man könnte aber in einen extra Dokument, das sich in einer DB befindet, in der alle das Recht haben, Dokumente zu ändern, die UNID der gelesenen Dokument (via Postopen) speichern (jeweils die letzten 50). Dieses Feld könnte dann ein periodischer Agent auswerten und dann die Dokumente in einen speziellen Ordner "Top 50" in der ursprünglichen Datenbank kopieren´.
Andreas
stimmt hast recht, daran hab ich nicht gedacht.
lg
roo
-
ein etwas anderer Ansatz ist aus diesem Thread entnehmbar (lang !)
http://www.atnotes.de/index.php?board=10;action=display;threadid=3633
-
wo soll das eigentlich laufen, im Client oder im Web ??
Web, dann schau dir mal die Blogs auf Domino Basis an. Da gibt es auch schon so was wie "Hottest Threads" oder so
Wenn es in Client laufen soll
da hat Glombi schon einen guten Ansatz geliefert
eine Frage:
wozu soll das gut sein ?? (Hintergrund)