createQueryView (NotesDatabase - JavaScript)

Creates a query view.

Defined in

NotesDatabase

Syntax

createView(viewname:string, formula:string) : NotesView

createView(viewname:string, formula:string, templateview:NotesView) : NotesView

createView(viewname:string, formula:string, templateview:NotesView, prohibitdesignrefreshmodifications:boolean) : NotesView

Parameter Description
viewname A name for the view. Defaults to the "(untitled)" view. The view is created even if this name duplicates an existing view.
formula An SQL query selection formula. This formula overrides the selection formula of the template view.
templateview An existing view from which the new view is copied. Defaults to either:
  • view checked as "Default design for new folders and views" in the database
  • none if no view in the database is specified as the default design
Note: The template view cannot be of type "Shared, desktop private on first use."
prohibitdesignrefreshmodifications
  • true (default) to prohibit the view design from being refreshed
  • false to allow the view design to be refreshed
Return value Description
NotesView The new query view.

Usage

The template view must be accessible to the program, so can be a public view or a private view owned by the effective ID running the agent, but cannot be a private view stored in the desktop.

Language cross-reference

CreateQueryView method in LotusScript® NotesDatabase class

createQueryView method in Java Database class