Skip to main content
A newer version of this page is available.
All docs
V19.1

SpecifyJsonConnectionPage<TState, TResult> Class

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

Declaration

class SpecifyJsonConnectionPage extends ChooseJsonConnectionPage

Type Parameters

Name Description
TState

A type of the state to initialize the page (optional).

TResult

A type of the page’s commit result (optional).

Remarks

This section allows users to choose a data connection or create a new connection for a JSON data source.

This page section is available on the Specify Data Source Settings (JSON) page if there are predefined data connections. Otherwise, the ChooseJsonSourcePage section is available.

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

See the following topics for more information:

Implements

constructor(connections, canCreateNewJsonDataSource)

Creates a new instance of the SpecifyJsonConnectionPage<TState, TResult> class with the specified settings.

Declaration

constructor(
    connections: any,
    canCreateNewJsonDataSource: any
)

Parameters

Name Type Description
connections any

A connection collection.

canCreateNewJsonDataSource any

Specifies whether it is possible to create a new data source.

Methods

canNext Method

Specifies whether the next section is available.

Declaration

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

commit(): JQueryPromise<IJsonDataSourceWizardState>

Returns

Type Description
JQueryPromise<IJsonDataSourceWizardState>

A JQuery Promise object that identifies whether the commit succeeded.

initialize(state) Method

Initializes the section with the specified settings.

Declaration

initialize(
    state: any
): JQueryPromise<IWizardPage>

Parameters

Name Type Description
state any

The section’s state.

Returns

Type Description
JQueryPromise<IWizardPage>

A JQuery Promise object that identifies whether section initialization succeeded.