Interface IStiAppDataSource

Provides access to the datasource.

Hierarchy

Implemented by

Index

Properties

IAsIs

IAsIs: Interface<IAsIs> = new Stimulsoft.System.Interface<IAsIs>("IAsIs")

IStiAppCell

IStiAppCell: Interface<IStiAppCell> = new Stimulsoft.System.Interface<IStiAppCell>("IStiAppCell")

Methods

fetchChildRelations

  • Returns an enumeration of the child data relations for this data source.

    Parameters

    • activePreferred: boolean

    Returns List<IStiAppDataRelation>

    The enumeration of the data relations.

fetchColumnValues

  • fetchColumnValues(names: List<string>): List<any[]>
  • Returns an array of values for the specified column in the specified position.

    Parameters

    • names: List<string>

      An array of names of the data column.

    Returns List<any[]>

    The enumeration of the data column values.

fetchColumnValuesAsync

  • fetchColumnValuesAsync(names: List<string>): Promise<List<any[]>>
  • Parameters

    • names: List<string>

    Returns Promise<List<any[]>>

fetchColumns

  • Returns an enumeration of the data columns from this dictionary.

    Returns List<IStiAppDataColumn>

    The enumeration of the data columns.

fetchParentRelations

  • Returns an enumeration of the parent data relations for this data source.

    Parameters

    • activePreferred: boolean

    Returns List<IStiAppDataRelation>

    The enumeration of the data relations.

getConnection

  • Returns a connection to data for this data source.

    Returns IStiAppConnection

    Reference to the connection.

getDataTable2

  • getDataTable2(allowConnectToData: boolean): Promise<DataTable>
  • Returns a DataTable with data from this datasource.

    Parameters

    • allowConnectToData: boolean

      Allow to call Connect() method. By default is true.

    Returns Promise<DataTable>

    The DataTable with data.

getDictionary

  • Returns a reference to the dictionary which contains this datasource.

    Returns IStiAppDictionary

    Reference to the app.

getKey

  • getKey(): string
  • Returns unique key to this cell object.

    Returns string

getName

  • getName(): string
  • Returns a name of the component.

    Returns string

    The name of component.

getNameInSource

  • getNameInSource(): string
  • Returns a name of the component in the data source.

    Returns string

    The name of component

setKey

  • setKey(key: string): void
  • Sets unique key to this cell object.

    Parameters

    • key: string

    Returns void

Generated using TypeDoc