AddDistributionOption method: PostReport class
Syntax
AddDistributionOption(DistIdType, DistId)
Description
Use the AddDistributionOption method to specify the users authorized to view the report once it is available in the Report Manager.
Parameters
| Parameter | Description |
|---|---|
|
DistIdType |
Specify the distribution ID type as a string. This identifies if the value passed in the DistID is either a user or role. Values for this parameter are:
|
|
DistID |
Specify the distribution ID as a string. |
Returns
Returns a number: 0 if successful, 1 if the system detected an error in the parameter passed.
Example
The following example grants access to the VP1 user and all users associated with the MANAGERS role.
&POSTRQST.AddDistributionOption("User", "QEDMO" );
&POSTRQST.AddDistributionOption("Role", "MANAGERS");