loadFromTemplate method: Feed class
Syntax
loadFromTemplate(template_ID)
Description
Use this method to load the specified feed template definition from the database.
Parameters
| Parameter | Description |
|---|---|
|
template_ID |
Specifies the feed template ID as a string. |
Returns
A Boolean value: True if the feed template definition was loaded successfully, False otherwise.
Example
import PTFP_FEED:FeedFactory;
import PTFP_FEED:Feed;
Local PTFP_FEED:FeedFactory &thisFeedFactory = create PTFP_FEED:FeedFactory();
Local PTFP_FEED:Feed &thisFeed = &thisFeedFactory.getFeed("feed_ID", ⇒
&thisFeedFactory.Utility.OPERATINGMODE_DEFAULT);
If &thisFeed <> Null Then
&succeed = &thisFeed.loadFromTemplate("template_ID");
End-If;