☝️Small business or a startup? See if you qualify for our special offer.
+
All documentation
  • API Reference for older versions
  • Introduction

    Flexmonster Pivot Table & Charts has a full-functional API to use the component in web applications.

    This API documentation describes objects, methods, and events. Use them to create your own UI controls and views to interact with Flexmonster.

    Begin with the new Flexmonster() API call that initializes the component. After that, explore the rest of the API and discover more component features and customization options.

    List of objects

    ObjectDescription
    ReportObjectContains all the possible aspects of pivot tables and pivot charts configuration.
    DataSourceObjectContains connection parameters and configurations for data sources.
    FormatObjectDefines how numeric values are formatted in the component.
    ConditionalFormatObjectDescribes conditional formatting rules.
    MappingObjectContains information about field data types, captions, multilevel hierarchies, and other view configurations of the data source.
    SliceObjectDefines which data subset from the data source is going to be shown in the report.
    FilterObjectContains filtering information.
    OptionsObjectUsed to configure functionality and manage UI controls.
    TableSizesObjectContains information about table sizes.
    CustomFieldObjectAllows setting custom fields for Excel export or storing some additional information.
    MeasureIdentifierObjectIdentifies measures that are used for different functionalities.
    GlobalObjectContains a configuration that will be applied to all reports.
    CellDataObjectContains information about a specific grid cell.
    ChartDataObjectContains information about a specific chart segment.
    ChartLegendDataObjectContains information about a specific chart legend element.
    ToolbarObjectContains information about the Toolbar.
    ShareReportConnectionObjectContains the configuration needed to share a report.
    FieldListItemObjectContains information about a Field List item and is used to sort the Field List items.
    ResultHierarchyObjectDescribes the structure of fields returned by the filteropen event and different methods.
    ResultMeasureObjectDescribes measures used in a report or available in a dataset.

    List of API calls

    API callDescription
    addCalculatedMeasureAdds a calculated measure.
    addConditionAdds a conditional formatting rule.
    alertShows an alert pop-up window with a custom message.
    clearClears the report.
    clearFilterClears the filter applied to the specified field.
    clearXMLACacheRequests Microsoft Analysis Services to clear the cache.
    closeFieldsListCloses the Field List.
    collapseAllDataCollapses all expanded nodes and drills up all levels of every hierarchy.
    collapseCellCollapses a specific node on the grid and charts.
    collapseDataCollapses all nodes of the specified field.
    connectToClears the current report and connects to a specified data source.
    customizeAPIRequestAllows customizing the request before it is sent to a server.
    customizeCellSets a function for customizing particular cells.
    customizeChartElementSets a function for customizing particular chart elements Flexmonster Pivot Charts.
    customizeContextMenuAllows customizing context menu.
    disposePrepares the pivot table instance to be deleted with the browser’s garbage collector.
    drillDownCellDrills down a specific hierarchy level on the grid and charts.
    drillUpCellDrills up a specific hierarchy level on the grid and charts.
    expandAllDataExpands all fields and drills down all multilevel hierarchies in rows, columns, or rows and columns.
    expandCellExpands a specific node on the grid and charts.
    expandDataExpands all nodes of the specified field.
    exportToExports the current view to Excel, PDF, CSV, HTML, or image format.
    getAllConditionsReturns a list of conditional formatting rules of the report.
    getAllHierarchiesReturns a list of all available fields.
    getAllHierarchiesAsyncThe async equivalent of getAllHierarchies.
    getAllMeasuresReturns a list of all available measures.
    getAllMeasuresAsyncThe async equivalent of getAllMeasures.
    getCellReturns information about a cell by its row and column indexes.
    getColumnsReturns a list of fields selected in the slice for columns.
    getColumnsAsyncThe async equivalent of getColumns.
    getConditionReturns a conditional formatting rule by its id.
    getFilterReturns the filter applied to the specified field.
    getFlatSortReturns an array of objects defining the sorting on the flat table.
    getFormatReturns a default number format or the number format for the specified measure.
    getMeasuresReturns a list of measures selected in the report.
    getMeasuresAsyncThe async equivalent of getMeasures.
    getMembersReturns a list of members for the specified field.
    getMembersAsyncThe async equivalent of getMembers.
    getOptionsReturns the OptionsObject of the current report.
    getReportReturns the ReportObject that describes the current report.
    getReportFiltersReturns a list of fields selected in the slice for report filters.
    getReportFiltersAsyncThe async equivalent of getReportFilters.
    getRowsReturns a list of fields selected in the slice for rows.
    getRowsAsyncThe async equivalent of getRows.
    getSelectedCellReturns information about selected cells.
    getSortReturns the sort type applied to the field.
    getTableSizesReturns table sizes that are set for the grid.
    getXMLACatalogsGets a list of all available catalogs on a given data source.
    getXMLACatalogsAsyncThe async equivalent of getXMLACatalogs.
    getXMLACubesGets a list of all available cubes on a given data source.
    getXMLACubesAsyncThe async equivalent of getXMLACubes.
    getXMLADataSourcesGets a list of all data sources by given URL for XMLA connection.
    getXMLADataSourcesAsyncThe async equivalent of getXMLADataSources.
    getXMLAProviderNameReturns type for a given proxyUrl.
    getXMLAProviderNameAsyncThe async equivalent of getXMLAProviderName.
    loadLoads the report file from the specified URL.
    offRemoves handlers for the specified event.
    onSets a handler for the specified event.
    openOpens a local report file.
    openCalculatedValueEditorOpens the Calculated value pop-up window.
    openFieldsListOpens the Field List.
    openFilterOpens the filter view for the specified field.
    printPrints the current view via the OS print manager.
    refreshRedraws the component.
    removeAllCalculatedMeasuresRemoves all calculated measures.
    removeAllConditionsRemoves all conditional formatting rules.
    removeCalculatedMeasureRemoves a calculated measure by its unique name.
    removeConditionRemoves a conditional formatting rule by its id.
    removeSelectionRemoves selection from cells on the grid.
    runQuerySets new rows, columns, measures, and report filters in the SliceObject and displays the updated data.
    saveSaves the current report to a chosen location.
    scrollToColumnScrolls the grid to the specified column.
    scrollToRowScrolls the grid to the specified row.
    setFilterApplies the filter to the specified field.
    setFlatSortSorts columns in the flat form.
    setFormatSets the default number format or a number format for the specified measure.
    setOptionsSets options for the component.
    setReportSets a report for the component.
    setSortSets the sort type to the specified field.
    setTableSizesReturns table sizes set for the component.
    shareReportSaves the current report to Flexmonster Data Server and provides a link to the saved report.
    showChartsSwitches the view to the specified chart type.
    showGridSwitches to the grid view.
    showGridAndChartsSwitches the view to the grid and charts; the chart type can be specified.
    sortFieldsListSets custom sorting for Field List items.
    sortingMethodOverrides the default ascending order of field members.
    sortValuesSorts a specific row or column in the compact form, the classic form, and the chart view.
    updateDataUpdates data for the report without clearing the report.

    List of events

    EventDescription
    afterchartdrawTriggered after chart rendering.
    aftergriddrawTriggered after grid rendering.
    beforegriddrawTriggered before grid rendering.
    beforetoolbarcreatedTriggered before the creation of the Toolbar.
    cellclickTriggered when a cell is clicked on the grid.
    celldoubleclickTriggered when a cell is double-clicked on the grid.
    chartclickTriggered when a chart element is clicked.
    datachangedTriggered after the user edits data.
    dataerrorTriggered when an error occurred during the loading of data.
    datafilecancelledTriggered when the Open file dialog was opened and the user clicks the Cancel button.
    dataloadedTriggered when the component loaded data.
    drillthroughcloseTriggered when the drill-through view is closed.
    drillthroughopenTriggered when the drill-through view is opened.
    exportcompleteTriggered when the export is complete.
    exportstartTriggered when the export starts.
    fieldslistcloseTriggered when the built-in Field List is closed.
    fieldslistopenTriggered when the built-in Field List is opened.
    filtercloseTriggered when the filter pop-up window is closed.
    filteropenTriggered when the filter pop-up window is opened.
    loadingdataTriggered when data starts loading from a local or remote CSV or JSON file, or after the report was loaded.
    loadinglocalizationTriggered when a localization file starts loading.
    loadingolapstructureTriggered for Microsoft Analysis Services when the OLAP cube structure starts loading, and for the custom data source API when the component sends the /fields request.
    loadingreportfileTriggered when a report file started loading.
    localizationerrorTriggered when an error appeared while loading a localization file.
    localizationloadedTriggered when a localization file was loaded.
    olapstructureerrorTriggered for Microsoft Analysis Services when an error occurred while loading the OLAP structure, and for the custom data source API when the response to the /fields request was not received successfully.
    olapstructureloadedTriggered for Microsoft Analysis Services after loading the OLAP structure, and for the custom data source API after receiving the response to the /fields request.
    openingreportfileTriggered when a user selects Open -> Local report on the Toolbar or the open() method is called.
    printcompleteTriggered when the OS print manager is closed.
    printstartTriggered when the OS print manager is opened to start printing.
    querycompleteTriggered after the data query was complete.
    queryerrorTriggered if an error occurred while running the query.
    readyTriggered when the component’s initial configuration is completed and the component is ready to receive API calls.
    reportchangeTriggered when a report is changed in the component.
    reportcompleteTriggered when the operations can be performed with the component (data was loaded successfully from the data source and the grid/chart was rendered).
    reportfilecancelledTriggered when a user clicks the Cancel button while selecting a local report to open.
    reportfileerrorTriggered when an error occurred during the loading of the report file.
    runningqueryTriggered before a data query is started.
    unauthorizederrorTriggered when the Accelerator or the custom data source API server sends the 401 Unauthorized error in response to Flexmonster's request.
    updateTriggered when a change occurred in the component.