Email Us : sunilkumark11@gmail.com
Free Training
 SQL
 PL/ SQL
 Forms
 Reports
 
Introduction:
1.
Introduction of Oracle Forms 14. Alerts
2. Types of controls 15. Types of canvas
3. Visual Attributes 16. Creating tables through forms
4. Property class 17. Menus
5. Constraints in forms 18. Record Groups
6. Creating Database block Manually 19. Creating sub programs in forms
7. Master-detail relation 20. Using Database triggers in forms
8. Object Groups 21. PL/SQL Libraries
9. Object libraries 22. Creating Database procedures and functions in forms.
10. Built_in subprograms used in form triggers 23. Creating data block using stored procedures
11. Form Triggers 24. Trapping errors
12. Using button control 25. Windows
13. Creating password screen    

     Database Constraints in Forms:-

The following example helps to learn creating data block manually.

Example
Create dept table in your database.

SQL>  CREATE TABLE DEPT (DEPTNO NUMBER(2),
DNAME VARCHAR2(14),
LOC VARCHAR2(13) );

 

Insert four rows into the table.

SQL> INSERT INTO DEPT VALUES (10, 'ACCOUNTING', 'NEW YORK');
SQL> INSERT INTO DEPT VALUES (20, 'RESEARCH', 'DALLAS');
SQL> INSERT INTO DEPT VALUES (30, 'SALES', 'CHICAGO');
SQL> INSERT INTO DEPT VALUES (40, 'OPERATIONS', 'BOSTON');
SQL> commit;

SQL> Select * from dept;

Open the form builder tool
You will get welcome to Form builder Select build new form manually Ok
You will be directed to object navigator.

Select data blocks click on create button.

 

 

 Build new data block manually Ok  ( Empty block is created ).
Create canvas
Select Canvases Click on create button ( Canvas is created ).
Go to Layout Editor ( Tools Layout Editor )

Place three text item on the layout.
For each text item, provide the following properties

Properties

1st text item

2nd text item

3rd text item

Name

DEPTNO

DNAME

LOC

Datatype

Number

Char

Char

Column Name

deptno

dname

loc

Prompt

Deptno

Dname

Loc

In object Navigator select the block, provide the following properties

Name

DEPT

Query data source name

Dept

Query data source column

column name

datatype

length

DEPTNO

NUMBER

2

DNAME

VARCHAR2

14

LOC

LOC

13

File Save
Program Compile Module
Program Run form

Click on execute query