Switches to the specified view or folder within the current database or, if a view or folder is not specified, displays the View menu so the user can select a view.
@Command( [SwitchView] )
or
@Command( [SwitchView] ; viewName )
viewName
Text. Optional. The name of the view or folder you want to switch to.
This command executes immediately. Use the ViewChange @command to execute after all @functions. See the Order of evaluation for formula statements topic for more details.
This command doesn't work from within a document or form, so you cannot use it to view a document through another form. Use @Command([SwitchForm]) instead.
You can use this command in Web applications, but you must use the viewName parameter.
OpenView method of LotusScript® NotesUIDatabase class