O4WPopup routine
Description
Generates a popup dialog.
Syntax
O4WPopup(id, popupType, popupSrc, popupArgs, targetID, triggerID, triggerEvent, styleInfo)
Parameters
The function has the following parameters:
Parameter | Description |
---|---|
id | The name of the popup dialog. |
popupType | The type of popup source. See chart below. |
popupSrc | The source of the popup. See chart below. |
popupArgs | The source of the popup. See chart below. |
targetId | The id of the O4W control to receive the results of the popup. |
triggerID / triggerEvent | If <triggerID> is specified, the popup will appear when the specified <triggerEvent> ("CLICK" (default), or "GOTFOCUS" or "LOSTFOCUS") occurs; if no <triggerID> is specified, the popup will appear when the form or response is sent back to the browser. |
styleInfo | Identifies style properties that can be applied to the popup dialog (for example, O4WSizeStyle). |
Type/Source/Argument Chart
popupType | popupSrc | popupArgs |
---|---|---|
O4W_LINKTYPE_PROGRAM$ | The name of the routine to call. | The parameters passed to the routine being called. |
O4W_LINKTYPE_REPORT$ | The name of the O4W_Report to invoke. | The name of the field in the O4W_Report to use as the return value. If not specified, the @ID of any selected row is returned. |
O4W_LINKTYPE_POPUP$ | The name of the OI popup. | Popup override array. |
Remarks
See Also
Example
O4WPopup('mypopup', 'Test Popup', O4W_LINKTYPE_REPORT$, 'CUSTOMER', '@ID', 'targetTextBox', O4WSizeStyle('','600px','600px'))