Back to Devexpress

DataSourceWizardExtensionOptions Interface

dashboard-js-devexpress-dot-dashboard-dot-designer-077061d5.md

latest3.2 KB
Original Source

DataSourceWizardExtensionOptions Interface

Provides options for customizing the DataSourceWizardExtension and MultiQueryDataSourceWizardExtension.

Declaration

ts
export interface DataSourceWizardExtensionOptions

Remarks

See the following topic for information on how to use the DashboardControl’s client-side API: Extensions Overview.

See Also

Extensions in the Web Dashboard

Properties

allowCreateNewJsonConnection Property

Specifies whether an end user can create a JSON data source with a new data connection.

Declaration

ts
allowCreateNewJsonConnection?: boolean

Property Value

TypeDescription
boolean

true , to allow end users to create a JSON data source with a new data connection; otherwise, false.

|

See Also

Dashboard Data Source Wizard

enableCustomSql Property

Enables a user to specify a custom SQL string in the Data Source wizard.

Declaration

ts
enableCustomSql?: boolean

Property Value

TypeDescription
boolean

true , to allow a user to specify a custom SQL string in the Data Source wizard; otherwise, false.

|

Remarks

Executing custom SQL queries is forbidden by default. Use the AllowExecutingCustomSql property to allow the Web Dashboard to execute SQL queries on the server side.

Warning

The use of custom SQL queries can lead to inadvertent or unauthorized modifications to your data/database structure. Ensure that you follow best practices and implement the appropriate user read/write privileges at database level.

onCustomizeDataSourceWizard Property

A handler for the event that allows you to customize the Dashboard Data Source Wizard.

Declaration

ts
onCustomizeDataSourceWizard?: (args: IDashboardWizardEventArgs) => void

Property Value

TypeDescription
(args: IDashboardWizardEventArgs) => void

A function that is executed before the Dashboard Data Source Wizard is invoked.

|

wizardSettings Property

Declaration

ts
wizardSettings?: IDashboardDataSourceWizardSettings

Property Value

Type
IDashboardDataSourceWizardSettings