Returns a NotesUIDatabase object representing the database that's currently open.
...
Usage
The GetCurrentDatabase method supersedes this property due to the failure of the property when the user accesses the current database through View - GoTo (for example, on the workspace menu with the database selected).
Hallo,
ich brauche aber die "uidb" aus "ws", weil ich eine Ansicht öffnen will
Set uidb = ws.CurrentDatabase
The GetCurrentDatabase method supersedes this property due to the failure of the property when the user accesses the current database through View - GoTo (for example, on the workspace menu with the database selected).
Dim ws As New NotesUIWorkspace
Dim uidb As NotesUIDatabase
Set uidb = ws.GetCurrentDatabase
Call uidb.OpenView("xy")
Weiß jemand wo ich die uidb greifen kann bzw. wie ich mit script eine View öffnen kann?Mal ehrlich. Wenn nicht hier wer dann? Aber das funktioniert besser, wenn Du z. B. das hier (http://atnotes.de/projekte/bp/team/tmc/_forumsregeln/rules001.html#22) beachten würdest ...
This example gets the current database and opens the By Category view.
Dim workspace As New NotesUIWorkspace
Dim db As NotesUIDatabase
Set db = workspace.GetCurrentDatabase
Call db.OpenView("By Category")Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim db As NotesUIDatabase
Set db = workspace.GetCurrentDatabase
Call db.OpenView("($All)")
End Sub