NavigatorRibbon.setViewEditButtonsStateByClass

Syntax

setViewEditButtonsStateByClass (classId)

Parameters

classId. Objects class, an instance of the PP.Mb.Ui.MetabaseObjectClass enumeration.

Description

The setViewEditButtonsStateByClass method sets activity for controls housed in the ribbon, depending on object class.

Comments

Different options are available for different object classes: express reports can be viewed or edited, and discussed in social networks, some objects can only be viewed, and containers can only be opened in the navigator, thus, all buttons are unavailable for them.

Example

To execute the example, the page must contain the NavigatorRibbon component named ribbon.

To show buttons as when working with an express report:

ribbon.setViewEditButtonsStateByClass(2561);

Show show buttons as when working with a regular report:

ribbon.setViewEditButtonsStateByClass(2562);

See also:

NavigatorRibbon