You can review the details about the getCurrentSearchViewId JavaScript function.

Description

This JavaScript function retrieves the Resource ID of the current search view. This function can be used only for search views. To get the Resource ID of the current detail view, use the getCurrentViewId JavaScript function on the detail view JSP page.

Syntax

getCurrentSearchViewId()

Input parameters

None.

Return value

Resource ID of the current search view.

Example

This example shows how to refresh the current search view when a value is selected from a combo box by obtaining the current View ID.

<select class="combobox" onChange="changeSearchView(getCurrentSearchViewId())" 
<%=getComboOptions(documentTypeBinding)%>>
   <yfc:loopOptions 
binding="xml:CommonDocumentTypeList:/DocumentParamsList/@DocumentParams" 
name="Description" value="DocumentType" selected="<%=selectedDocumentType%>"/> 
</select>

Join The Discussion

Your email address will not be published. Required fields are marked *