Top Banner
15 March 2010 TCS Confidential Oracle Form Builder
75

Oracle Form Builder

Dec 02, 2014

Download

Documents

Kiran Raj
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Oracle Form Builder

15 March 2010 TCS Confidential

Oracle Form Builder

Page 2: Oracle Form Builder

15 March 2010

Basic TermsForm Development using form wizard.Creating LOV and Record group.Input ItemsNon-Input itemsTriggersNavigationSharing Objects and codes

Overview

Page 3: Oracle Form Builder

15 March 2010

Description

Purpose

Page 4: Oracle Form Builder

15 March 2010

Form Builder Modules

Form ModulesThis constitutes the main body of a Form Builder application. It includes the objects that end users interact with, to modify database information.

Menu ModulesA menu module is comprised of menus and menu code.

PL/SQL Library Modules

PL/SQL Libraries – is a module which contains various procedures and functions which can be reused by any form module.Procedures and Function becomes global to all forms.Just by invoking it,we can use them

Page 5: Oracle Form Builder

15 March 2010

Objects of a Form ModuleWindow

A window is, by itself, an empty frame. Windows have a title bar and handles for interaction, allowing end users to scroll, move, and resize the window.

CanvasCanvases are background objects on which you place

the interface objects and graphic elements that end users interact with when they use a Form Builder application.

BlocksBlocks are logical containers for Form Builder items,

and are the basic unit of information in a form module. Items

Items are interface objects that display information to end users and allow them to interact with the application.

Page 6: Oracle Form Builder

15 March 2010

CANVAS

Form Builder provides four types of canvases, all of which can be displayed in the same window at runtime. •Content Canvas - A content canvas is the "base" view that occupies the entire content pane of the window in which it is displayed.• Stacked Canvas - A stacked canvas is displayed atop—or stacked on—the content canvas assigned to the current window.•Tab Canvas - A tab canvas—made up of one or more tab pages—allows you to group and display a large amount of related information on a single dynamic Form Builder canvas object.•Toolbar Canvas - A toolbar canvas often is used to create toolbars for individual windows.

Page 7: Oracle Form Builder

15 March 2010

Windows and CanvasesMDI MDI MDI parentparentparentwindowwindowwindow

DocumentDocumentDocumentwindowwindowwindow

CanvasCanvasCanvas

Page 8: Oracle Form Builder

15 March 2010

Stacked Canvas Properties

21

Page 9: Oracle Form Builder

15 March 2010

Tab Canvas Related Properties

Page 10: Oracle Form Builder

15 March 2010

Property Pallette

ToolbarToolbar

Expand/Expand/CollapseCollapse

PropertyPropertynamename

Find fieldFind field

SearchSearchBackwardBackwardSearchSearchForwardForwardPropertyPropertyvaluevalue

Page 11: Oracle Form Builder

15 March 2010

Page 12: Oracle Form Builder

15 March 2010

BLOCKS

Data BlocksA data block is associated with – or bound to – a database table or view, or a set of stored procedures.

Control BlocksA control block has no association with a database table or view; its objects do not relate to database columns.

Page 13: Oracle Form Builder

15 March 2010

Page 14: Oracle Form Builder

15 March 2010

Page 15: Oracle Form Builder

15 March 2010

Page 16: Oracle Form Builder

15 March 2010

Page 17: Oracle Form Builder

15 March 2010

Page 18: Oracle Form Builder

15 March 2010

Page 19: Oracle Form Builder

15 March 2010

Page 20: Oracle Form Builder

15 March 2010

Page 21: Oracle Form Builder

15 March 2010

Page 22: Oracle Form Builder

15 March 2010

Page 23: Oracle Form Builder

15 March 2010

Page 24: Oracle Form Builder

15 March 2010

Page 25: Oracle Form Builder

15 March 2010

Page 26: Oracle Form Builder

15 March 2010

Page 27: Oracle Form Builder

15 March 2010

Page 28: Oracle Form Builder

15 March 2010

Page 29: Oracle Form Builder

15 March 2010

Page 30: Oracle Form Builder

15 March 2010

Page 31: Oracle Form Builder

15 March 2010

Page 32: Oracle Form Builder

15 March 2010

Page 33: Oracle Form Builder

15 March 2010

Page 34: Oracle Form Builder

15 March 2010

Page 35: Oracle Form Builder

15 March 2010

Page 36: Oracle Form Builder

15 March 2010

Page 37: Oracle Form Builder

15 March 2010

Page 38: Oracle Form Builder

15 March 2010

Page 39: Oracle Form Builder

15 March 2010

Page 40: Oracle Form Builder

15 March 2010

Page 41: Oracle Form Builder

15 March 2010

Page 42: Oracle Form Builder

15 March 2010

Page 43: Oracle Form Builder

15 March 2010

Page 44: Oracle Form Builder

15 March 2010

Page 45: Oracle Form Builder

15 March 2010

Page 46: Oracle Form Builder

15 March 2010

Page 47: Oracle Form Builder

15 March 2010

Page 48: Oracle Form Builder

15 March 2010

Page 49: Oracle Form Builder

15 March 2010

Page 50: Oracle Form Builder

15 March 2010

Page 51: Oracle Form Builder

15 March 2010

Page 52: Oracle Form Builder

15 March 2010

Input Items

• Item types that accept user input include:– Check boxes– List items– Radio groups

• Input items enable insert, update, delete, • and query.

Page 53: Oracle Form Builder

15 March 2010

Check Boxes

• Two-state interface object:– Checked– Unchecked– Checkbox mapping with other values– Column name mentioned in the property pallete– Database item set to yes.

