guides:o4w:o4w_api:o4wpopup

O4WPopup routine

Generates a popup dialog.

O4WPopup(id, popupType, popupSrc, popupArgs, targetID, triggerID, triggerEvent, styleInfo)

The function has the following parameters:

ParameterDescription
idThe name of the popup dialog.
popupTypeThe type of popup source. See chart below.
popupSrcThe source of the popup. See chart below.
popupArgsThe source of the popup. See chart below.
targetIdThe id of the O4W control to receive the results of the popup.
triggerID / triggerEventIf <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.
styleInfoIdentifies style properties that can be applied to the popup dialog (for example, O4WSizeStyle).

Type/Source/Argument Chart

popupTypepopupSrcpopupArgs
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.
O4WPopup('mypopup', 'Test Popup', O4W_LINKTYPE_REPORT$, 'CUSTOMER', '@ID', 'targetTextBox', O4WSizeStyle('','600px','600px'))
 

 
  • guides/o4w/o4w_api/o4wpopup.txt
  • Last modified: 2024/06/19 20:19
  • by 127.0.0.1