ssIncDynamicConversionByRulesEngine ssIncInlineDynamicConversion ssIsNativeDoc Oracle Fusion Middleware Online Documentation Library

Idoc Script Extensions 9-11

9.18 ssIncDynamicConversionByRule

Description This script extension, like the ssIncDynamicConversion extension, can be used to perform a dynamic conversion of a native document where the resulting HTML is returned in an Idoc string variable that can be placed directly on a web page, in the form of an HTML snippet. Unlike ssIncDynamicConversion, this extension uses a specified rule from the Dynamic Converter rules engine in order to decide which conversion template to use. It therefore does not require the caller to specify a managed conversion template or conversion layout. Parameters ■ dDocName : The dDocName of native document to convert. ■ rule : The name of Dynamic Converter rule to use. ■ dcPageNum : The page number of the document to convert optional. Returns An HTML string snippet of the document conversion. Code Example --ssIncDynamicConversionByRuledDocName, rule, 1--

9.19 ssIncDynamicConversionByRulesEngine

Description This script extension, like the ssIncDynamicConversion extension, can be used to perform a dynamic conversion of a native document where the resulting HTML is returned in an Idoc string variable that can be placed directly on a web page, in the form of an HTML snippet. Unlike ssIncDynamicConversion, this extension uses the normal Dynamic Converter rules engine in order to decide which conversion template to use. It therefore does not require the caller to specify a managed conversion template or conversion layout. Parameters ■ dDocName : The dDocName of native document to convert. ■ dcPageNum : The page number of the document to convert optional. Returns An HTML string snippet of the document conversion. Code Example --ssIncDynamicConversionByRulesEnginedDocName, 1-- 9-12 Oracle Fusion Middleware Technical Reference Guide for Site Studio

9.20 ssIncInlineDynamicConversion

This script extension, like the ssIncDynamicConversion extension, can be used to perform a dynamic conversion of a native document where the resulting HTML is returned in an Idoc string variable that can be placed directly on a web page, in the form of an HTML snippet. Unlike ssIncDynamicConversion, this extension uses a built-in blank template for the dynamic conversion and therefore does not require the caller to specify a managed conversion template or conversion layout. Parameters ■ dDocName : The dDocName of native document to convert. ■ dcPageNum : the page number of the document to convert optional. Returns An HTML string snippet of the document conversion. Code Example --ssIncInlineDynamicConversiondDocName, 1--

9.21 ssIsNativeDoc

Description This script extension can be used to detect whether a managed document is to be considered a native document, and thus available for dynamic conversion, or a contributor data file, which requires no conversion. The comparison is not an inclusive test for a native document; the test is an exclusive test for data files. The return of yes as a result means that the document was shown to not be a data file. Parameters ■ dDocName : The dDocName of document to test. Returns Boolean value [1 | 0]. Code Example --Variable = ssIsNativeDocdDocName--

9.22 ssRandom