setEnabledRanking(value);
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.
The setEnabledRanking method controls access to the Show As Ranks button on the Home tab of the express report tool ribbon.
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: