Blocks

Most properties of blocks are form-specific, such as the ability to insert or update data. Only basic cosmetic properties are common to all.

For information on implementing blocks, see the Oracle Applications Developer's Guide.

General Block Rules

Title

Block titles should be displayed and chosen according to the following guidelines:

Titles for a block are rendered automatically as the title attributes of a "frame" object. This can be either a full square container, or a zero-height frame that renders as a horizontal line for delimiting blocks. The visual properties of these titles are inherited from the Application Object Library property classes.

Note: These settings apply specifically to titles that are displayed with a frame. Appropriate settings must be applied when the title is a display item, check box or radio button.

Context Blocks

Each non-modal window must be designed so that a user can maintain context merely by viewing that single window. This is necessary because of the multitude of windows, possibly across several forms, that may be on the screen at any one time. Also, because a user may iconify the window containing the context of the data in the current window, each window must display its own scope. The window title is the preferred way to show context, but when it cannot meaningfully or fully display the context for a window, additional context is displayed in a context block.

image described in text

Context Block Characteristics

Context blocks should have the following characteristics:

Dialog Blocks

Dialog blocks are the blocks presented in modal windows. They require the user to interact with them before proceeding with other windows of the application.

Dialog Block Characteristics

Dialog blocks should have the following characteristics:

Enabled Functions

Most standard Oracle Forms functions do not apply in a Dialog block. However, some functions may be enabled under certain conditions.

Navigation

Navigation to items outside a dialog block must be prevented while the modal window is open. The following guidelines prevent the user from navigating out of a Dialog block (OMS-73074):

Single-Record Blocks

Single-record blocks allow the user to see many attributes of a single record. The single-record format should be used when only one record is possible or the user only works with one record, or when it is necessary that the user see many attributes of one record at the same time.

Single-Record Block Layout

Querying

Clearing

In cases where there is only one record possible, Edit Clear Record and Edit Clear Block should automatically requery that one record. These functions should issue a "beep" in this situation to indicate that their behavior is different from normal. (OMS-73077)

Multi-Record Blocks

Multi-record blocks allow the user to see as many records of an entity as possible, usually at the tradeoff of seeing fewer attributes of each record simultaneously. For general information on when multi-record formats should be used, refer to the section General Design and Layout.

For information on implementing Multi-Record Blocks, see the Oracle Applications Developer's Guide.

Scroll Bar

Multi-record blocks display a record scroll bar, as follows (OMS-73078):

Current Record Indicator

(OMS-73178) All multi-record blocks have an indicator to point out the current record. The indicator looks and behaves in the following ways (OMS-73079):

image described in text

(OMS-73080) If the block supports a "drill-down" capability, then the indicator has the same characteristics as above, except for the following (OMS-73580):

In both cases, single-clicking or double-clicking on the indicator should move the cursor to the first navigable field of the appropriate record.

For information on implementing the Current Record Indicator, see the Oracle Applications Developer's Guide.

Layout

Querying

Combination Blocks

Combination blocks are hybrid formats, where fields are presented in both multi-record ("Summary") and single-record ("Detail") formats. The Summary and Detail formats are each presented in their own non-modal window. For general information on when Combination blocks should be used, refer to General Design and Layout.

For information on implementing Combination blocks, see the Oracle Applications Developer's Guide.

Combination Block Windows

The Summary and Detail windows of a Combination block should behave as follows:

Behavior of Combination Blocks

The Summary and Detail blocks of a Combination block should behave in the following manner:

Buttons

Besides any product-specific buttons, the following buttons may also be coded on the Summary window (OMS-73592):

New Creates a new record. Adding a new row by pressing a "New" button will automatically bring the user to the Detail window. The button label may be qualified, such as "New Line," if necessary to clarify its intended function.
Open Moves the cursor to the detail window. The "Open" button should always open to the detail level of the block that contains the button. For example, if the user has navigated to the line level of a Purchase Order and chooses the "Open" button in that window, then the details for the line should be displayed.

Buttons on the Detail window may include additional actions not available from the Summary window.

Gateways

Gateways offer the user flexible methods to locate, view, and operate on records. They are employed for all the major entities of a product, such as Purchase Orders, Sales Orders, Journals, and Quality Plans. The gateway is the first set of windows that a user sees when interacting with any of these entities. It is comprised of a Combination block and a Find window, with the following unique characteristics:

Workbenches

A workbench is a gateway with sufficient functionality that the user will likely be able to accomplish much of their job from this form. It would typically be left open during a user's entire work session for repeated use.

The following picture shows the set of windows (Find, Summary, and Detail windows) associated with a gateway.

image described in text

Note: The above picture is not intended to illustrate the actual position in which these windows initially open.

Folder Blocks

