Salesforce

DbName (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

DbName (Magic xpa 4.x)

Identifies a database's data source by name from the Data repository.

Syntax:

DbName(number, info type)

Parameters:

number: The row entry in a Data repository.

info type. Defines the information that you want to retrieve about the data source. The function will return a different value according to the type value as follows (Since version: 1.5):

  • 1 – Database data source name

  • 2 – Magic xpa data source name

  • 3 – Database name

  • 4 – DBMS name

    No value or an illegal value will act as value=1.

Returns:

DB data source name from row (number) in the Data repository.

Examples:

DbName(3) or DbName('3'DSOURCE) each return the name of the data source shown in the 3rd row of the Data repository.

Note:

The use of the DSOURCE literal will assure that the correct entry will be chosen even if the data source's position in the Data repository has changed. The data source sequence number and path behave exactly as defined in the Data repository.

See also:

The Online and Rich Client Samples projects (program SQ11 and RSQ11)

Reference
Attachment 
Attachment