Alternative Options to Specify Email or Web Attributes

To set the email or web attributes in PeopleTools versions prior to release 8.4, your PeopleCode program was similar to the following:

To Set Attributes for Web (Prior to 8.4)

The following example shows how to set web attributes in PeopleTools versions prior to release 8.4:

&RQST.OutDestType = "Web";
&RQST.OutDestFormat = "PDF";
&RQST.OutDest = "User : VP1,Role :Managers";

Set Attributes for Email (Prior to 8.4)

The following example shows how to set email attributes in PeopleTools versions prior to release 8.4:

Local string &Subject ;
Local string &Text;

&Subject = "SQR Report:  Cross Reference Listing";
&Text = "This text will be displayed as the text of this email ";
&RQST.OutDestType = "Email";
&RQST.OutDestFormat = "PDF";
&RQST.OutDest = "User : VP1,Role : MANAGERS";
&RQST.EmailSubject = &Subject;
&RQST.EmailText = &Text;
&RQST.EmailAttachLog = False;  

Set Attribute for Web (8.4 and Later)

The following example shows how to set web attributes in PeopleTools versions release 8.4 and later:

&RQST.SetOutputOption("Web", "PDF", "");
&RQST.AddDistributionOption("User", "QEDMO");
&RQST.AddDistributionOption("Role", "MANAGERS");

Set Attribute for Email (8.4 and Later)

The following example shows how to set web attributes in PeopleTools versions release 8.4 and later:

Local string &Subject ;
Local string &Text;

&Subject = "SQR Report:  Cross Reference Listing";
&Text = "This text will be displayed as the text of this email ";
&RQST.SetOutputOption("Email", "PDF", "");
&RQST.SetEmailOption(&Subject, &Text, "abc@xyz.com", "False", "False");
&RQST.AddDistributionOption("User", "QEDMO");
&RQST.AddDistributionOption("Role", "MANAGERS");