| |
|
|
||
| |
|
|||
| |
|
|
|
|
| Oracle Developer 6 Standards & Guidelines 4.1 Linkage with Oracle Designer The Ministry standard for application development is to generate all Forms modules from the Designer Repository. The only exceptions are menu modules, and application startup forms. These two forms objects may be created manually in Forms Builder without initial generation using Forms Generator. However, it is still the Ministry standard that these modules be documented in the Repository. Once generated from Designer, a Form may require post-generation changes. These post-generation changes are done using Developer, and documented in the Repository. This ensures that modules are documented correctly in the repository, and has the added benefit of a common look and feel for resulting Forms. This is due to the standard Forms template, and the standard Forms object library. The role of template forms in form generation has changed from previous releases (V1.2). In previous versions of Designer, a template form could contain generator objects (e.g. items, canvases, and visual attributes) and user objects. Form Generator then used these generator objects to set properties of generated objects, and copied user objects into the generated form without any change. This functionality of using generator objects to set properties, has now been superseded by Form Generator’s support for copying and sub-classing objects from object libraries. Object libraries are containers for reusable objects and standards, and take the place of referenced forms objects. The standard source objects all begin with a CGSO$ prefix. Designer 6 Forms Generator can still use preference settings or Repository information, but the standard location to hold standard settings is the CGSO$ objects, with repository information overriding these settings if needed. CGSO$ object properties can be further refined by their context (e.g. multi-record block, control block, display only item, or mandatory item). These hierarchies of inheritance are set up in the Ministry Standard Template package. Note: Designer Standards and Guidelines are available on the Internet All Standards page. 4.2 Ministry Standard Template Package The Ministry supplies a set of standard developer objects, for use in both Designer Forms Generation and the subsequent Developer post-generation changes. Forms 4.5 to
Forms 6.0 Migration Package See document Ministry Oracle Forms 6i/ 4.2.1 Incorporating application-specific code Always have the env60_std.olb object library open in your Forms Builder, so that all your forms can access the super-class objects. This only needs to be done once, as Forms Builder remembers which object libraries are in use. Globals available for your use are:
In addition, the ENV$CTRL control block has the following items which your application may access:
Procedures and Functions for use in your application include:
Detailed information on the Template can be found in the Designer Standards. Detailed information on the Standard Forms Generator preferences also can be found in the Data Architecture Standards . Oracle Forms has now been preceded by Java though. In addition:
For applications originally developed using the Forms 4.5 version of the Ministry Template, Forms 4.5 to
Forms 6.0 Migration Package See document Ministry Oracle Forms 6i/ A general forms design preference is to develop a single form containing the blocks, windows and canvasses required to complete one logical unit of work (e.g. add a new Referral, maintain Referral Correspondence, maintain client information, etc.). Creating separate forms for each small application component may result in excessive loading of executable code across a network link between the server and client machines. Therefore, developing a separate form for each small component in an application is not recommended. However, forms modules should not be too large (e.g. .fmx should not exceed 512 kilobytes in size) as large forms modules are slow to load. It is a Ministry standard that all Forms modules be documented in the Designer repository It is the Ministry standard that all Forms objects be sub-classed from the appropriate CGSO$ object in the inheritance hierarchy (e.g. multi-record block, control block, display only item, or mandatory item). These hierarchies of inheritance are set up in the Ministry Standard Template package, therefore all Forms generated from Designer will automatically be sub-classed correctly. 4.3.2 Sub-Classing Hierarchy of standard source objects The order of inheritance follows a definite order. If the block is a multi-record data block, then the block is subclassed from the CGSO$BLOCK_MR object. If the block is a control block, then it is sub-classed from the CGSO$BLOCK_CT object. The complete hierarchy is in the Designer On-Line Help, under Generating Oracle Developer Forms Builder applications >Generating Form Builder applications > Forms Generation >Using object libraries > Hierarchy of standard source objects. A shortened example of the hierarchy is: CGSO$WINDOW
CGSO$CANVAS
CGSO$LOV_BUT
Post-generation addition of Forms objects must still be sub-classed from the MSRM Standard Object Library (env60_std.olb), with over-riding of the properties where necessary. 4.3.3 Alphabetical List of standard source objects The complete list shown below. This is also in the Designer On-Line Help, under Generating Oracle Developer Forms Builder applications > Generating Form Builder applications > Forms Generation > Using object libraries > Alphabetical list of standard source objects and object types
The following sections define the various Forms 6.0 objects; describe the properties of each object; and provide usage guidelines and naming conventions for each. A window is the base frame which holds the canvases which actually contain the user interface items. The window frame provides a way of interacting with the window as a whole (scrolling, resizing and moving the window).
Window names should be as generated from Designer (CG_WINDOX_n). Windows added during post-generation should be named reflect their purpose. Each of these windows should contain one logical unit of work. If the logical unit of work consists of one base table or record group, then the window should be named after the table or record group, if more than one canvas, block etc exist an appropriate name to define the purpose should be selected. The MDI window title will contain (from left to right) the module name, the version of the module, environment name (E.G. test/prod), the name of the system (E.G. "EMS"), the userid and the system date. As generated from Oracle Designer Forms Generator, the CG$WINDOW_1 window title will contain the title of the module. This title is automatically set when using the Ministry standard template and library. Only the name of the system needs to be set by the developer. A canvas is the background object displayed within a window which forms the foundation on which user interface items are displayed.
If there are no horizontal scroll bars on the window, then all objects on the canvas must be visible on an 800 pixels W by 540 pixels H screen (SVGA minus the start bar) Canvas names should be as generated from Designer (CG$PAGE_n). Canvases added during post-generation will most likely require a post-generation Window as well. If it is the sole canvas for the window, then it should be named to match the name of its window. Canvases which share a window must be named "Window_name"_"canvas_purpose". This will be true whether the canvases are stacked or not.
Visual attributes determine how a user interface object appears at run time. These attributes include font characteristics, colour and pattern characteristics and character mode characteristics. In the rare cases that an object's 'look and feel' cannot be inherited via a sub-classed standard source object, then a named visual attribute can be added to the application-specific forms template (e.g. ems_pc1t.fmb). Note that the Ministry template already supplies the following pre-defined visual attributes (use these before creating your application-specific ones):
See also "Use of Colours/Fonts" under the SCREEN LAYOUT section. Named visual attributes may be used instead of default values. These named visual attributes should be used consistently throughout the application. Forms 6.0 visual attribute names must be prefixed by the application short name, and follow the form of "type"_va for example:
If it is necessary to have more than one visual attribute for a type, some meaning should be appended to each name. (e.g. text_item_highlight_va, text_item_italics_va, etceteras) The following diagram displays a Forms 6.0 List of Values window:
A list of values is a modal pick-list from which you can select a single value.
It is a Ministry Standard to always sort a List-of-Values. List of value names should be as generated from Designer (e.g. CGFK$G_MBR_DSP_AV_TITLE), which denote the data usage that is being linked.
A block provides a simple way of grouping related items into a single unit for storing, displaying and manipulating records. Every Oracle Forms 6.0 item must belong to a block. It is the Ministry standard to highlight the current record in multi-record data blocks. Note that all objects sub-classed correctly using the MSRM Standard Forms Template will have the current record visual attribute set to CG$CURRENT_RECORD. This is automatic when using the Designer Forms Generator. Block names should be as generated from Designer (table short name, or specific usage). Blocks added during post-generation should follow the same convention.
An alert is a modal window that displays a message that notifies the user of some application condition. The following diagram displays a Form 6.0 `Stop' style of alert (the other styles of alerts available in Forms 6.0 are `Note' and `Caution'):
Use one of the four available program units which show the different alert types:
If you require a new alert, then:
If you require a new alert, then prefix the application short name to the alert (e.g. swis$special_error_alert).
A text item is an interface control that displays and allows editing of text. The text is displayed in a field in either single or multi-line format.
Text item names should be as generated from Designer (based on column usage). Post-generation items should follow the same convention. Prompts for an item must be set using the new 'Prompt' property, and not via un-related boilerplate text. It is the Ministry standard that all prompts be declared as text labels in the 'Prompt' property.
A record group is an Oracle Forms 6.0 internal data structure that is similar in structure to a database table. There are two types of record groups that can be declared in Forms Designer. On type is based on a query and the other contains a static set of columns and rows. Records groups can also be created and populated at runtime. Use one table, or view only. Use views to hide complex SQL in the database. Record group names should be as generated from Designer (e.g. CGFK$G_MBR_DSP_AV_TITLE), which denote the data usage that is being linked. Post-generation record groups should be named in a similar fashion. If the record group is used to populate a list of values, name the record group the same as the list of values object.
Oracle Forms provides a built in text editor for use with text items. The editor can be invoked by pressing the "Edit" key (ctrl-E on Windows) or automatically at runtime by executing the EDIT_TEXTITEM built in procedure. The following diagram displays the Oracle Forms built in text editor:
A relation is a logical object that specifies the relationship between a master block and a corresponding detail block.
Relation names should be as generated from Designer (table short name, or specific usage). Relations added during post-generation should follow the same convention, using the "Master Block Name"_"Detail Block Name" convention.
Buttons are interface items that operators select to execute commands or initiate actions. Buttons should be labeled and not iconified (if an icon is used, the button should also be identified by a label or balloon help). Button names should be as generated from Designer. Buttons added during post-generation should be named to reflect its usage.
A toolbar is an area where textual descriptions of commands available to a window are displayed. The following figure is an example of a screen that has incorporated the Ministry standard horizontal toolbar (referenced from the Library form) and an application specific vertical toolbar: Every window must have a horizontal toolbar canvas positioned in the top left hand corner of the window. The main window must contain the Ministry standard toolbar, available in the Library form and shown in the above diagram. See Appendix F of the Designer Standards.
Scroll bars allow operators to scroll through records within a block or to scroll across a wide screen which has items obscured due to the window size. The following figure contains examples of vertical and horizontal scroll bars<:
Messages should not inhibit data entry. Only use messages in alert boxes if the system cannot continue without an answer from the user or if the user must provide confirmation of the action about to be taken. Warnings and information should be displayed on the bottom message line as usual. Using the Ministry standard resource file will enhance the messages with the use of colour. See next item and Appendix F of the Designer Standards. If an alert is displayed as the result of field validation, the alert message should explain the edit rule to the user. (e.g. use `The Start Date must Monday to Saturday' instead of `Invalid Start Date'). The form module will use real coordinates and centimetres. Font standard is Arial 10 point because it translates well to the use in Web Browsers. In general colours and fonts should be used in named visual attributes. Users should be able to change colours at the operating system level to whatever they like. Fonts should be consistent throughout the system. If a font or colour is changed from the default for a particular message type or highlighting purpose, this font/colour MUST be used consistently for the same types of messages or highlighting purposes throughout the system. If the application is to be deployed on the Citrix Servers, then the screens should be designed to work on a '256 Colours' setting; this is the default Citrix Metraframe standard; The following diagram displays the Ministry standard menu (This diagram was taken from the Oracle Forms Builder in order to show all menu options fully expanded. The `&' translates to an `_' at runtime.).
Sub-menu Hierarchies are to be avoided wherever possible. Application specific functions only under the 'Options' heading. See Appendix F of the Designer Standards for information on the Ministry standard integrated menu "env60_mnu.mmb"
HTML documents are the new standard for on-line application documentation. The Ministry standards on HTML Help are available on the Internet / World Wide Web at: http://srmwww.gov.bc.ca/imb/3star/oracle_support/help/online_guides.html |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |
|
|
|
|
|
|