A Folder block is a block that allows the user to customize the set of columns and records displayed for a specific entity. It can be thought of as a "file cabinet" that holds all the records of a certain object, with each individual "Folder" being a specific subset of those records shown in a specific way. For example, if a developer provides a Folder block that shows "Requisitions," then a user could create a Folder called "Unapproved Requisitions" which only shows those requisitions with status "Unapproved," and displays the "Creation Date," "Preparer," and "Next Approver" fields. One or more Folder definitions can be saved per entity, such that screens can be designed appropriately for different tasks. Each Folder is, of course, restricted to data that the user is allowed to view based on the security rules of the product.

Folder Functions

The Folder functions can be invoked from the Folder pull-down menu, the right-mouse menu, or the Folder Tool palette. A profile (Folders: Allow Customization) allows system administrators to prevent individual users from accessing all Folder tools other than Open. Following is a list of the Folder functions and their corresponding Folder Tool palette buttons (where applicable).

Note: Some Folder menu items do not function when you are in QBE mode.

New Creates a new Folder. The user must enter a new, unique (per entity and user) Folder name.
Open Loads a previously defined Folder. A user can select from a list of his own Folders and any public Folders for the current entity.
Save Saves the current Folder. If it has never been named, this function reverts to the "Save As" functionality.
Save As Allows a user to save a Folder, specifying a name, whether it should autoquery upon loading, whether it should serve as the default for the user upon entry to this form, whether other users can use the same definition, and if the current query should be retained. Folder names must be unique per user. If a user modifies someone else's public Folder in any way, saving makes it a private definition. However, opening a public Folder, and saving it as the Default, with no other changes, merely saves the reference of the Folder as the private default.
Delete Allows a user to delete any Folder for the current entity that they created. If another user is referencing the Folder as their default, that reference is deleted as well.
Show Field Opens an LOV displaying fields that can be shown (and are not currently shown). Selecting a value adds the field after the current cursor position.
Hide Field Removes the current field. The cursor moves to the field sequenced after the field that was just hidden.
Move Right In multi-record blocks, swaps the current field with the one to its right. In single-record blocks, moves the current field one character cell to the right.
Move Left In multi-record blocks, swaps the current field with the one to its left. In single-record blocks, moves the current field one character cell to the left.
Move Up In single-record blocks, moves the current field one character cell up.
Move Down In single-record blocks, moves the current field one character cell down.
Widen Field Increases the width of the current field, up to a maximum size of 20 inches, in 0.2 inch increments.
Shrink Field Decreases the width of the current field, to a minimum size of 0.3 inches, in 0.2 inch increments.
Change Prompt Allows the user to alter the prompt of the current field. While in the Prompt modal window, Default allows quick recovery of the prompt initially specified by the developer. Prompts which start with "-" do not appear at runtime. This allows fields to have a prompt associated with them for selecting the field when showing a field, but the prompt is not displayed on the field itself.
Autosize All Resizes displayed fields based on a sample of values for the field in the block, ensuring that no field is smaller than the width of its prompt (in a multi-row block). The number of records is determined by selecting one of the three options: 10, 50, or 100.
Sort Data... Invokes a modal dialog that allows the user to specify the order and the fields by which to sort the data in the table. Sorting is limited to the first three columns only.
View Query Allows the user to view the "where" clause of the Folder.
Reset Query Clears the current "where" clause.
Folder Tools Shows the Folder Tools palette.

Folder Cosmetics

Developer Folders

A developer may employ the Folder technology to present different layouts to the user, but not expose the Folder functions. In that case, the Folder menu remains disabled, and no Folder title or Open Folder icon is displayed.

Direct Manipulation

In multi-record folder blocks, the following actions are supported by manipulating the prompt above each column:

Find Blocks

A Find block is a block where users can only enter an already-existing primary key to view and maintain details (child records) of one specific master record. Find blocks are very similar to Find windows, except that the search criteria is limited and appears in the same window as the results, and the search is for details of a particular master record. For the situations that Find blocks address, a separate Find window is not appropriate.

Note: The term "Find block" in the Standards refers to the case discussed in this section and should not be confused with the block underlying a Find window.

Appearance of Find Blocks

The following standards apply to the appearance of a Find block:

Behavior of Find Blocks

Alternative Blocks

Normally it is desirable to show all blocks for an entity in a single window, if possible. When all the blocks cannot be shown at once, then "alternative blocks" can be employed.

Use the Tab control to show multiple blocks within the same window when they all cannot be rendered simultaneously. (OMS-73203)

Master-Detail Characteristics

Master-Detail relations describe how detail records behave as a result of changes to Master records. For more information on Master-Detail Characteristics, see the Oracle Applications Developer's Guide.

Titles

To indicate master-detail relations, and for general clarity, try to repeat the master block name in the Detail block title. For instance, use "Order Lines" rather than just "Lines." (OMS-73559)

Coordination

Coordination between master and Detail blocks should follow these standards:

Masterless Operations

A user cannot enter or query detail records until in the context of a master record. (OMS-73110)

Other Rules and Behaviors

The following are other things to keep in mind when implementing Master and Detail blocks in your forms:

Related Topics