Member Junction
    Preparing search index...

    A composite component that provides a complete query viewing experience. Features:

    • Automatic parameter form display when query has parameters
    • Grid state persistence to User Settings
    • Parameter persistence to User Settings
    • Entity linking for clickable record IDs
    • Auto-run capability when all required params have saved values
    <mj-query-viewer
    [QueryId]="selectedQueryId"
    [AutoRun]="true"
    (EntityLinkClick)="openRecord($event)">
    </mj-query-viewer>

    Hierarchy (View Summary)

    Implements

    • OnInit
    • OnDestroy
    Index

    Constructors

    Properties

    AutoRun: boolean = true

    Whether to auto-run the query when all required params have saved values

    CompositionTokenClick: EventEmitter<CompositionTokenClickEvent> = ...

    Fired when a composition token ({{query:"..."}}) is clicked in the SQL info panel

    CurrentPageNumber: number = 1
    EntityLinkClick: EventEmitter<QueryEntityLinkClickEvent> = ...

    Fired when an entity link is clicked in the grid

    ExecutionTimeMs: number | null = null
    HasRun: boolean = false
    IsLoading: boolean = false
    LastError: string | null = null
    OpenQueryRecord: EventEmitter<{ queryId: string; queryName: string }> = ...

    Fired when user wants to open the full query record

    PageSize: number = 100

    Number of rows per page for server-side paging. Set to 0 to disable paging and load all rows at once.

    PersistParameters: boolean = true

    Whether to persist parameter values

    PersistState: boolean = true

    Whether to persist grid state

    Provider: IMetadataProvider | null

    If specified, this provider will be used for communication and for all metadata purposes. By default, if not provided, the Metadata and RunView classes are used for this and the default GraphQLDataProvider is used which is connected to the same back-end MJAPI instance as the Metadata and RunView classes. If you want to have this component connect to a different MJAPI back-end, create an instance of a ProviderBase sub-class like GraphQLDataProvider/etc, and configure it as appropriate to connect to the MJAPI back-end you want to use, and then pass it in here.

    QueryComplete: EventEmitter<RunQueryResult> = ...

    Fired when query execution completes

    QueryData: Record<string, unknown>[] = []
    QueryError: EventEmitter<Error> = ...

    Fired when query execution fails

    QueryInfo: MJQueryEntityExtended | null = null
    QueryStart: EventEmitter<void> = ...

    Fired when query execution starts

    QueryTotalRowCount: number = 0

    Paging state

    RowDoubleClick: EventEmitter<QueryRowClickEvent> = ...

    Fired when a row is double-clicked

    SavedGridState: QueryGridState | null = null
    SavedParams: QueryParameterValues = {}
    SelectionChange: EventEmitter<QuerySelectionChangedEvent> = ...

    Fired when selection changes

    SelectionMode: QueryGridSelectionMode = 'single'

    Selection mode for the grid

    ShowInfoPanel: boolean = false
    ShowParamsPanel: boolean = false
    ShowToolbar: boolean = true

    Whether to show the toolbar

    VisualConfig: QueryGridVisualConfig = {}

    Visual configuration for the grid

    "ɵdir": unknown
    "ɵfac": unknown

    Accessors

    • get ProviderToUse(): IMetadataProvider

      Returns either the default Metadata provider or the one specified in the Provider property, if it was specified

      Returns IMetadataProvider

    • get RunQueryToUse(): IRunQueryProvider

      Returns either the default RunQuery provider or the one specified in the Provider property, if it was specified

      Returns IRunQueryProvider

    • get RunReportToUse(): IRunReportProvider

      Returns either the default RunReport provider or the one specified in the Provider property, if it was specified

      Returns IRunReportProvider

    • get RunViewToUse(): IRunViewProvider

      Returns either the default RunView provider or the one specified in the Provider property, if it was specified

      Returns IRunViewProvider

    Methods

    • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

      Returns void