Professional Documents
Culture Documents
Oracle D2K Forms: For The Beginners
Oracle D2K Forms: For The Beginners
com/
M
O
.C
T
O
P
S
Oracle D2K Forms G
O for the beginners
L
.B
8
8
S
P
P
A
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
Forms Info
M
Designed file (form builder) O
Filename.fmb (ifbld60.exe) .C
T
Compiling from (form complier) O
After compilation returns filename.fmx P
File & filename.ERR error file (ifcmp60.exe) S
G
Forms runtime Gives the desired output used toOcreate the runtime environment
of forms (ifrun60.exe) L
Short cut keys: .B
8
Ctrl+S save the FMB file. 8
S
Ctrl+ t Compile the FMB file gives FMX file
P
P
Ctrl+ r Give the final output. (Runs the FMX file) automatically compile
A
and run application.
E
F8 execute query (runtime), also used to retrieve data
L
Cfrom database table.
A
R
O
http://oracleapps88.blogspot.com/
O
Property palate (F4)
L
.B
It is using to assign the properties for Controls (Objects).
P
It is using to design menu
A
Wizard E
L
It is a automatic tool which support to make components like blocks, canvas,
C
charts, lov, reports.
A
R
O
http://oracleapps88.blogspot.com/
Forms components:
M
Blocks :- O
1. Database Block .C
T
2. Control Block
O
Canvas:- P
1. Content Canvas S
G
2. Tab Canvas
O
3. Horizontal Canvas L
4. Vertical Canvas .B
8
5. Stack Canvas
8
S
P
P
A
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
Blocks :
Definition : A block is a container that holds a related group of objects, such as textM
items, Lists, and buttons. O
.C
Types of Blocks : T
O
1. Data Block: P
S
A data block is associated with data (table columns) within a database. By
G
default, the association between a data block and the database allows
O
L
operators to automatically query, update, insert, and delete rows within a
.B
database.
2. Control Block:
8
8
A control block, in contrast, is not associated with the database, and the
S
items in a control block do not relate to table columns within a database.
P
P
A
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
Canvas
M
Definition: Canvas is a physical component which is used to hold the block O
(text-items, check boxes, radio groups, and so on.) . C items
T
Note: O
It is a container which can hold more than one block in it. P
S
It is a physical component. G
Default type canvas is CONTENT canvas. O
L
Default item type is TEXT ITEM>
. B
8 or manually.
Canvases are create through layout wizard
8
S
P
P
A
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
CanvasContd
M
Minimum one content or tab canvas must be there to run the application.O
At least one item must be available to run application . C
Tan internal
O
When ever a base table block is created forms automatically frames
insert, update, delete select statement. P
Sstatement (DML)
User can directly manipulate the data without placing the
physically. G
O
L
.B
8
8
S
P
P
A
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
CanvasContd
M
Types Of Canvases: O
.C
T
Content Canvas: O
P
It is the default Canvas which contains all the database item as well as control items.
At run time only 1 content canvas can be open at a time.S
G
Stacked Canvas :
O
L
It is a dependent Canvas which can be placed either on the content canvas or tab
Canvas. .B
8
Tab Canvas:
8
S
This canvas is in the form of pages/Cards and each tab acts as a individual canvas.
P
Horizontal Canvas P
A
Use to create horizontal toolbar
Vertical CanvasE
L:
Ccreate the Vertical toolbar.
Use to
A
R
O
http://oracleapps88.blogspot.com/
Property types M
O
.C
General
T
Name, item type, comment O
Functional P
S
Enabled (Y/N)
G
Justification (start/center/right/left/end) O
Multi-line- (yes/no) L
.B
Case restriction (Mixed/upper/lower)
8
Conceal data ( Y/N ) 8
S
Popup Menu ( Menu name )
P
Navigation P
A
Previous Navigation item, Next Navigation item
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
Properties of Windows :-
M
O
.C
Name T
O
Title P
S
Primary Canvas G
O
Window Style L
Window runtime Properties:- .B
8
1. 8
Find_Window(Window_Name)
S
2. Get_Window_PropertyP
P
3. A
Set_Window_Property
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
Items M
O
.C
Definition : Items are used to store the valid information. T
O
Types Of Items: 1. Data Items P
2. Control Items S
G
O within the database.
1. Data Items: - Data items correspond to table columns
2. Control Items: - Control items do not have L
any association with the database.
.B
8
8
S
P
P
A
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
Item Type
M
O
Text Item .C
T
Displayed Item O
Check Box P
List item S
G
Radio Group O
Radio Button L
Image Item .B
8
Push Button 8
Chart item S
P
P
A
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
Item TypeContd
M
O
Text Item :It is editable item used to accept data from end-user.
.C
T
O
P
Note: Default item type assigned with every column of table in a database block.
Property to be check. S
Item Name G
O
Item type : Text Item
L
Data type :
.B
Required : 8
8
Initial Value :
S
P
Database item (Y/N)
P
Database column name ( in case database item)
A
E
Canvas name
L
C
A
R
O
http://oracleapps88.blogspot.com/
Item TypeContd
M
O
Display item
C.
Tpurpose.
Non editable item used to display information for read only
O
Example: P
Convert Hiredate to displayed item S
Properties of Hiredate G
Item type - display item O
L
Initial value - $$date$$ (default sysdate value)
Format mask - dd-mon-yyyy .B
8
NOTE System variable
8
S
$$date$$ -represent system date(dd-mon-yyyy)
P
$$time$$ -represent system time (hh; mi; ss)
P
$$datetime$$ $$DATETIME$$ -represent system date & time (DD-MON-YYYY
A
HH:MI:SS), DD/MM/YYYY HH:MI:SS
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
Item TypeContd
M
O
.C
Checkbox: A Check Box is a two state control that indicates whether aT certain condition
or value is on or off, true or false. The display state of a check box isO
always either
"checked" or "unchecked". P
S
Properties:-
G
Checked value
O
Unchecked value
L
.B
Initial value
Exam: Convert SEX to Check box.
sex 8
8
Name:
Value when checkedS:M
Item type: Checkbox
P :F
Initial valueP
Value when unchecked
:M
Lebel: A
E
:Sex: Male
LDatatype : char
C
Max length :1
Database item : yes
A Column name : sex
R
O
http://oracleapps88.blogspot.com/
Item TypeContd
M
O
.C
Radio group :-
T
O
Radio groups display a fixed no of options that are mutually exclusive.
User can select one out of n number of options. P
S
G
It holds a collection of radio Buttons. O
Properties:- Item type, initial value. L
.B
8
Radio button 8
S
Used to represent a (one) choice in radio group.
P
P
Every time this is used in side the Radio group.
A
Properties:-
E
Name, label, radio button value
L
C
A
R
O
http://oracleapps88.blogspot.com/
Item TypeContd
M
O
.C
Example:
T
Convert the Job as the Radio group. O
Item type : Radio group. P
Initial value: Clerk S
G
O
Go to the Object Navigator > Create 3 new radio button under the Job.
Set the property value of each Button. L
. B
8 editor.
Rearrange the Buttons in the layout
8
S
P
P
A
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
Item TypeContd
M
O
Example Contd .C
T
Button1 properties O
Name : Manager P
Level : Manager S
G
Button Value : Manager O
Button2 properties L
Name : Clerk .B
Level : Clerk 88
Button ValueS: Clerk
Button3 propertiesP
P
A : Salesman
Name
E
L Level : Salesman
C Button Value : Salesman
A
R
O
http://oracleapps88.blogspot.com/
Item TypeContd
M
O
.C
List item
T
It is used to represent N number of choice for end user. O
Properties : P
Item Type : List item S
G
O
List Style : ( Poplist/ Tlist / Combo Box)
Elements in list : L
.B
List Elements : For Display purpose.
8
List Value
8
: Store it in the database.
S
Initial value: One of the list values.
P
P
A
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
Item TypeContd
M
O
Exam: .C
T
Convert the City and Country as List item.
O
Properties: P
Item type : List item S
List style : Pop list (default) G
O
L
List element : provide list of choices for City.
.B
Initial values : it must be a list values.
Combo box Editable list item.
Pop list & Tlist Non editable list8
8
item.
Combo box has to be createdS while creating in block or wizard manually.
P
P
A
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
Item TypeContd
M
O
Push Button .C
T
It is a control item ( non-database).
O
P
It execute some pl/sql code, when user has pressed the button.
Exam: S
Create a push button on layout. G
O
Properties
L
Name : Save
.B
Level : Save 8
Visible : yes 8
Canvas : Canvas name S
P
P
WBP- trigger ( Commit_form; )
A
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
Control Items
M
O
.C
Frame :
T
Used to bind the controls as a unit. O
Use a frame to bind the all the radio button for Job. P
S
Boilerplate : G
O
This is the free text which is used only for the fixed text message/ label
L
.B
8
8
S
P
P
A
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
Built-incontd
M
O
Next_item : Cursor moves to the next item. .C
T
Previous_item : Cursor moves to the previous item.
O
Go_item (block name. item name): P
Show_view (canvas) : to display canvas programmatically.S
Hide_view (canvas) : to hide the canvas. G
Ofor query
Enter_query
L
: prompts to accepts a condition
Execute_query B tables into block
: retrieves data from data
.
Abort_query : cancel query
8 at run time
Show _alert (alert name) : To display 8 alert
Show_lov (lov name) :To display Slov at run time
P the properties at run time
Set_lov_property P
: To change
Set_alert_property A: To change the alert properties at run time
E
Set_alert_button_property :To change the properties of alert button at run time
L : To change the properties of block
C
Set_block_property
A
R
O
http://oracleapps88.blogspot.com/
Built-incontd
M
O
Set_item_property : .C
T
To change the properties item
O
Set_window_property : P
To change properties of window. S
Create_record: G
O
Used to add a new record (inside) L
.B
It clears screen & to allow to insert a record
Delete-record: 8
It used to remove a record 8
S
P
Applied to the current record pointed by cursor
P
After adding or removing a row, commit has to be activated to save changes
permanently A
Etext II variable->it is optional);
Used toC
L
Message (message
print messages.
A: message ( good morning);
Exam
R
O
http://oracleapps88.blogspot.com/
Built-incontd
M
O
Call_from : It calls the other form. But parent remains active, when called form completes
the operation, it releases lock and control goes back to the calling form.
.C
T
When you call a form, Oracle Forms issues a save point for the called form. If the
O
CLEAR_FORM function causes a rollback when the called form is current, Oracle Forms rolls
back uncommitted changes to this save point. P
S
G
Oa save point for the called form. If
. OPEN_FORM: When you call a form, Oracle Forms issues
L
the CLEAR_FORM function causes a rollback when the called form is current, Oracle Forms
.B
rolls back uncommitted changes to this save point.
8
8
. S
NEW_FORM: Exits the current form and enters the indicated form. The calling form is
P
terminated as the parent form. If the calling form had been called by a higher form, Oracle
P
Forms keeps the higher call active and treats it as a call to the new form. Oracle Forms
A
releases memory (such as database cursors) that the terminated form was using.
E
L
. C:
Run_product
Ato run the other product of developer 6i from forms run time environment
used
R
O
Ex->Graphics, reports
http://oracleapps88.blogspot.com/
SYSTEM VARIABLES
M
O
:SYSTEM.BLOCK_STATUS ---- It is used to check the current block status . C
T
:SYSTEM.RECORD_STATUS ---- It is used to check the Current Record status O
:SYSTEM.MESSAGE_LEVEL ---- It is used to suppress the error messages. P
:SYSTEM.CURRENT_RECORD --- It is used to check the current record. S
G
O
:SYSTEM.CURSOR_RECORD ---- It is used to check at which record the cursor is pointing.
:SYSTEM.LAST_RECORD L record of the block.
----- It is used to find the last
:SYSTEM.CURRENT_FIELD ----- It is used to check .B what is the current field
:SYSTEM.CURSOR_FIELD ----- It is used8
8 to check at which field the cursor is pointing.
S
global temporary variable P
: A Global variable is oracle forms variable whose value is
P
A
accessible to triggers and subprograms in any module that is active during the current
session. E
L variable should be define at PRE-FORM Trigger.
Note: A global temporary
C
A
Ex: :GLOBAL.VARIABLE_NAME := 0;
R
O
http://oracleapps88.blogspot.com/
Trigger
M
O
.C
Definition:
T
Operticular
Trigger is an event that will fires whenever the
P
event occurs.
S
G
O
3 levels of Triggers
L
.B
Form Level Trigger
Block level Trigger 8
Item level Trigger 8
S
P
P
A
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
Trigger Contd
M
O
16 Types of Trigger .C
T
Transactional-Triggers
O
Validation-Triggers P
When-trigger S
Block-Processing-triggers G
O
Key-Triggers
L
.B
Master-details-triggers
Message-handling-triggers
8
Mouse-event-triggers 8
Navigational-trigger S
P
Post-triggers
P
Pre-Triggers
A
On-trigger E
L
Query-time-triggers
C
A
Stored-procedure-triggers
R
Active X triggers
O
http://oracleapps88.blogspot.com/
Trigger Contd
M
O
.C
Transactional-Triggers
T
Pre_insert O
Pre_update P
S
Pre_delete
G
On_insert O
On_update L
On_delete .B
8
post_insert
8
Post_update S
P
Post_delete
P
On_commit
A
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
Trigger Contd
M
O
.C
Validation-Triggers
T
When-validate-Item O
When-validate-record P
S
G
Block-Processing-triggers O
Pre-block L
Post-block .B
8
8
Key-Triggers S
P
Key-F1 ( function key) P
Key-next-item A
Key-others.. E
L
C
A
R
O
http://oracleapps88.blogspot.com/
Trigger Contd
M
O
.C
Master-details-triggers
T
On-check-delete-master O
On-clear-details P
On-populate-details S
G
Message-handling-triggers O
On-error L
On-message .B
8
Mouse-event-triggers 8
When-mouse-click S
P
P
When-mouse-doubleclick
A
When-mouse-leave
E
L
When-mouse-enter
C
A
R
O
http://oracleapps88.blogspot.com/
Trigger Contd
M
O
.C
Navigational-trigger T
O
P
S
G
O
L
.B
8
8
S
P
P
A
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
Trigger Contd
M
O
.C
. T
O
P
S
G
O
L
.B
8
8
S
P
P
A
E
L
C
A
R
O
http://oracleapps88.blogspot.com/
P
and state as non editable
A
When-radio-button-changed
E ( Deptno has changed to :|| kk_emp_details.deptno);
Deptno ( should be a radio group )
L the Dname and location based on the New Deptno.
Message
C
Default
A
R
O
http://oracleapps88.blogspot.com/
G
Set_item_property(emp.Next_block , enable, property_false);
Set_item_property(emp.empno, enable, property_false);
O
When_check_box_changed (Status) L
If :EMP.STATUS = A then .B
8
Set_item_property(emp.Clear_Block,enable, property_true);
8
Set_item_property(emp.Next_block , enable, property_true);
Else S
P
Set_item_property(emp.Clear_Block , enable, property_false);
P
Set_item_property(emp.Next_block , enable, property_false);
end if; A
E
L
C
A
R
O
http://oracleapps88.blogspot.com/