Editar

Compartilhar via


getCurrentView (Client API reference)

Gets a reference to the current view.

Grid types supported

Read-only grid

Syntax

viewSelector.getCurrentView();

Return Value

Type: Lookup object

Description: The Lookup object has the following values:

  • entityType: Number. The object type code for the SavedQuery (1039) or UserQuery (4230) that represents the view the user can select.
  • id: String. The Id for the view the user can select.
  • name: String. The name of the view the user can select.

Remarks

If the subgrid control is not configured to display the view selector, calling this method on the viewSelector object will throw an error.

To get the viewSelector object, see ViewSelector.