| Previous | Next | Contents | Index | Navigation | Glossary | Library |
function custom.zoom_available return BOOLEAN;
Description
If Zoom is available for this block, then return TRUE; otherwise return FALSE. Always test for the form and block name. Refer to the SYSTEM variables for form name and block name in your code and branch accordingly. The module name of your form must match the form file name.
By default this routine must return FALSE.
Example Code
The following example enables Zooms in the following places:
Form: FNDSCAUS, Block USER and
Form: FNDCPMCP, Block PROCESS
FUNCTION zoom_available RETURN BOOLEAN IS
form_name VARCHAR2(30) := NAME_IN('system.current_form');
block_name VARCHAR2(30) := NAME_IN('system.cursor_block');
BEGIN
IF (form_name = 'FNDSCAUS' AND block_name = 'USER') OR
(form_name = 'FNDCPMCP' AND block_name = 'PROCESS')THEN
RETURN TRUE;
ELSE
RETURN FALSE;
END IF;
END zoom_available;
Writing Code for the CUSTOM Library
Events Passed to the CUSTOM Library
When to Use the CUSTOM Library
CUSTOM Library Package Procedures
Example of Implementing Zoom Using the CUSTOM Library
| Previous | Next | Contents | Index | Navigation | Glossary | Library |