Forcing a Pop-Up to Front

RAMP-NL

Forcing a Pop-Up to Front


If you need to force a pop-up window to front (for example if you absolutely have to present a 5250 pop-up window as a destination screen), using FORCE_POPUP_REFRESH Function will not help you because it only turns the automatic force-to-front logic off or on. It does not change when the logic is used.           

In these special cases you will have to invoke the force logic yourself, probably at the end of your destination pop-up screens INVOKE script.

The easiest way to do this is by executing the JavaScript function VF_SY120_FORCE_POPUP_REFRESH(). This will cause the current 5250 pop-up to come to the front.

If you want to force a pop-up which is triggered by a button click or function key press to front, do it like this:

SENDKEY(KeyF10);

VF_SY120_FORCE_POPUP_REFRESH();