SetupCompVarsAndRcpts method: NotificationTemplate class
Syntax
SetupCompVarsAndRcpts(&Rowset_Context)
Description
Use the SetupCompVarsAndRcpts method to set up variables for the component from the provided rowset. This method also sets up any additional recipients defined in the component.
The rowset corresponds to the component that the notification template was instantiated with. For example, if you created a notification template for JOB, the rowset used with this method should be based on the JOB component.
If you want to expand a component template, you must use this method first, before expanding the template.
Parameters
| Parameter | Description |
|---|---|
|
&Rowset_Context |
Specify an already instantiated and populated rowset containing the necessary variables. |
Returns
A string containing XML that is used by the GetAndExpandTemplate method.
Example
import PT_WF_NOTIFICATION:NotificationTemplate;
Local NotificationTemplate & mynotifytemplate;
&mynotifytemplate = create NotificationTemplate(%Component, %Market, &template⇒
Name, "C");
&xmlVars = &mynotifytemplate.SetupCompVarsAndRcpts(GetLevel0());
&mynotifytemplate.GetAndExpandTemplate(%Language, &xmlVars);
Related Topics