• Block level property table name is mentioned.• Not limited to two values

Page 54: Oracle Form Builder

15 March 2010

List Styles (Elements In List)

• List Items

TlistTlistGood

Poor

Excellent

Excellent PoplistPoplist

Excellent Combo BoxCombo Box

Page 55: Oracle Form Builder

15 March 2010

Radio Groups

• Set of mutually exclusive radio buttons, each representing a value

• Use:– To display two or more static choices– As an alternative to a list item – As an alternative to a check boxEx:Radio group : initial value = cashRadio button value-1 = cashRadio button value-2= creditALERT:ALERT STYLE: STOP , CAUTION , NOTE

Page 56: Oracle Form Builder

15 March 2010

Noninput

Items

• Item types that do not accept direct user input• include:• Display items• Image items• Sound items• Buttons

Page 57: Oracle Form Builder

15 March 2010

Display Items

• Display items are similar to text items.• Display items cannot:

– Be edited– Be queried– Be navigated to– Accept user input

• Display items can:– Display data– Conserve resources

Page 58: Oracle Form Builder

15 March 2010

Image Items

• Interface control• Use to display bitmapped images:

– From file system—supported file type– From database—LONG RAW column or a BLOB

column– Read_image_file– Write_image_file

Page 59: Oracle Form Builder

15 March 2010

Image File Format

Image itemImage item

Write

CALS

GIF

CALS

GIF

BMPPICT

TPIC

TIFF

JFIF

RAS

JPG

Read

CALS

GIF

BMPTIFF

JFIF

JPEG

PICTTPIC

RAS

Page 60: Oracle Form Builder

15 March 2010

Image Manipulation Palette

ZoomZoomPanPan

RotateRotate

SelectSelect

Page 61: Oracle Form Builder

15 March 2010

Buttons

• Use buttons to:– Move input focus– Display an LOV– Invoke an editor– Invoke another window– Commit data– Issue a query– Perform calculations

Page 62: Oracle Form Builder

15 March 2010

Trigger Scope Component

• Levels• Form• Block• Item

TypeScope

Code

Page 63: Oracle Form Builder

15 March 2010

Trigger Type Component

• Pre-• Post-• When-• On-• Key-

TypeScope

Code

Page 64: Oracle Form Builder

15 March 2010

Creating a Trigger

Smart Triggers

Page 65: Oracle Form Builder

15 March 2010

PL/SQL Editor

Page 66: Oracle Form Builder

15 March 2010

Navigation

• Navigation – Moving from one object to another is called as navigation or Entering or leaving an item is called as navigation.

Navigation TriggersPre_form Post_ItemPre_block Post_RecordPre_Record Post_BlockPre_Item Post_Form

Pre and Post navigational triggers fires during navigation.When the form enter an item or just after exiting from the

item.

Page 67: Oracle Form Builder

15 March 2010

Some Built in Navigations

• go_form• go_block• Next_record• Previous_record• Next_block• Previous_block• Next_item• Previous_item• Up• Down• Scroll_up• Scroll_down

Page 68: Oracle Form Builder

15 March 2010

Transactional Triggers

• Pre_delete• On_delete• Post_delete• Pre_insert• On_insert• Post_insert• Pre_update• On_update• Post_update• Post_form_commit• Post_database_commit• On-Suppresses the current processing and deletes a record according to a coding written inside the trigger.

Page 69: Oracle Form Builder

15 March 2010

Sharing Objects and Codes

• There are four types of sharing objects• Property Classes• Object Groups• Object Libraries• PL/SQL Libraries

Page 70: Oracle Form Builder

15 March 2010

Property Classes: Definition

Property Classes – These are form objects which contains a set ofproperty along with some.

1.Font name2.Font Size3.Foreground color4.Background colorItem->property palette->subclass information->dialog window comes->click on property class->specify your block name and property class name which you have created.

Note:Properties are of two types:1.Inherited( red arrow)2.Variant Changed (arrow cross).

Page 71: Oracle Form Builder

15 March 2010

Object Groups• Object Groups are logical containers which contains different• logically related forms objects.• We can drag the objects such as blocks,canvases,LOV,• procedures,windows etc. and place them inside the object • groups.• We can drag the object group from 1st form and attach it to • the object group node of the second form created.• COPY – If we click on copy then there will be no relation • between the master and the child block.• SUBCLASS – If we click on subclass then any deletion from• the master block will affect the child block.

Page 72: Oracle Form Builder

15 March 2010

PL/Sql

Libraries

• PL/SQL Libraries – is a module which contains various procedures and functions which can be reused by any form module.Procedures and Function becomes global to all forms.Just by invoking it,we can use them.

• We can attach our PL/sql library to the form.

Page 73: Oracle Form Builder

15 March 2010

Object Libraries

Object Libraries – is a module which contains various forms objects and can be reused again and again.The lowest unit of object libraries is item.

1st form Object library->items->edit->Smart class->green arrow

comes.Save it in .olb format.

2nd formClick on necessary item->right click->smart class->select

whichever item you want from object library->red symbol comes.

Page 74: Oracle Form Builder

15 March 2010

Difference between visual attribute and property class.

• Named visual attributes differ only font, color & pattern attributes, property clauses can contain this and any other properties. We can change the appearance of objects at run time by changing the named visual attributes programmatically , property clause assignments cannot be changed programmatically. When an object is inheriting from both a property clause and named visual attribute, the named visual attribute settings take precedence, and any visual attribute properties in the class are ignored.

Page 75: Oracle Form Builder

15 March 2010