setDataSourceById method: Feed class

Syntax

setDataSourceById(DataType_ID)

Description

Use this method to set the data source for the Feed object by data type ID.

Parameters

Parameter Description

DataType_ID

Specifies the data type ID to set as the data source.

Returns

A DataSource object if successful, null otherwise.

Example

import PTFP_FEED:FeedFactory;
import PTFP_FEED:Feed;
import PTFP_FEED:DataSource:DataSource;

Local PTFP_FEED:FeedFactory &thisFeedFactory = create PTFP_FEED:FeedFactory();
Local PTFP_FEED:Feed &thisFeed = &thisFeedFactory.createFeed("feed_ID");
Local PTFP_FEED:DataSource:DataSource &thisDS;

&thisDS = &thisFeed.setDataSourceByID("FEED");

Related Topics