Script functions reference > Script functions in alphabetical order > G > GetPreviewType

GetPreviewType
Syntax
GetPreviewType();
Description
Returns a number, indicating whether the current job is a preview job or not. If the job is a preview job, the number indicates from where the preview job was invoked.
Returns
0
1
The job is a preview job, invoked from Ad Hoc Correspondence, Correspondence Reviewer, or Composition Center.
2
The job is invoked from a connecter, containing an strs-tm-preview metadata (as HTTP header value).
3
Example
See Example 45.
OpenText StreamServe 5.6 Updated: 2013-03-01