YfcShowDefaultDetailPopupForEntity

Description

This JavaScript function shows the default detail view of an entity in a pop-up window (modal dialog). The entity for which the view is displayed must be specified in the yfsTargetEntity attribute of the checkbox object whose name is passed as input. It is a blocking call. It does not return until the modal dialog is closed.

Syntax

yfcShowDefaultDetailPopupForEntity(checkBoxName)

Input parameters

checkBoxName – Required. Name of one or more checkbox objects with the yfsTargetEntity attribute containing the ID of the entity for which the default detail view is to be displayed.

Return values

None.

Example

This example shows how a view details action on an Order List screen could use this function to bring up the default detail view of the order entity.

JSP code for the checkbox:

<td class="checkboxcolumn"> 
<input type="checkbox" value='<%=getParameter("orderKey")%>' 
name="chkRelatedKey" yfsTargetEntity="order"/> 
</td>

The view details action should be defined with these properties:

ID=“<Some ID>” 
Name="View_Details" 
Javascript="showDefaultDetailPopupForEntity('chkRelatedKey')" 
Selection Key Name="chkRelatedKey"