ShowDetailForViewGroupId

Description

This JavaScript function changes the current page to show the default view of the given View Group ID (The View ID with the least Resource Sequence number is the default view for a particular View Group Id). The resulting screen opens in the same browser window. Use the showDetailForViewGroupId()function to move from the list view to the detail view. When the detail view opens, this function is not used, because subsequent views are invoked as pop-up windows and this function does not do that.

In the list screen, this function is used in conjunction with the yfc:makeXMLInput JSP tag. The makeXMLInput JSP tag creates an XML containing the key attributes. That XML must be passed to the default detail view.

Syntax

showDetailForViewGroupId (entityname, viewGroupId, entityKey, extraParameters)

Input parameters

entityName - Required. Entity to search in the detail screen.

viewGroupId - Required. The view group ID shown to the user.

entityKey - Required. String containing a URL-encoded XML that contains key attributes required by the detail view.

Output parameters

None.

Example

<td class="tablecolumn">
   <a href = "javascript:showDetailForViewGroupId
('load','YDMD200','<%=getParameter("loadKey")%>');"> 
<yfc:getXMLValue binding="xml:/Load/@LoadNo"/>
   </a> 
</td>