Skip to Main Content

Breadcrumb

Overview: Feature Customization

Interactive Reports have a number of attributes that provide fine grained control over what is available in the Actions menu. For example you could set Flashback to No if you didn't want to provide access to that feature. Interactive Grid has so many new attributes that to keep the number of declarative options from becoming overwhelming some options are only available through advanced configuration using JavaScript code. The same is true for column attributes. Interactive Reports allow individual configuration of features such as sort, filter, highlight etc. In Interactive Grid a number of these have been combined into one setting; Enable Users To: Sort/Control Break/Aggregate. However each column feature can be controlled individually using advanced JavaScript code. Keep in mind that the UI to access a feature Such as the Actions > Data > Flashback menu is separate from the feature. If you disable the feature the menu item is hidden. But just hiding, disabling, or removing the menu item or toolbar button doesn't disable the feature. Most features of Interactive Grid can be controlled through APIs.

This example disables the flashback feature (See the Advanced: JavaScript Code attribute). In addition the Notes column does not allow sorting or aggregation (See the NOTES column Advanced: JavaScript Code attribute). As you can see from the code it is very straight forward as long as you know what properties can be set. One way to view all the configuration properties is to inspect the configuration from the browser's JavaScript Console.

From the JavaScript console type:
    apex.region("emp").widget().interactiveGrid("option","config")

Change the id "emp" to match whatever Static Id you gave the region. Use the browser's developer tools to explore the configuration object returned by the above expression. You should use the declarative setting if there is one and only use JavaScript configuration when there is no declarative setting or if the settings must be made conditionally.

Feature Customization