Domino 9 und frühere Versionen > Entwicklung

Position eines markierten Dokuments

<< < (2/3) > >>

manuel:
Ja, weiß jetzt glaub ich was du meinst, aber das macht doch der Code, den ich oben in meinem Beitrag geschrieben habe. Es werden nur solche Dokumente ausgelesen, die einen Haken davor haben.

Wie hat denn dein Kollege dieses Tool gemacht, hat er es mit LotusScript geschrieben? Wenn ja, kannst du natürlich diesen Code nicht 1:1 übernehmen, sondern irgendwie in deinen Export-Code reinschnippseln.

CruzaD:
dann habe ich es wohl falsch verstanden <- Anfänger, danke mal ich schau mal wie ichs einbauen kann.

Till_21:
@manuel :
du durchläufst alle Dokumente der View, nicht die markierten. benutz hierfür die eigenschaft "unprocessed documents"...

till

manuel:
@till

Nein, nein, das stimmt schon so. Mit Documents bekomme ich alle markierten Dokumente in einer Ansicht durch die NotesUIView. Siehe selbst:

All the documents that the current NotesUIView event is working on.
...
For events that act upon documents, this property reflects the documents selected when the user initiates the event.

Und für UnprocessedDocuments muss man beachten, wo man es verwendet:

UnprocessedDocuments property

The documents in a database that the current agent or view action considers to be "unprocessed." The type of agent determines which documents are considered unprocessed.
Defined in
NotesDatabase
Data type
NotesDocumentCollection
Syntax
To get: Set notesDocumentCollection  = notesDatabase.UnprocessedDocuments
Usage
This method is valid only for agent or view action scripts and may be invoked only on NotesDatabase objects obtained from the CurrentDatabase property in NotesSession. In scripts that are not a part of an agent or view action, this method returns a NotesDocumentCollection with zero documents. When invoked on a NotesDatabase object that was not obtained from the CurrentDatabase property, this method raises an error.
What documents are returned?
The following table describes the documents that are returned by the UnprocessedDocuments property.
Agent runs on:      UnprocessedDocuments returns documents that meet all of these requirements:
All documents in database      Meet the search criteria specified in Agent Builder
All new and modified documents since last run      Not been processed by this agent with UpdateProcessedDoc
     Just been created or modified
     Meet the search criteria specified in Agent Builder
All unread documents in  view      Are unread and in the view
     Meet the search criteria specified in Agent Builder
All documents in view      Are in the view
     Meet the search criteria specified in Agent Builder
Selected documents
or
View action      Are selected in the view
     Meet the search criteria specified in Agent Builder
Run once      Is the current document
Newly received mail documents      Just mailed to the database
     Meet the search criteria specified in Agent Builder
Newly modified documents      Just modified
     Meet the search criteria specified in Agent Builder
Pasted documents      Just pasted into the database
     Meet the search criteria specified in Agent Builder

HaPe:
Hi ich hab bis jetzt auch in View immer die unpossesdDocuments coll. genommen und das hat geklappt. Hattes du da schon mal Probleme?

Navigation

[0] Themen-Index

[#] Nächste Seite

[*] Vorherige Sete

Zur normalen Ansicht wechseln