Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChooseSqlConnectionPage Class

Implements the Choose Data Connection section of the Report Wizard’s Specify Data Source Settings (Database) page and the Data Source Wizard’s Specify Data Source Settings (Database).

#Declaration

TypeScript
export class ChooseSqlConnectionPage extends WizardPageBase<DevExpress.Analytics.Wizard.ISqlDataSourceWizardState, DevExpress.Analytics.Wizard.ISqlDataSourceWizardState>

#Remarks

This page section allows users to select a data connection for a new data source.

You can customize this page or remove it from the Specify Data Source Settings (Database) page. To identify this section in code, use the following values:

See the following topics for more information:

#Inheritance

WizardPageBase<TState, TResult>
ChooseSqlConnectionPage

#constructor(connectionStrings)

Creates a new instance of the ChooseSqlConnectionPage class with the specified settings.

#Declaration

TypeScript
constructor(
    connectionStrings: ko.ObservableArray<DevExpress.Analytics.Wizard.IConnectionStringDefinition>,
    _getSqlConnectionsCallback?: () => DevExpress.Analytics.Internal.DxPromise<IConnectionStringDefinition[]>
)

#Parameters

Name Type Description
connectionStrings ObservableArray<IConnectionStringDefinition>

The connection string collection.

_getSqlConnectionsCallback () => DxPromise<IConnectionStringDefinition[]>

#Methods

#canNext Method

Specifies whether the next section is available.

#Declaration

TypeScript
canNext(): boolean

#Returns

Type Description
boolean

true, if the next section is available; otherwise, false.

#commit Method

Commits settings to the local page state.

#Declaration

TypeScript
commit(): JQuery.Promise<DevExpress.Analytics.Wizard.ISqlDataSourceWizardState, any, any>

#Returns

Type
Promise<ISqlDataSourceWizardState,any,any>

#initialize(state) Method

Initializes the section with the specified settings.

#Declaration

TypeScript
initialize(
    state: DevExpress.Analytics.Wizard.ISqlDataSourceWizardState
): JQuery.Promise<any, any, any>

#Parameters

Name Type Description
state ISqlDataSourceWizardState

The section’s state.

#Returns

Type
Promise<any,any,any>