Top.Mail.Ru
Open View
CTRL+K

Open View

In this article
  • Open View
  • Example of Opening a Script-Generated View
  • Click Action in YAML

Use this action in Browse mode to open a view: empty, existing, or script-generated.

You can open the current dashboard’s view in the following locations:

  • Window (selected by default. Replaces the home view in the current window)
    • Open in new window switch (opens the view in a new browser tab)
  • Side panel
    • Alignment (left or right on screen)
    • Action Buttons
  • Modal window
    • At click location (in Browse mode, the modal window with the view appears near the last click position)
    • Action Buttons
  • Placeholder (the view opens inside the selected placeholder)

For the Open view click action, configure parameters for all input values, if they are defined in the settings of the view being opened.

When opening a script-generated view, you may need to configure parameters. Use the following input methods: Column, Variable, Formula, or Set by aggregation.

Note
  • When using the Formula input method, the system passes the computed value of the formula, not the formula itself.
  • For the Formula and Set by aggregation input methods, use aggregation formulas with a limit value of 1.
  • In a placeholder, only the Variable and Set by aggregation input methods are available when configuring parameters for a script-generated view.

When opening a view in any window type in Browse mode, the view inherits filters from the source view.

When opening a view in a side or modal window in Browse mode:

  • If the opened view contains a Filter widget, you can apply it
  • Predefined filters apply to the opened view if configured for its widgets
  • You can use click filtering in the opened view if its filter mode is set to Single choice. To clear the click filter, click the selected value again

Consider the following limitations, when configuring the click action:

  • A view cannot display itself inside its own placeholder.
  • If a script returns an empty view to a placeholder, the placeholder hides in Browse mode but remains visible in Edit mode.

Click Action in YAML

To add a click action (OPEN_VIEW), use the keys listed in the tables below. Specify these keys within the onClick block. Keys for the onClick block are described on the page Click Actions.

KeyTypeDefinition
modeenumView opening mode:
EMPTY — none
EXISTED_VIEW — existing view
GENERATED_BY_SCRIPT — script-generated
viewKeystringView key
Only for EXISTED_VIEW mode
scriptKeystringScript key
Only for GENERATED_BY_SCRIPT mode
displayNamestringView name or display name for generated view
Only for GENERATED_BY_SCRIPT mode

To specify view or script parameters, include a parameters block. Inside this block, use the name and inputMethod keys.

KeyTypeDefinition
parametersScript parameters
namestringParameter name
inputMethodenumInput Method value

The openIn key controls, how the view opens during the click action. Use the keys listed below within this block.

KeyTypeDefinition
openInenumOpen in parameter
modeenumView display mode:
- WINDOW — in window
- DRAWER_WINDOW — in side panel
- MODAL_WINDOW — in modal window
- PLACEHOLDER — in placeholder
newWindowbooleanOpen in new window. Only for WINDOW mode
actionButtonsbooleanShow action buttons switch. Only for DRAWER_WINDOW and MODAL_WINDOW modes
positionByClickbooleanAt click location switch. Only for MODAL_WINDOW mode
alignmentenumAlignment:
LEFT — left
RIGHT — right
Only for DRAWER_WINDOW mode
placeholderNamestringPlaceholder name. Only for PLACEHOLDER mode

Example:

onClick:
  - mode: EXISTED_VIEW
    name: Open view
    viewKey: 488d8c5d-d61b-334e-befd-872892671b31
    type: OPEN_VIEW
    openIn: CURRENT_WINDOW
    parameters:
      - inputMethod: COLUMN
        name: Branch
        columnName: en_name
        tableName: case_table

Was the article helpful?

Yes
No
Previous
Execute Script
We use cookies to improve our website for you.