• JMap.Table.getTableData

    Asynchronously retrieves the JMap table data for a specified tabular data source ID.

    Parameters

    • dataSourceId: JId

      The ID of the JMap data source.

    • params: JTableDataParams

      Includes the following optional parameters: startIndex, limit, filter, sort. startIndex: The starting index for data retrieval (zero-based). limit: The maximum number of records to retrieve. filter: A CQL filter. sort: A sort model.

    Returns Promise<JTableData>

    A promise that resolves to a JTableData object representing the table data.

    Throws

    If no data source is found for the given ID.

    Example

    // Retrieves up to 50 rows from data source ID 3, starting at index 0, sorted in ascending order based on the "ATTRIBUTE_A" attribute
    JMap.Table.getTableData(3, {startIndex: 0, limit: 50, sort:"ATTRIBUTE_A ASC"}).then(tableData => {
    console.log(tableData);
    }).catch(error => {
    console.error("Failed to fetch table data:", error);
    });