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

GetCurrOutConn
Syntax
GetCurrOutConn();
Description
Returns the current output connector. This can be useful e.g. if you want to create output via an array of connectors.
Returns
str
The name of the output connector. If connector is not found, for example if the script is run in the wrong scope where there is no Process, an empty string is returned.
Example
The following example creates a variable to use as a hyperlink value in StoryTeller, since different links are required depending on if the document is a PDF or not.
if( strIdx( GetCurrOutConnector(), "PDF" ) > 0 )
{
     $link = "javascript:this.pageNum=" + $anchorPage +";"; 
}
else
{
     $link = "#" + stEvalXPath("anchorName)")
}
 
 
OpenText StreamServe 5.6 Updated: 2013-03-01