Wie kann ich Dokumente markieren?

  • Hallo Forum,


    ich möchte einen Agenten schreiben der bestimmte Dokumente in einer Ansicht markiert. Er soll nicht mehr machen als die Dokumente zu markieren, d.h. links in der Ansicht soll neben den betreffenden Dokumenten ein Häkschen auftaucht.


    Danke
    Daniela

  • In der Hilfe fand ich folgendes,


    Example: SelectDocument method


    This example selects the first document in a collection and moves the pointer to that document.
    Dim session As New NotesSession
    Dim db As NotesDatabase
    Dim workspace As New NotesUIWorkspace
    Dim collection As NotesDocumentCollection
    Dim doc As NotesDocument
    Dim uiview As NotesUIView
    Set db = session.CurrentDatabase
    Set uiview = workspace.Currentview
    Set collection = db.AllDocuments
    Set doc = collection.GetFirstDocument
    Call uiview.SelectDocument(doc)


    und Examples: GetDocumentByKey method


    1. This script gets the first document in the first category that begins with "Spanish" in the By Category view of the current database.
    Dim session As New NotesSession
    Dim db As NotesDatabase
    Dim view As NotesView
    Dim doc As NotesDocument
    Set db = session.CurrentDatabase
    Set view = db.GetView( "By Category" )
    Set doc = view.GetDocumentByKey( "Spanish" )



    gtuß qbaer

  • Erstelle einen Agent der deine dokumente selektieren sollte, und sorge dafür das das selektionskriterium so gewählt ist das es Die dokumente bearbeiten KÖNNTE,
    Stelle als Typ Formel sprache ein, und selektieren dann RECHTS unten im agent dialog den "ändere dokumente" in "Selektiere dokumente" um.
    Dann ändert der agent nicht die dokumente, sondern selektiert die nur in der datenbank. Sinnvollerweise sollte dieses in einen ansicht passieren wo alle dokumente die selektiert werden könnte auch angezeigt werden, sonnst selektiert der agent auch dokumente die nicht sichtbar sind.