例: NotesViewEntry class

  1. 次のスクリプトは現在のビューエントリを検索し、すぐ下の子エントリの数を出力します。
    Dim session As New NotesSession
    Dim db As NotesDatabase
    Dim view As NotesView
    Dim entry As NotesViewEntry
    Set db = session.CurrentDatabase
    Set view = db.GetView("By Category")
    view.AutoUpdate = False
    Set entry = view.GetEntryByKey("Inventory")
    Messagebox entry.ChildCount
  2. 次のスクリプトはビューエントリに関連付けられた文書を検索します。
    Dim session As New NotesSession
    Dim db As NotesDatabase
    Dim view As NotesView
    Dim entry As NotesViewEntry
    Dim doc As NotesDocument
    Set db = session.CurrentDatabase
    Set view = db.GetView("By Category")
    view.AutoUpdate = False
    Set entry = view.GetEntryByKey("Product Specifications")
    Set doc = entry.Document
  3. 次のスクリプトは、現在の「Cars」ビューエントリに関連付けられた「Parts」文書のユニバーサル ID を表示します。
    Dim session As New NotesSession
    Dim db As NotesDatabase
    Dim view As NotesView
    Dim entry As NotesViewEntry
    Set db = session.CurrentDatabase
    Set view = db.GetView("By Category")
    view.AutoUpdate = False
    Set entry = view.GetEntryByKey("Cars")