MainCatView.setEnabledRanking

Syntax

setEnabledRanking(value);

Parameters

value .Value that determines access to the button: if this value is set to True, the Show As Ranks button is available on the tab, otherwise it is unavailable.

Description

The setEnabledRanking method controls access to the Show As Ranks button on the Home tab of the express report tool ribbon.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Open access to the Show As Ranks button on the Home tab:

// Get view of the Home tab
var category = expressBox.getRibbonView().getMainCategory();
// Open access to the Show as Ranks button
category.setEnabledRanking(False);

Before executing this example the Show As Ranks button is active:

After executing the example this button becomes inactive:

See also: