Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Oracle Forms: Menu

5,618 views

Published on

Oracle Forms: Menu

Published in: Software
  • Be the first to comment

Oracle Forms: Menu

  1. 1. Creating and Managing Menu Modules http://ebiztechnics.blogspot.com
  2. 2. Objectives • Identify Menu components • Create, save and attach Menu modules • Modifying properties of Menu items • Creating Popup menu and attaching • Controlling Menus Programmatically • Manage Menu Security http://ebiztechnics.blogspot.com
  3. 3. Menu Module Components Main Menu Individual Menu Menu Toolbar Menu Item http://ebiztechnics.blogspot.com
  4. 4. Default Menu Action Save Clear All Print Print Setup Exit Edit Cut Copy Paste Edit Display List Block Previous Next Clear Field Previous Next Clear Duplicate Record Previous Next Scroll Up Scroll Down Insert Remove Lock Duplicate Clear Query Enter Execute Cancel Last Criteria Count Hits Fetch Next Set Help Help Keys List Display Error Debug http://ebiztechnics.blogspot.com
  5. 5. Menu Editor Display menu Create Down Create Right Switch Orientation Menu tab Expanded menu Collapsed menu http://ebiztechnics.blogspot.com
  6. 6. Creating a Menu Module Object Navigator Menu Editor Select Tools  Menu Editor http://ebiztechnics.blogspot.com
  7. 7. Menu Module Properties Main Menu Menu Directory Menu Filename Startup Code Share Library with Form Use Security Module Roles http://ebiztechnics.blogspot.com
  8. 8. Menu Item Properties • Enabled • Label • Menu Item Type • Magic Item • Menu Item Radio Group • Command Type • Menu Item Code • Submenu Name • Icon in Menu • Icon Filename http://ebiztechnics.blogspot.com
  9. 9. Menu Item Types Separator Plain Check Magic Radio http://ebiztechnics.blogspot.com
  10. 10. Magic Items • About • Undo • Clear • Copy • Cut • Paste • Help • Quit • Window http://ebiztechnics.blogspot.com
  11. 11. Menu Item Command Types Null Menu PL/SQL Plus Form Macro Does not issue a command Invokes a submenu Executes a PL/SQL command Spawns a process to SQL*Plus Backward compatibility Backward compatibility http://ebiztechnics.blogspot.com
  12. 12. Menu Module File Types Menu module definition: • .mmb (Menu Module Binary) • Stored in files or database tables Menu module executable: • .mmx (Menu Module Executable) • Stored in files Menu module text: • .mmt (Menu Module Text) • Stored in files http://ebiztechnics.blogspot.com
  13. 13. Attaching Menu Module • Open Form Module Property Pallet. • Modify Menu Module Property. • Specify the name of your menu module. http://ebiztechnics.blogspot.com
  14. 14. Pop-up Menus Menu that appears on the screen at the location it was invoked • Enables users to access commonly used functions easily • Is accessed by pressing the right mouse button (Microsoft Windows and Motif) http://ebiztechnics.blogspot.com
  15. 15. Using Pop-up Menus • Pop-up menus are: – Form module objects in the object navigator, such as alerts or Data Blocks – Built through the Property Palette or Menu Editor – Associated with items and canvases with a pop-up menu property • Pre-Popup-Menu trigger provides dynamic control http://ebiztechnics.blogspot.com
  16. 16. Writing PL/SQL Code in Menu Triggers • Similar to PL/SQL code in form triggers • You can share code between a form module and a menu module by using the following: – Libraries – User-defined triggers – DO_KEY built-in http://ebiztechnics.blogspot.com
  17. 17. Writing PL/SQL Code in Menu Triggers • Menu modules generated independently • Restrictions: – Cannot directly reference values of form objects – Must use NAME_IN built-in function – Cannot use direct assignment for form objects – Must use COPY built-in procedure http://ebiztechnics.blogspot.com
  18. 18. Built-ins Used • FIND_MENU_ITEM • GET_MENU_ITEM_PROPERTY • SET_MENU_ITEM_PROPERTY • ITEM_ENABLED • MENU_SHOW_KEYS http://ebiztechnics.blogspot.com
  19. 19. Built-ins Showing and Hiding REPLACE_MENU Character mode built-ins: • HIDE_MENU • SHOW_MENU • MENU_REDISPLAY http://ebiztechnics.blogspot.com
  20. 20. Managing Menu Security • Defining security roles • Choosing roles for the menu module • Assigning access to menu items • Setting the Use Security property http://ebiztechnics.blogspot.com
  21. 21. Roles Role Privileges Users http://ebiztechnics.blogspot.com
  22. 22. Menu Module Roles • Select Menu Module Roles Property from the menu Module properties. • Enter Database Role Names. • Use Security Property Set to Yes. http://ebiztechnics.blogspot.com
  23. 23. Menu Item Roles • Invoke Property pallet of a Menu item. • Choose Menu Item roles property. • Select Menu Item roles. • Press OK button. http://ebiztechnics.blogspot.com
  24. 24. Summary • Creating Menu Modules • Attaching Menu Modules to Forms • Popup menu items • Pre-Popup menu trigger. • Built-ins for Managing Menu items programmatically. • Menu Module security with Roles. http://ebiztechnics.blogspot.com

×