All docs
V18.2
19.1 (preview)
18.2
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

DataSourceWizardExtension Class

A Web Dashboard extension that is the Data Source Wizard.

Declaration

export class DataSourceWizardExtension implements IExtension

Remarks

Refer to the DataSourceWizardExtensionOptions class that contains the extension's options to configure the extension.

The Web Dashboard supports two Data Source Wizard types:

The Web Dashboard uses the DataSourceWizardExtension by default. The code snippet below shows how to enable the other wizard:

dashboardControl.unregisterExtension('data-source-wizard');
dashboardControl.registerExtension(new DevExpress.Dashboard.MultiQueryDataSourceWizardExtension(dashboardControl));

Implements

constructor(dashboardControl)

Initializes a new instance of the DataSourceWizardExtension class.

Declaration

constructor(dashboardControl: DashboardControl, options?: DataSourceWizardExtensionOptions)

Parameters

Type Name Description
DashboardControl dashboardControl

A Web Dashboard control that owns the extension.

DataSourceWizardExtensionOptions options

A DataSourceWizardExtension object that contains the extension options.

Properties

isCustomSqlEnabled Property

Specifies whether custom SQL strings editing is enabled.

Declaration

isCustomSqlEnabled: boolean

Property Value

Type Description
boolean

true, if custom SQL strings editing is enabled; otherwise, false.

name Property

Specifies a unique extension name.

Declaration

name: string

Property Value

Type Description
string

A unique extension name. The return value is 'data-source-wizard'.

Remarks

Warning

Do not change a unique name of the extension registered in the Web Dashboard in order to avoid exceptions.

template Property

Declaration

template: string

Property Value

Type Description
string

Methods

showDataSourceCreatingDialog Method

Declaration

showDataSourceCreatingDialog(): JQueryPromise<any>

Returns

Type Description
JQueryPromise<any>

showSqlQueryEditingDialog(dashboardSqlDataSource) Method

Declaration

showSqlQueryEditingDialog(dashboardSqlDataSource: SqlDataSource, queryName?: string): void

Parameters

Type Name Description
SqlDataSource dashboardSqlDataSource
string queryName

start Method

Contains code that is executed when you register the dashboard extension.

Declaration

start(): void

stop Method

Contains code that is executed when you unregister the dashboard extension.

Declaration

stop(): void