setActionVisible(name, Boolean)

thisViewsheet.setActionVisible(name,Boolean) to show or hide Dashboard toolbar buttons.

Sets the visibility/accessibility of end-user Crosstab features. To disable a feature, set the value to false.

The 'Sort Column' setting overrides the sort.crosstab.aggregate and sort.crosstab.dimension property settings in Enterprise Manager.

Parameters

name

Name of Crosstab function (String):

'Menu Actions' (1)
'Export' (2)
'Show Details' (3)
'Sort Column' (4)
1 The ‘More’ button (menu horizontal).
2 The ‘Export’ button export. Applies also when the Crosstab is used as a Data Tip.
3 For Freehand Table.
4 The column header ‘Sort’ button sort.
Boolean

false: hide the specified function
true: show the specified function

Example

Crosstab1.setActionVisible("Show Details", false);

Either syntax below can be used in component script:

setActionVisible               // unqualified
Crosstab1.setActionVisible    // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.