Qlik Sense / Qlik Analytics Platform Articles, Projects & Tutorials by Stefan Walther

Enable/Disable support to export data

Learn how to modify your visualization extension to enable or disable the ability to export the data on right click.

Qlik Sense 3.0 introduces the possibility to enable/disable the functionality to export the underlying data of a visualization extension.

To define whether exporting data should be enabled or not, use the property exportData in the section support:


    definition: {
        ...
    },
    support: {
        exportData: true
    },
    initialProperties: {
        ...
    },
    ...
            

The following context menu will then be shown:

Conditional enablement of exportData

If the user wants to export the data, but the extension does not (yet) contain any data, the following notification will be shown:

To prevent such a message, exportData can also return a function instead of a boolean value:


    support: {
        exportData: function( layout ) {
            // The context menu will only be enabled if there is data to export.
            return layout.qHyperCube.qDataPages[0].qMatrix.length;
        } 
    }

Qlik Sense server & export (exportData)

Note that settings defined in your Qlik sense visualization extension can be overruled in Qlik Sense server's management console: