YfcChangeDetailView
Description
This JavaScript function switches to a specific detail view. This function uses the POST function to switch the view.
Syntax
yfcChangeDetailView(viewID)
Input parameters
viewID - Required. Resource ID of the detail view to which you wish to switch.
Return values
None.
Example
This example shows how to use the yfcChangeDetailView() function in order charges and the taxes summary in order to refresh the page to the current view when a combobox value is changed.
<select name="chargeType" class="combobox"
onchange="yfcChangeDetailView(getCurrentViewId());">
<option value="Overall" <%if (equals(chargeType,"Overall")) {%> selected
<%}%>><yfc:i18n>Ordered</yfc:i18n></option>
<option value="Remaining" <%if (equals(chargeType,"Remaining")) {%> selected
<%}%>><yfc:i18n>Open</yfc:i18n></option>
<option value="Invoiced" <%if (equals(chargeType,"Invoiced")) {%> selected
<%}%>><yfc:i18n>Invoiced</yfc:i18n></option>
</select>