Member Junction
    Preparing search index...

    A single named dataset: columns + rows + provenance + per-table state.

    This is the standard unit of tabular data in MemberJunction. Self-describing: given just this object, a consumer knows what the data is, where it came from, and how to interpret each column.

    Rows are flat Record<string, unknown>[] — same shape as RunView/RunQuery.

    Index

    Constructors

    Properties

    columns: MJColumnDescriptor[] = []

    Column definitions with type information and entity lineage

    computations?: DataComputation[]

    Pre-computed aggregations for this table's data

    description?: string

    Human-readable description of what this table contains

    How the data was produced, how much there is, how long it took

    name: string

    Unique name for this table within a collection

    pageNumber?: number

    Current page number (1-based)

    rows: Record<string, unknown>[] = []

    The actual row data

    selectedRows?: {
        rowData?: Record<string, unknown>;
        rowIndex: number;
        rowKey?: string;
    }[]

    Currently selected rows in this table

    sorting?: { direction: "asc" | "desc"; field: string }[]

    Current sort state applied to this table

    source?: "other" | "static" | "view" | "query" | "computed"

    How this table's data was produced

    Methods

    • Create from a single-table DataSnapshot (legacy format)

      Parameters

      • spec: {
            columns?: MJColumnDescriptor[];
            entityName?: string;
            extraFilter?: string;
            metadata?: DataTableMetadata;
            parameters?: Record<string, string | number | boolean>;
            queryCategoryPath?: string;
            queryName?: string;
            rows?: Record<string, unknown>[];
            source?: string;
        }
      • defaultName: string = 'results'

      Returns DataTable