Skip to content

ReportViewJQuery class

ReportView


⊕ new ReportViewJQuery(): ReportViewJQuery



Builds and executes current report’s query.

▸ buildAndExecute(options?: any): void

  • options: any, Optional - The options. In particular, options.page defines what page of data to query.

Returns void


Returns the context.

▸ getContext(): EqContext

Returns EqContext - [[EqContext]] object.


Initializes the view.

▸ init(options?: ReportViewOptions): void

Returns void


Loads report by ID.

▸ loadReport(reportId: string): void

  • reportId: string - The ID of the report to load.

Returns void


Creates the new report.

▸ newReport(): void

Returns void


Removes current report.

▸ removeCurrentReport(): void

Returns void


Renders current report.

▸ renderCurrentReport(): void

Returns void


Renders the list of reports.

▸ renderReportList(options?: any): void

  • options: any, Optional - The options. In particular, options.reportIndex defines which report should be active.

Returns void


Shows the dialog to save the report with new name.

▸ saveCurrentReportAs(): void

Returns void


Sets active report.

▸ setActiveReport(reportId: string): void

  • reportId: string - The ID of the report to make active.

Returns void


Sends current report’s query to back-end.

▸ syncReport(): void

Returns void



Clears the errors.

▸ clearErrors(): void

Returns void


The handler of the “Clear” button click.

▸ clearReportButtonClick(): void

Returns void


▸ createColumnsBarWidget(placeholderElement: HTMLElement): Widget

  • placeholderElement: HTMLElement

Returns Widget


▸ createDefaultBroker(context: EqContext): EqBroker

Returns EqBroker


Creates the default chart provider for the view.

▸ createDefaultChartProvider(): ChartProvider

Returns ChartProvider - the created [[ChartProvider]] object.


▸ createQueryPanelWidget(placeholderElement: HTMLElement): Widget

  • placeholderElement: HTMLElement

Returns Widget


Disables export buttons.

▸ disableExportButtons(): void

Returns void


Shows records count.

▸ displayRecordsCount(count: number): void

  • count: number - The value to show.

Returns void


Enables export buttons.

▸ enableExportButtons(): void

Returns void


The handler of errors.

▸ errorHandler(error: any): void

  • error: any - The error object.

Returns void


Hides export buttons.

▸ hideExportButtons(): void

Returns void


Inserts the report to the list of reports.

▸ insertIntoReportList(report: Report): void

  • report: Report - The [[Report]] object to be inserted.

Returns void


The handler of the “Load” button click.

▸ loadReportButtonClick(): void

Returns void


The handler of the “New” button click.

▸ newReportButtonClick(): void

Returns void


Removes the report from the list of reports.

▸ removeFromReportList(reportId: string): number

  • reportId: string - The ID of the report to be removed.

Returns number - the index of removed report.


The handler of the “Remove” button click.

▸ removeReportButtonClick(): void

Returns void


Renders a single item in the list of reports.

▸ renderReportItemInList(report: Report,ul: HTMLUListElement): void

  • report: Report - The [[Report]] object to render.
  • ul: HTMLUListElement - The [[HTMLUListElement]] to add the item to.

Returns void


Renders report panels.

▸ renderReportPanels(): void

Returns void


The handler of the “Save” button click.

▸ saveReportButtonClick(): void

Returns void


Shows export buttons.

▸ showExportButtons(): void

Returns void


The handler of the “Update” button click.

▸ updateReportButtonClick(): void

Returns void