getDataSource method: FeedFactory class
Syntax
getDataSource(DataType_ID)
Description
Use this method to create a DataSource object with the given data type ID.
Parameters
None.
| Parameter | Description |
|---|---|
|
DataType_ID |
Specifies the data type ID for the data source, as a string. |
Returns
A DataSource object if successful, null otherwise.
Example
import PTFP_FEED:FeedFactory;
import PTFP_FEED:DataSource:DataSource;
Local PTFP_FEED:FeedFactory &thisFeedFactory = create PTFP_FEED:FeedFactory();
Local PTFP_FEED:DataSource:DataSource &thisDS;
&thisDS = &thisFeedFactory.getDataSource("FEED");
Related Topics