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.

forms builder


Published on

Published in: Technology, Business

forms builder

  1. 1. Forms - An Overview of Oracle Form Builder v.6.0 <ul><li>Shoeb Shabibi </li></ul>
  2. 2. Agenda <ul><li>What Is Oracle Form Builder? </li></ul><ul><li>Forms Concepts - What is a Form? </li></ul><ul><li>The Forms Application </li></ul><ul><li>References </li></ul>
  3. 3. What Is Oracle Form Builder? <ul><li>Component of Oracle Developer/2000 </li></ul><ul><ul><li>Forms </li></ul></ul><ul><ul><li>Reports </li></ul></ul><ul><ul><li>Graphics </li></ul></ul><ul><li>Application builder </li></ul><ul><li>Event-driven applications </li></ul>
  4. 4. Forms - The Basic Idea <ul><li>Are used to create applications to enter, access, change, or delete data from an Oracle database in an online, form-based environment. </li></ul><ul><li>Forms provides many objects for developing an effective application module. </li></ul><ul><li>Coupled with the concept of user extensibility, Forms can be used to serve virtually every online need in an Oracle database environment. </li></ul>
  5. 5. Forms Concepts The Big Picture Triggers and/or default processes User actions Internal events Database Application State
  6. 6. Forms Concepts <ul><li>Events </li></ul><ul><li>Processes </li></ul><ul><li>Triggers </li></ul>
  7. 7. Forms Concepts <ul><li>Events </li></ul><ul><ul><li>Things that happen </li></ul></ul><ul><ul><li>External Events </li></ul></ul><ul><ul><ul><li>User Interaction; Mouse, Keyboard, Menu </li></ul></ul></ul><ul><ul><li>Internal Events </li></ul></ul><ul><ul><ul><li>Timers </li></ul></ul></ul><ul><ul><ul><li>Processing steps for which triggers can be set </li></ul></ul></ul><ul><ul><li>Initiate Processes </li></ul></ul><ul><ul><ul><li>No Events? No Processing! </li></ul></ul></ul>
  8. 8. Forms Concepts <ul><li>Processes </li></ul><ul><ul><li>Pre-programmed default behaviour </li></ul></ul><ul><ul><li>What Forms DOES, for example; </li></ul></ul><ul><ul><ul><li>Navigation </li></ul></ul></ul><ul><ul><ul><li>Transaction Processing </li></ul></ul></ul><ul><ul><ul><li>Validation </li></ul></ul></ul><ul><ul><ul><li>Query Processing </li></ul></ul></ul><ul><ul><ul><li>Master-Detail coordination </li></ul></ul></ul><ul><ul><li>Series of Internal Events </li></ul></ul>
  9. 9. Forms Concepts <ul><li>Triggers </li></ul><ul><ul><li>Fired when Internal/External events occur </li></ul></ul><ul><ul><li>Replace, supplement or initiate default processing </li></ul></ul><ul><ul><li>Initiate “External” events, to make Forms behave as if user performed action </li></ul></ul><ul><ul><ul><li>E.g. Simulate User key-press </li></ul></ul></ul>
  10. 10. Triggers <ul><li>Trigger </li></ul><ul><ul><li>Forms trigger </li></ul></ul><ul><ul><li>Database trigger </li></ul></ul>
  11. 11. Triggers <ul><li>Forms Trigger </li></ul><ul><ul><li>Fires in response to Forms Events </li></ul></ul><ul><li>Database Trigger </li></ul><ul><ul><li>Fires in response to Database Events </li></ul></ul><ul><li>THESE ARE COMPLETELY INDEPENDENT OF EACH OTHER!!! </li></ul>
  12. 12. The Forms Application Form Builder builds Forms, Menus and Libraries Application consists of at least one Form Can also include one or more Menu and Library modules Oracle provides default Menu
  13. 13. File Types <ul><li>Forms Modules </li></ul><ul><ul><li>.FMB; Forms Source </li></ul></ul><ul><ul><li>.FMX; Forms Executable </li></ul></ul><ul><li>Menu Modules </li></ul><ul><ul><li>.MMB; Menu Source </li></ul></ul><ul><ul><li>.MMX; Menu Executable </li></ul></ul><ul><li>Libraries </li></ul><ul><ul><li>.PLL; PL/SQL Source and Executables </li></ul></ul><ul><ul><li>.PLX; PL/SQL Executable Only </li></ul></ul>
  14. 14. The Forms Application What You See exit enter File Edit View Query Block Record Insert Help Whatever Are you really sure you want to do this? Canvas View Control Item Base-Table Item Menu Window Yes No
  15. 15. The Forms Application <ul><li>What you see; </li></ul><ul><ul><li>Window </li></ul></ul><ul><ul><li>Menu </li></ul></ul><ul><ul><li>Canvas/View </li></ul></ul><ul><ul><li>Items </li></ul></ul><ul><ul><ul><li>Base-block items </li></ul></ul></ul><ul><ul><ul><li>Control-block items </li></ul></ul></ul><ul><ul><li>Database records </li></ul></ul>
  16. 16. Forms Components Highest Level of Hierarchy - Forms - Menu - Built-in Packages - Database Objects
  17. 17. Forms Components Windows - Displays canvases. - Form can have multiple windows. - Modal; user must respond and dismiss window before doing anything in another window. - Modeless; user can move to another window.
  18. 18. Forms Components Canvas-Views - Visual element of Forms. This is how you display all those Items. - Canvas; Background on which text and items are placed. - View; Visible portion of canvas. - Form can have multiple canvases. - Canvases can be stacked, scrolled.
  19. 19. Forms Components Blocks - Base-Table Block corresponds to Database Table; set of items representing database table columns. An ‘instance’ of a Base-Table Block corresponds to a Database Record. - Control Block is usually a collection of control items (e.g. Buttons, Check-Boxes, Radio Groups), but can also be collection of Display Items (read-only text), Text Items (‘variables’), images, etc.
  20. 20. Forms Components Block Properties
  21. 21. Forms Components Items - Base-Table Items are text items that correspond to Database Columns. Forms creates them automatically. - Control Items can be Buttons, Check-Boxes, Radio Groups, Display Items (read-only text), Text Items (‘variables’), images, etc.
  22. 22. Forms Components Item Properties
  23. 23. Forms Components Visual Attributes - Collection of display properties. - Refer to Named Visual Attribute in Items to standardise appearance. Change in NVA will affect all Items referring to it. Property Classes - Collection of ANY properties. - When items refer to Property Class, only properties that make sense for that item will be used.
  24. 24. Forms Components Triggers - At Form, Block or Item level - Lower level triggers fire before higher level triggers - If same trigger-type occurs at different levels, only lowest will fire
  25. 25. Triggers <ul><li>Can be coded at Form, Block, and/or Item Level </li></ul><ul><li>Some Triggers apply to multiple levels of hierarchy, others are specific </li></ul><ul><ul><li>When creating new trigger, List of Values presents list of appropriate triggers </li></ul></ul><ul><li>Each Trigger-type executes only once </li></ul><ul><li>Lowest level Triggers fired first </li></ul>
  26. 26. Forms Component Alerts - Window that displays message - Modal; User must respond - One, two or three buttons - Three types; - Stop (stop sign) - Caution (exclamation) - Information ( ‘i’ symbol) - Use SHOW_ALERT built-in function
  27. 27. Forms Components LOVs - Allows user to select from specific set of values. - Displays Record Group.
  28. 28. Forms Components Editors - Editor; simple text-editor dialog box for entering lines of text into Text Item. - Can create editors with different appearances for different text fields.
  29. 29. Forms Components Parameters - Used as a Form variable. - Pass values between Forms.
  30. 30. Forms Components Program Units - PL/SQL Procedures and Functions used in this Form.
  31. 31. Forms Components Attached Libraries, Libraries & Built-in Packages - PL/SQL procedures and functions. - Attached Library; Reference collected routines. - Library; Maintain and reference collected routines. - Built-in Packages; Oracle supplied procedure and functions.
  32. 32. Forms Components Object Groups - Package reusable objects for later copying or reference. - E.g. Your Form includes an alarm clock to wake the user after ten minutes inactivity. This includes Triggers, Procedures, a Window, some graphics, etc. You can package these objects together to conveniently include this functionality in other forms.
  33. 33. Tour of Form Builder <ul><li>Starting forms </li></ul><ul><ul><li>Virtual session </li></ul></ul><ul><li>Connecting to the database </li></ul>
  34. 34. What Is Forms Looking For Client Forms Runtime Forms Server (Compiled Objects) Database Registry FORMS_PATH Connect
  35. 35. References <ul><li>On-line help </li></ul><ul><li>Oracle Developer/2000 Handbook (2nd. Ed.) </li></ul><ul><ul><li>Robert J. Muller, Oracle Press </li></ul></ul><ul><li>Oracle technology network (http://TechNet.Oracle.Com) </li></ul>