IsPopupWindow

Description

This JSP function determines whether or not the current window is displayed in a pop-up window. Use this function when the logic in your screen must differ when it appears in a pop-up window.

Syntax

isPopupWindow()

Input parameters

None.

Output parameters

A boolean indicating whether or not the current window is displayed in a pop-up window.

JSP usage

In this example, the selected value that appears in the combobox is different depending on whether this screen is being shown within a pop-up window.

<select name="xml:/Shipment/@EnterpriseCode" class="combobox">
   <% if (isPopupWindow()) { %>
     <yfc:loopOptions
     binding="xml:EnterpriseList:/OrganizationList/@Organization"
     name="OrganizationCode"
     value="OrganizationCode" selected="xml:/Shipment/@EnterpriseCode" />
   <% } else { %>
     <yfc:loopOptions
     binding="xml:EnterpriseList:/OrganizationList/@Organization"
     name="OrganizationCode"
     value="OrganizationCode"
     selected='<%=getSelectedValue("xml:/Shipment/@EnterpriseCode")%>' />
   <% } %> 
</select>