You can review the details about the getCurrentViewId JavaScript function.

Description

This JavaScript function retrieves the Resource ID of the current detail view.

Syntax

getCurrentViewId()

Input parameters

None.

Return value

Resource ID of the current detail view.

Example

This example shows how to refresh the current view by obtaining the current View ID.

<td class="detaillabel" ><yfc:i18n>Horizon_End_Date</yfc:i18n></td> 
<td class="protectedtext" nowrap="true">
  <input type="text" class="dateinput" onkeydown="return checkKeyPress(event)"
<%=getTextOptions("xml:/InventoryInformation/Item/@EndDate","xml:/
InventoryInformation/Item/@EndDate","")%> />
  <img class="lookupicon" onclick="invokeCalendar(this);return false" 
<%=getImageOptions(YFSUIBackendConsts.DATE_LOOKUP_ICON,"View_Calendar")%>/>
  <input type="button" class="button" value="GO" 
onclick="if(validateControlValues())changeDetailView(getCurrentViewId())"/> 
</td>

Join The Discussion

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