A script-enabled browser is required for this page to function properly.

SYSTEM.EVENT_CANVAS System Variable

Syntax

SYSTEM.EVENT_CANVAS

Description

SYSTEM.EVENT_CANVAS returns the name of the canvas that contains the newly–selected tab page.

Default

Usage Notes

SYSTEM.EVENT_CANVAS can be used only in the WHEN-TAB-PAGE-CHANGED trigger.

SYSTEM.EVENT_CANVAS Example

If you have multiple sets of tabs (multiple tabbed regions), you must have separate tab handlers for each tabbed region. In this case, the form–level WHEN–TAB–PAGE–CHANGED trigger must branch on the current canvas name and call the appropriate tab handler. This branching is only needed if your form has more than one tab canvas.
For example:

declare
the_canvas varchar2(30) := :system.event_canvas;
begin
if the_canvas = ’FIRST_TAB_REGIONS’ then
control.first_tab_regions(’WHEN-TAB-PAGE-CHANGED’);
elsif the_canvas = ’SECOND_TAB_REGIONS’ then
control.second_tab_regions(’WHEN-TAB-PAGE-CHANGED’);
end if;
end;