GetDataSource Method for an Application

The GetDataSource method returns the name of the data source that Siebel CRM defines in the DataSource server parameter for the session. The default value is ServerDataSrc.

Format

dataSrc = Application.InvokeMethod("GetDataSource")

No arguments are available.

Used With

To use this method, you can use an Application.InvokeMethod call with the following interfaces:

  • COM Data Control

  • Siebel Java Data Bean

  • Mobile Web Client Automation Server

  • Server Script

Examples

The following Siebel eScript code detects the data source and displays the name of the data source in a dialog box:

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

The following example is in Siebel VB:

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