getSettingById method: DataSource class

Syntax

getSettingById(DSS_ID)

Description

Use this method to return a DataSourceSetting object for the given ID.

Parameters

Parameter Description

DSS_ID

Specifies the ID of the data source setting as a string.

Returns

A DataSourceSetting object if successful, null if the data source setting with the specified ID does not exist.

Example

import PTFP_FEED:FeedFactory;
import PTFP_FEED:DataSource:DataSource;
import PTFP_FEED:DataSource:DataSourceSetting;

Local PTFP_FEED:FeedFactory &thisFeedFactory = create PTFP_FEED:FeedFactory();
Local PTFP_FEED:DataSource:DataSource &thisDS = &thisFeedFactory.⇒
getDataSource("DS_ID");
Local PTFP_FEED:DataSource:DataSourceSetting &thisDSS;
If (&thisDS <> Null) Then
   &thisDSS = &thisDS.getSettingById("DSS_ID");
   /* Do some processing with the data source setting here */
End-If;

Related Topics