Siebel Object Interfaces Reference > Interfaces Reference > Application Methods >

GetDataSource Method


Returns the name of the data source, as defined in the CFG file, that is being used for the session.

Syntax

dataSrc = Application.InvokeMethod("GetDataSource")

Argument
Description

none

 

Returns

A string containing the value of the data source currently used by the application.

Used With

COM Data Control, Java Data Bean, Mobile Web Client Automation Server, Server Script

Example

The following eScript example detects the data source and displays its name in a dialog box.

var dataSrc = TheApplication().InvokeMethod("GetDataSource");
TheApplication().RaiseErrorText(dataSrc);

The following is the same example in Siebel VB.

Dim dataSrc As String
dataSrc = TheApplication.InvokeMethod("GetDataSource")
TheApplication.RaiseErrorText(dataSrc)

Siebel Object Interfaces Reference