Coding Zoom
Zoom allows the addition of user-invoked logic on a per-block basis. For example, you may want to allow access to the Vendors form from within the Enter Purchase Order form while the user is in the PO Header block of that form. You can enable Zoom for just that block, and when the user invokes it, you can open the Vendors form.
Only Oracle Applications customers use the Zoom feature; Oracle Applications products do not ship any predefined Zoom logic. Note that most Zooms that were predefined in the character-mode Oracle Applications Release 10 and earlier have been incorporated into Oracle Applications forms as buttons or windows for Release 11. In many cases, redesign of forms for Release 11 eliminated the need for predefined Zooms. Also, the native GUI environment allows users to cut-and-paste data between forms directly instead of relying on Release 10 Zooms to copy the data.
Zoom for Release 11 behaves as follows:
- Oracle Applications provides a menu entry and a button on the toolbar for the user to invoke Zoom when available. The button and the menu entry are disabled unless Zoom logic has been defined in the CUSTOM library for that form and block.
- Whenever the cursor changes blocks in the form, the form calls the ZOOM_AVAILABLE function in the CUSTOM library (via APPCORE). If this function returns TRUE, then the Zoom entries on the menu and toolbar are enabled; if it returns FALSE, then they are disabled.
- If the Zoom entries are enabled, then when the user invokes Zoom the form calls the Zoom event code in the CUSTOM library. You write code for this event that branches based on the current form and block.
To code Zooms into the CUSTOM library:
1. Add a branch to the CUSTOM.ZOOM_AVAILABLE function that specifies the form and block where you want a user to be able to invoke Zoom. See: CUSTOM.ZOOM_AVAILABLE
2. Add a branch to the CUSTOM.EVENT procedure for the ZOOM event.
Inside that branch, specify the form and block where you want a user to be able to invoke Zoom. Add the logic you want to occur when the user invokes Zoom. See: CUSTOM.EVENT
See: Support and Upgrading
See Also
Customizing Oracle Applications with the CUSTOM Library
Writing Code for the CUSTOM Library
Events Passed to the CUSTOM Library
When to Use the CUSTOM Library
Example of Implementing Zoom Using the CUSTOM Library