getParameterById method: DataSource class
Syntax
getParameterById(DSP_ID)
Description
Use this method to return the DataSourceParameter object with the given ID.
Parameters
| Parameter | Description |
|---|---|
|
DSP_ID |
Specifies the ID of the data source parameter as a string. |
Returns
A DataSourceParameter object, null if the data source parameter with the specified ID does not exist.
Example
import PTFP_FEED:FeedFactory;
import PTFP_FEED:DataSource:DataSource;
import PTFP_FEED:DataSource:DataSourceParameter;
import PTFP_FEED:UTILITY:Utility;
Local PTFP_FEED:FeedFactory &thisFeedFactory = create PTFP_FEED:FeedFactory();
Local PTFP_FEED:DataSource:DataSource &thisDS = &thisFeedFactory.⇒
getDataSource("DS_ID");
Local PTFP_FEED:DataSource:DataSourceParameter &thisDSP;
If (&thisDS <> Null) Then
Local PTFP_FEED:UTILITY:Utility &utility = &thisDS.Utility;
&thisDSP = &thisDS.getParameterById(&utility.DSPARAMETER_MAXROW);
/* Do some processing with the data source parameter here */
End-If;