EaxPropertyBar.setPropertyValue

Syntax

setPropertyValue(propertyName, value);

Parameters

propertyName. Property name.

value. Value to be assigned to the specified property.

Description

The setPropertyValue method controls availability of the Convert Data and Show As Ranks groups on the Data tab of the express report properties panel.

Example

Executing the example requires that the HTML page contains the EaxPropertyBar component named eaxPropBar (see Example of EaxPropertyBar and EaxGrid Components Collocation). Show and expand the Data panel, make unavailable the Convert Data and Show as Ranks items, and process the PropertyChanged event:

// Handle the PropertyChanged event
eaxPropBar.PropertyChanged.add(function (sender, args) {
    console.log("Property name: %s", args.getPropertyName());
});
// Get the Data panel
var dataPanel = eaxPropBar.getDataPanel();
// Show and expand this panel
dataPanel.show();
dataPanel.expand();
// Make unavailable the Convert Data and Show as Ranks items
eaxPropBar.setPropertyValue(PP.Exp.Ui.EaxPropertyViews.GridChangeData, False);

After executing the example the Data panel is shown and expanded, the Convert Data and Show as Ranks items become unavailable:

Manually select another value in the drop-down menu Filter by Table Values. After that the browser console will show name of the changed property:

Property name: Filter

See also:

EaxPropertyBar