wcmListRowCount wcmDynamicList wcmIncludeElement Oracle Fusion Middleware Online Documentation Library

Idoc Script Extensions 9-5 Example within context: --wcmListStartStaticList-- --wcmListIndex = 0-- --wcmListNumRows = wcmListRowCount-- table--loopwhile wcmListIndex wcmListNumRows-- tr td--wcmListElementWysiwyg, wcmListIndex--td td--wcmListElementplaintext, wcmListIndex--td tr --wcmListIndex = wcmListIndex + 1-- --endloop--table --wcmListEndStaticList--

9.7 wcmListRowCount

Description This script retrieves the number of rows in the list element. An integer value is returned. Parameters ■ listName : The name of the list element. If wcmListRowCount is used between wcmListStart and wcmListEnd then listName can be omitted. Code Example --wcmListRowCountlistName-- Example within context: --wcmListStartlistName-- --wcmListIndex = 0-- --wcmListNumRows = wcmListRowCount-- table--loopwhile wcmListIndex wcmListNumRows-- tr td--wcmListElementWysiwyg, wcmListIndex--td td--wcmListElementplaintext, wcmListIndex--td tr --wcmListIndex = wcmListIndex + 1-- --endloop--table --wcmListEndlistName--

9.8 wcmDynamicList

Description Prepares the service binder for a call to SS_GET_SEARCH_RESULTS by retrieving the search parameters from the named dynamic list element. It returns a Boolean indicating success or failure. Parameters ■ elementName : The name of the element within the list used to construct the listElement Returns This returns a Boolean value indicating success or failure. 9-6 Oracle Fusion Middleware Technical Reference Guide for Site Studio Code Example --wcmDynamicListelementName-- Example within context: --if wcmDynamicListdynamicList-- --executeServiceSS_GET_SEARCH_RESULTS-- --loop SearchResults-- --xmldDocTitle--br --endloop-- --endif--

9.9 wcmIncludeElement

Description This script allows the contents of an element to be displayed outside the context of the region. When an element is in the context of a region that is, in a region template, then there is an implied data file association based on that region template. With wcmIncludeElement, you can force a data file association when the element is outside the context of a region. Parameters ■ dDocName : The dDocName for the data file. ■ expression : The XPath expression to identify a specific node or nodes of the XML data file. Returns The contents of the element are returned. Code Example queryVal = --wcmIncludeElementdatafiledDocName, wcm:rootwcm:element[name=elementName]node--

9.10 wcmDynamicConversion