ViewChange @Command (Formula Language)
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.
Syntax
@Command( [ViewChange] )
or
@Command( [ViewChange] ; viewName )
Parameters
viewName
Text. Optional. The name of the view or folder you want to switch to.
Usage
This command executes after all @functions. Use @Command([SwitchView]) to execute immediately. 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 SwitchForm instead.
You can use this command in Web applications, but you must use the viewName parameter.
Examples
This formula switches to the By Author view.@Command([ViewChange]; "By Author")