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

When-Tab-Page-Changed

Description

Fires whenever there is explicit item or mouse navigation from one tab page to another in a tab canvas.

Definition Level form

Legal Commands

unrestricted Built-ins, restricted Built-ins

Enter Query Mode no

Usage Notes

On Failure

no effect

When-Tab-Page-Changed Examples

/* Use a When-Tab-Page-Changed trigger to dynamically

** change a tab page's label from lower- to upper-case
** (to indicate to end users if they already have
** navigated to the tab page):
*/
DECLARE
tp_nm VARCHAR2(30);
tp_id TAB_PAGE;
tp_lb VARCHAR2(30);

BEGIN
tp_nm := GET_CANVAS_PROPERTY('emp_cvs', topmost_tab_page);
tp_id := FIND_TAB_PAGE(tp_nm);
tp_lb := GET_TAB_PAGE_PROPERTY(tp_id, label);

IF tp_lb LIKE 'Sa%' THEN
SET_TAB_PAGE_PROPERTY(tp_id, label, 'SALARY');
ELSIF tp_lb LIKE 'Va%' THEN
SET_TAB_PAGE_PROPERTY(tp_id, label, 'VACATION');
ELSE null;
END IF;
END;