For each enabled preview format (Print, Email, and Web), there must be a preview output connector available. The web and email formats can share the same preview connector. There must also be a preview output connector for the template preview.
• When service-enabling the Message, the Use default preview connectors option must be cleared. See Service-enabling the Message.For document previews in Print (paginated) format:
–
– Content type – application/pdfFor document previews in Email/Web (unpaginated) format:
– Driver – HTML unpaginated
– Content type – text/html
– Driver - TIFF
– Content type - image/tiff
Example 3
• PreviewPDF – For the print preview in Composition Center.
• PreviewHTML – For the email and web previews in Composition Center.
• PreviewTIFF - For the template preview in Composition Center.
• FileOUT – For the final release of printed output.
• EmailOUT – For the final release of emails.
• WebOUT – For final release of the web output.In the Runtime configuration, the Message is service-enabled, and the Use default preview connector option is cleared.In the Runtime Connector Selection Method dialog box, a variable called $connector[*] is used to select output connector.The script below is run before the Process and selects the output connectors to be used. In the script, a variable called $connstr is used to log the used output connectors.
if (IsPreview())
{
$ContentType = GetRequestedPreviewContentType();
if (GetPreviewTypeEx() == 1)
{
if ($ContentType == "image/tiff"){
$connector[0] = "PreviewTIFF";$connstr = $connector[0];}
}
else if (GetPreviewTypeEx() == 4)
{
if ($ContentType == "application/pdf")
{
$connector[0] = "PreviewPDF";
$connstr = $connector[0];
}
else if ($ContentType == "text/html")
{
$connector[0] = "PreviewHTML";
$connstr = $connector[0];
}
}
}
else
{
$connector[0] = "FileOUT";
$connector[1] = "EmailOUT";
$connector[2] = "WebOUT";
$connstr = $connector[0] + ", " + $connector[1] + ", " + $connector[2];
}
preproclog(0, " **** OUTCONNECTOR : " + $connstr);
• Configuring preview output connectors manually in the Ad Hoc Correspondence and Correspondence Reviewer documentation
• Preview functions in Scripting Reference Guide
| OpenText StreamServe 5.6.2 | Updated: 2018-01-26 |