FlatList Class

Represents a Real Time Reporting (RTR) report UI Flatlist component. This class extends the ReportComponent class.

CGCloud

The RTRReportResult.FlatList class is used to access Flatlist information from RTR reports.

Here’s an example of how to extract the Flatlist data from the RTRReportResult object.

The following are methods for FlatList.

  • getRows()

    Returns an instance of a FlatlistRowIterable object with all the rows contained in the Flatlist.

  • getRows(String rowTypeFilter)

    Returns an instance of a FlatlistRowIterable object with all the rows that match the specified row type filter. The available values for the row type filter can be extracted with the getRowTypes method.

  • getColumns()

    Returns a set that includes all the available column names in the Flatlist.

  • getRowTypes()

    Returns all the available row type filters present in the Flatlist. The row type filters can be used to filter the dataset.

Returns an instance of a FlatlistRowIterable object with all the rows contained in the Flatlist.

static RTRReportResult.FlatList getRows()

Type:FlatlistRowIterable

Returns an instance of a FlatlistRowIterable object with all the rows that match the specified row type filter. The available values for the row type filter can be extracted with the getRowTypes method.

static RTRReportResult.FlatList getRows(String rowTypeFilter)

  • rowTypeFilter: Type:String. The value of the row type to filter the rows.

Type:FlatlistRowIterable

Returns a set that includes all the available column names in the Flatlist.

The method returns the following:

  • Dimension attributes—Include the name of the dimension and a report field separated by a dot. For example, productdimension.id, promotiondimension.id, and promotiondimension.phase.
  • KPI columns—Include the KPI name. For example, ProPlanIncrVolume.

static RTRReportResult.FlatList getColumns()

Type:Set<String>

Returns all the available row type filters present in the Flatlist. The row type filters can be used to filter the dataset.

static RTRReportResult.FlatList getRowTypes()

Type:Set<String>