This JavaScript function shows a specified list view in a pop-up window (modal dialog). This is a blocking call. The function does not return until the window is closed.
yfcShowListPopupWithParams(viewID, name, width, height, argument, entity, params)
viewID - Required. Resource ID of the list view to be shown as a pop-up window. If passed as an empty string, the default list view of the specified entity is displayed.
name - Required. Pass as a blank space (" "). Not used.
width - Required. Horizontal size of the pop-up window. Measured in pixels. If passed as 0, a certain default width is used.
height - Required. Vertical size of the pop-up window. Measured in pixels. If passed as 0, a certain default height is used.
argument - Required. Value passed as the argument parameter to showModalDialog() function that is used to show the pop-up window. This then becomes available in the modal dialog through the window.dialogArguments attribute.
entity - Optional. Resource ID for the detail view being shown. If not passed, defaults to the current entity.
params - Optional. String starting with an ampersand (&) and containing any extra parameters based on which the search is to be performed. The parameters passed become available to the list view being invoked as request parameters.
None.
This example shows how an inventory audit list is invoked directly from the Inventory Summary screen for a specified Organization, Item, UOM and Product Class.
function showInvAuditSearch(sViewID,sItemID,sUOM,sProductClass,sOrgCode)
{
var ItemID=document.all(sItemID).value;
var UOM=document.all(sUOM).value;
var PC=document.all(sProductClass).value;
var Org=document.all(sOrgCode).value;
var entity="inventoryaudit";
var sAddnParams="&xml:/InventoryAudit/@ItemID="+ItemID+"&xml:
/InventoryAudit/@UnitOfMeasure="+UOM;
sAddnParams=sAddnParams + "&xml:/InventoryAudit/@ProductClass="+PC+"&xml:/InventoryAudit/@OrganizationCode="+Org;
yfcShowListPopupWithParams(sViewID,"",'900', '500','',entity,
sAddnParams);
}