ssRandom ssGetNodeProperty ssGetWebsiteNodeType ssGetCoreMajorVersion

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

Description This script extension is used to generate a random number. Parameters It has no parameters. Returns A non-negative integer value random number. Idoc Script Extensions 9-13 Code Example --ssRandom-- --Variable = ssRandom--

9.23 ssGetNodeProperty

Description This script extension can be used to obtain a node property for either the current section or an explicitly specified section. It is typically used to access custom node properties. Parameters ■ nodeId : The nodeId of the section to be queried optional. If omitted, the current section is used. ■ name : The property name. Returns Returns the value of the specified property. If label is used, the section label will be returned, but other properties can be specified. Code Example For example, the following command will retrieve the section label for the current section: --ssGetNodePropertylabel-- While the following command will retrieve the section label for section 474: --ssGetNodeProperty474, label --

9.24 ssGetWebsiteNodeType

Description This script extension can be used to tell the difference between a site node the root of the hierarchy and a regular section node. It can also tell the difference between an ASP and a non-ASP site or section node. Parameters ■ siteId : The siteId of the web site to be queried optional. ■ nodeId : The nodeId of the section to be queried. Returns The return value is one of the following: ■ : Site node for an HCSPJSP type site. ■ 2 : Section node for an HCSPJSP type site. ■ 100 : Site node for an ASP type site. ■ 102 : Section node for an ASP type site. 9-14 Oracle Fusion Middleware Technical Reference Guide for Site Studio Code Example --ssGetWebsiteNodeTypesiteId, nodeId-- --Variable = ssGetWebsiteNodeTypenodeId--

9.25 ssGetCoreMajorVersion

Description This script extension can be used to obtain the major version of the underlying content server. Parameters It has no parameters. Returns Oracle Content Server major version number. Code Example --Variable = ssGetCoreMajorVersion--

9.26 ssSplitString