11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SYSTEM.EVENT_WINDOW system variable<br />

Syntax<br />

SYSTEM.EVENT_WINDOW<br />

Description<br />

The SYSTEM.EVENT_WINDOW system variable represents the name of the last window that was<br />

affected by an action that caused one of the window event triggers to fire. The following triggers cause<br />

this variable to be updated:<br />

• WHEN-WINDOW-ACTIVATED<br />

• WHEN-WINDOW-CLOSED<br />

• WHEN-WINDOW-DEACTIVATED<br />

• WHEN-WINDOW-RESIZED<br />

From within these triggers, assign the value of the variable to any of the following:<br />

• global variable<br />

• parameter<br />

• variable<br />

• item, including a null canvas item<br />

SYSTEM.EVENT_WINDOW examples<br />

The following example sets the input focus into a particular item, depending on the window affected:<br />

IF :System.Event_Window = ’ROOT_WINDOW’ THEN<br />

Go_Item(’EMPNO’);<br />

ELSIF :System.Event_Window = ’DEPT_WINDOW’ THEN<br />

Go_Item(’DEPTNO’);<br />

END IF;<br />

390

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!