SlideShare a Scribd company logo
ORACLE FORMS 6I

          •   Enterprise application developers need a declarative model-based approach. Oracle Designer
              and Oracle Forms Developer provide this solution, using Oracle Forms Services as the primary
              deployment option.

What Is Oracle Forms Developer?

          •   A productive development environment for Internet business applications
                         Data entry
                         Query screens

          •   It provides a set of tools that enable business developers to easily and quickly construct
                           sophisticated database forms and
                           business logic with a minimum of effort.


Oracle Forms Services?

      Oracle Forms Services is a component of Oracle9i Application Server for delivering
         Oracle Forms Developer applications to the Internet.
      Oracle Forms Services uses a three-tier architecture to deploy database applications:
              1. The client tier contains the Web browser, where the application is
                  displayed and used.
              2. The middle tier is the application server, where the application logic and
                  server software reside.
              3. The database tier is the database server, where enterprise data is stored.
What is Form Builder?

Form Builder is a powerful development tool for building robust, enterprise-class applications that
enable end users to retrieve, enter, modify, and save information in the database.
Oracle forms 6_i__1_
Form Builder Components
1. Object Navigator – [F3]
2. Property Palette [F4]
3. Layout Editor (or Layout Model) [F2]
4. PL/SQL Editor [F11]

Types of Blocks
In Form Builder there are two main types of blocks:
1. data blocks and
2. control blocks.

1. DATA BLOCKS

   •   A data block is associated with a specific database table (or
       view), a stored procedure, a FROM clause query, or transactional triggers.
   •   If it is based on a table (or view), the data block can be based on only one base table

2. Control Blocks

   •   A control block is not associated with a database, and its items do
        not relate to any columns within any database table.
   •   Its items are called control items.


What Is a Window?
A window is a container for all visual objects that make up a Form Builder application.
It is similar to an empty picture frame.

What Is a Canvas?
A canvas is a surface inside a window container on which you place visual objects
such as interface items and graphics.

What Is a Content Canvas?

A content canvas is the base canvas
that occupies the entire content pane of the window in which it displays. The content
canvas is the default canvas type.

Form Builder provides three other types of canvases
which are:
• Stacked canvas
• Toolbar canvas
• Tab canvas

When you create a canvas, you specify its type by setting the Canvas Type property.
The type determines how the canvas is displayed in the window to which it is
assigned.

What Is a Stacked Canvas?
A stacked canvas is displayed on top of, or stacked on, the content canvas assigned to
a window.

What Is a Toolbar Canvas?
A toolbar canvas is a special type of canvas that you can create to hold buttons and
other frequently used GUI elements.

The Three Toolbar Types
• Vertical toolbar: Use a vertical toolbar to position all your tool items
down the left or right hand side of your window.
• Horizontal toolbar: Use a horizontal toolbar to position all your tool
items and controls across the top or bottom of your window.
• MDI toolbar: Use an MDI toolbar to avoid creating more than one
toolbar for a Form Builder application that uses multiple windows.


What Is a Tab Canvas?
A tab canvas is a special type of canvas that enables you to organize and display
related information on separate tabs.
TO DESIGN FORM MODULE USING WIZARD

1. OPEN FORM MODULE

2. SELECT WIZARD OPTION AND CLICK ON OK




3.

  CLICK ON NEXT->NEXT

4. TYPE THE TABLE NAME AND CLICK ON REFRESH BUTTON
5. ENTER USER NAME: SCOTT/TIGER@VIS




6.
7. NOW MOVE THE REQUIRED COLUNMS TO DATABASE ITEMS
8. CLICK ON FINISH
9. TO PLACE DATABLOCK ITEMS ON CANVAS




10.
11. CLICK ON NEXT->NEXT BUTTON
12. MOVE THE REQUIRED ITEMS TO BE PLACED ON CANVAS
13. CLICK ON NEXT->NEXT BUTTON
14. ENTER FRAME TITLE




15 CLICK FINISH BUTTON
NOW CLICK ON RUN ICON
DESIGN FORM AS FOLLOWS


TO CREATE CONTROL BLOCK




NOW SELECT MANUAL AND CLICK ON OK




NOW CHANGE NAME OF THE BLOCK
NOW DOUBLE CLICK ON CANAVAS AND PLACE BUTTONS AS FOLLOWS




NOW TO SELECT TRIGGER FOR THE BUTTONS
EXECUTE CODE:
   GO_BLOCK('EMP');
   EXECUTE_QUERY;

LAST :                  FIRST:
   GO_BLOCK('EMP');         GO_BLOCK('EMP');
   LAST_RECORD;             FIRST_RECORD;

NEXT:
   GO_BLOCK('EMP');
    NEXT_RECORD;

PREVIOUS
     GO_BLOCK('EMP');
     PREVIOUS_RECORD;

EXIT:
     EXIT_FORM;
T_EMPNO      “POST_TEXT_ITEM”

SELECT ENAME,JOB,SAL,DEPTNO INTO :T_ENAME,:T_JOB,:T_SAL,:T_DEPTNO FROM EMP
WHERE EMPNO=:T_EMPNO;
DESIGN FORM AS FOLLOWS




ADD CODE

DECLARE
     N NUMBER;
BEGIN
 SELECT MAX(EMPNO) INTO N FROM EMP;

IF N IS NULL THEN
      :T_EMPNO:=1001;
ELSE
:T_EMPNO:=N+1;
END IF;
END;

SAVE CODE

INSERT INTO EMP(EMPNO,ENAME,JOB,SAL,DEPTNO)
VALUES(:T_EMPNO,:T_ENAME,:T_JOB,:T_SAL,:T_DEPTNO);
COMMIT;
CLEAR_FORM;
MODIFY

UPDATE EMP SET ENAME=:T_ENAME,JOB=:T_JOB,SAL=:T_SAL,DEPTNO=:T_DEPTNO WHERE
EMPNO=:T_EMPNO;
COMMIT;
CLEAR_FORM;

DELETE

DELETE FROM EMP WHERE EMPNO=:T_EMPNO;
COMMIT;
CLEAR_FORM;

FIND

IF :T_EMPNO IS NULL THEN
       :T_EMPNO:=7654;
ELSE
       SELECT ENAME,JOB,SAL,DEPTNO INTO :T_ENAME,:T_JOB,:T_SAL,:T_DEPTNO FROM
EMP WHERE EMPNO=:T_EMPNO;
END IF;

CLEAR

CLEAR_FORM;

EXIT

EXIT_FORM;

T_JOB “POST_TEXT_ITEM”

if :T_JOB='CLERK' THEN
       :T_SAL:=1200;
ELSif :T_JOB='MANAGER' THEN
       :T_SAL:=2200;
ELSE
             :T_SAL:=3200;
END IF;
LOV

  -   FOR FINDING RECORDS CREATE AN LOV




  -   CALLING LOV WHEN YOU CLICK ON FIND BUTTON

DECLARE
     N BOOLEAN;
BEGIN
      N:=SHOW_LOV('LOV11');
END;
ALERTS


CREATE AN ALERT TO CALL WHEN EVER YOU TRY TO EXIT FROM FORM




  -   IN EXIT BUTTON WRITE FOLLOWING CODE

DECLARE
     N NUMBER;
BEGIN
     N:=SHOW_ALERT('ALERT28');
     IF N=ALERT_BUTTON1 THEN
 EXIT_FORM;
     ELSE
           GO_BLOCK('BLOCK3');
     END IF;
END;
WORKING WITH PROGRAM UNITS

CREATE A PROCEDURE TO CALL WHEN YOU CLICK ON EXIT BUTTON




NOW WRITE FOLLOWING CODE

PROCEDURE CLOSEFORM IS
     N NUMBER;
BEGIN
     N:=SHOW_ALERT('ALERT28');
     IF N=ALERT_BUTTON1 THEN
 EXIT_FORM;
     ELSE
           GO_BLOCK('BLOCK3');
     END IF;
END;

  -   NOW CALL THE PROCEDURE IN “EXIT BUTTON”
      CLOSEFORM;

More Related Content

What's hot (20)

PPT
Microsoft visual basic 6
Penang, Malaysia
 
PPT
Introduction to programming using Visual Basic 6
Jeanie Arnoco
 
PPT
Visual basic
umesh patil
 
PPT
Vb basics
sagaroceanic11
 
PPTX
Working with visual basic applications
Sara Corpuz
 
PPT
Visual studio.net
Dr. C.V. Suresh Babu
 
PPTX
Controls events
Dalwin INDIA
 
PPTX
Computer homework
adarsh-kaul
 
PPTX
Chapter 03 - Program Coding and Design
patf719
 
PPTX
Introduction to Visual Basic (Week 2)
Don Bosco School Manila
 
PPT
Meaning Of VB
Mohit Verma
 
PPT
Introduction to visual basic programming
Roger Argarin
 
PPT
Visual basic ppt for tutorials computer
simran153
 
PDF
Vb tutorial
Saikarthik103212
 
PPT
Vb unit t 1.1
Gayathri Cit
 
PPT
Les15
Sudharsan S
 
PPTX
Presentation on visual basic 6 (vb6)
pbarasia
 
PPS
Vb6.0 Introduction
Tennyson
 
DOCX
Visual C# 2010
Ali Mattash
 
PPTX
Visusual basic
Mandavi Classes
 
Microsoft visual basic 6
Penang, Malaysia
 
Introduction to programming using Visual Basic 6
Jeanie Arnoco
 
Visual basic
umesh patil
 
Vb basics
sagaroceanic11
 
Working with visual basic applications
Sara Corpuz
 
Visual studio.net
Dr. C.V. Suresh Babu
 
Controls events
Dalwin INDIA
 
Computer homework
adarsh-kaul
 
Chapter 03 - Program Coding and Design
patf719
 
Introduction to Visual Basic (Week 2)
Don Bosco School Manila
 
Meaning Of VB
Mohit Verma
 
Introduction to visual basic programming
Roger Argarin
 
Visual basic ppt for tutorials computer
simran153
 
Vb tutorial
Saikarthik103212
 
Vb unit t 1.1
Gayathri Cit
 
Presentation on visual basic 6 (vb6)
pbarasia
 
Vb6.0 Introduction
Tennyson
 
Visual C# 2010
Ali Mattash
 
Visusual basic
Mandavi Classes
 

Similar to Oracle forms 6_i__1_ (20)

DOCX
D2 k word_format
Bharath Chowdhary
 
PPT
forms builder
Shoeb Shabibi
 
PPTX
Forms 6i guide
Vinay Kumar
 
PDF
Oracle Form material
Rajesh Ch
 
PPT
Oracle Forms Tutorial (www.aboutoracleapps.com)
magupta26
 
PDF
D17251 gc20 47_us
Karno Nur Cahyo
 
PDF
Oracle forms developer 10g vol1
abdull466
 
PDF
Oracle9i application server oracle forms services
FITSFSd
 
PPTX
Dbms fast track 2/3
Dr. C.V. Suresh Babu
 
PPT
Oracle forms les03
Abed Othman
 
DOC
Form part1
Sanjeev Pandey
 
PPT
902410 frm les03
shivom12
 
PPTX
Forms11 presentation at ssuet 05 sep-2012
Zubair Ali
 
PPT
Les02
Sireen8
 
PPT
Les03
Sudharsan S
 
PDF
15884086 Oracle Developer Build Forms I
MadhuriR
 
PPTX
New Approaches to Faster Oracle Forms System Performance
Correlsense
 
PDF
Oracle fusion middleware 11g build applications with oracle forms
bispsolutions
 
PDF
Oracle developer interview questions(entry level)
Naveen P
 
D2 k word_format
Bharath Chowdhary
 
forms builder
Shoeb Shabibi
 
Forms 6i guide
Vinay Kumar
 
Oracle Form material
Rajesh Ch
 
Oracle Forms Tutorial (www.aboutoracleapps.com)
magupta26
 
D17251 gc20 47_us
Karno Nur Cahyo
 
Oracle forms developer 10g vol1
abdull466
 
Oracle9i application server oracle forms services
FITSFSd
 
Dbms fast track 2/3
Dr. C.V. Suresh Babu
 
Oracle forms les03
Abed Othman
 
Form part1
Sanjeev Pandey
 
902410 frm les03
shivom12
 
Forms11 presentation at ssuet 05 sep-2012
Zubair Ali
 
Les02
Sireen8
 
15884086 Oracle Developer Build Forms I
MadhuriR
 
New Approaches to Faster Oracle Forms System Performance
Correlsense
 
Oracle fusion middleware 11g build applications with oracle forms
bispsolutions
 
Oracle developer interview questions(entry level)
Naveen P
 
Ad

Recently uploaded (20)

PDF
Plugging AI into everything: Model Context Protocol Simplified.pdf
Abati Adewale
 
PDF
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
 
PDF
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
PDF
Next level data operations using Power Automate magic
Andries den Haan
 
PDF
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
PDF
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
PPTX
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
 
PDF
Kubernetes - Architecture & Components.pdf
geethak285
 
PDF
How to Visualize the ​Spatio-Temporal Data Using CesiumJS​
SANGHEE SHIN
 
PDF
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
PDF
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
PDF
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
PDF
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
PDF
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
PDF
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
PPTX
Enabling the Digital Artisan – keynote at ICOCI 2025
Alan Dix
 
PDF
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
PPTX
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
PDF
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
Plugging AI into everything: Model Context Protocol Simplified.pdf
Abati Adewale
 
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
 
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
Next level data operations using Power Automate magic
Andries den Haan
 
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
 
Kubernetes - Architecture & Components.pdf
geethak285
 
How to Visualize the ​Spatio-Temporal Data Using CesiumJS​
SANGHEE SHIN
 
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
Enabling the Digital Artisan – keynote at ICOCI 2025
Alan Dix
 
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
Ad

Oracle forms 6_i__1_

  • 1. ORACLE FORMS 6I • Enterprise application developers need a declarative model-based approach. Oracle Designer and Oracle Forms Developer provide this solution, using Oracle Forms Services as the primary deployment option. What Is Oracle Forms Developer? • A productive development environment for Internet business applications  Data entry  Query screens • It provides a set of tools that enable business developers to easily and quickly construct  sophisticated database forms and  business logic with a minimum of effort. Oracle Forms Services?  Oracle Forms Services is a component of Oracle9i Application Server for delivering Oracle Forms Developer applications to the Internet.  Oracle Forms Services uses a three-tier architecture to deploy database applications: 1. The client tier contains the Web browser, where the application is displayed and used. 2. The middle tier is the application server, where the application logic and server software reside. 3. The database tier is the database server, where enterprise data is stored.
  • 2. What is Form Builder? Form Builder is a powerful development tool for building robust, enterprise-class applications that enable end users to retrieve, enter, modify, and save information in the database.
  • 5. 1. Object Navigator – [F3] 2. Property Palette [F4] 3. Layout Editor (or Layout Model) [F2] 4. PL/SQL Editor [F11] Types of Blocks In Form Builder there are two main types of blocks: 1. data blocks and 2. control blocks. 1. DATA BLOCKS • A data block is associated with a specific database table (or view), a stored procedure, a FROM clause query, or transactional triggers. • If it is based on a table (or view), the data block can be based on only one base table 2. Control Blocks • A control block is not associated with a database, and its items do not relate to any columns within any database table. • Its items are called control items. What Is a Window? A window is a container for all visual objects that make up a Form Builder application. It is similar to an empty picture frame. What Is a Canvas? A canvas is a surface inside a window container on which you place visual objects such as interface items and graphics. What Is a Content Canvas? A content canvas is the base canvas that occupies the entire content pane of the window in which it displays. The content canvas is the default canvas type. Form Builder provides three other types of canvases which are: • Stacked canvas • Toolbar canvas • Tab canvas When you create a canvas, you specify its type by setting the Canvas Type property.
  • 6. The type determines how the canvas is displayed in the window to which it is assigned. What Is a Stacked Canvas? A stacked canvas is displayed on top of, or stacked on, the content canvas assigned to a window. What Is a Toolbar Canvas? A toolbar canvas is a special type of canvas that you can create to hold buttons and other frequently used GUI elements. The Three Toolbar Types • Vertical toolbar: Use a vertical toolbar to position all your tool items down the left or right hand side of your window. • Horizontal toolbar: Use a horizontal toolbar to position all your tool items and controls across the top or bottom of your window. • MDI toolbar: Use an MDI toolbar to avoid creating more than one toolbar for a Form Builder application that uses multiple windows. What Is a Tab Canvas? A tab canvas is a special type of canvas that enables you to organize and display related information on separate tabs.
  • 7. TO DESIGN FORM MODULE USING WIZARD 1. OPEN FORM MODULE 2. SELECT WIZARD OPTION AND CLICK ON OK 3. CLICK ON NEXT->NEXT 4. TYPE THE TABLE NAME AND CLICK ON REFRESH BUTTON 5. ENTER USER NAME: SCOTT/TIGER@VIS 6.
  • 8. 7. NOW MOVE THE REQUIRED COLUNMS TO DATABASE ITEMS 8. CLICK ON FINISH 9. TO PLACE DATABLOCK ITEMS ON CANVAS 10. 11. CLICK ON NEXT->NEXT BUTTON 12. MOVE THE REQUIRED ITEMS TO BE PLACED ON CANVAS
  • 9. 13. CLICK ON NEXT->NEXT BUTTON 14. ENTER FRAME TITLE 15 CLICK FINISH BUTTON
  • 10. NOW CLICK ON RUN ICON
  • 11. DESIGN FORM AS FOLLOWS TO CREATE CONTROL BLOCK NOW SELECT MANUAL AND CLICK ON OK NOW CHANGE NAME OF THE BLOCK
  • 12. NOW DOUBLE CLICK ON CANAVAS AND PLACE BUTTONS AS FOLLOWS NOW TO SELECT TRIGGER FOR THE BUTTONS
  • 13. EXECUTE CODE: GO_BLOCK('EMP'); EXECUTE_QUERY; LAST : FIRST: GO_BLOCK('EMP'); GO_BLOCK('EMP'); LAST_RECORD; FIRST_RECORD; NEXT: GO_BLOCK('EMP'); NEXT_RECORD; PREVIOUS GO_BLOCK('EMP'); PREVIOUS_RECORD; EXIT: EXIT_FORM;
  • 14. T_EMPNO “POST_TEXT_ITEM” SELECT ENAME,JOB,SAL,DEPTNO INTO :T_ENAME,:T_JOB,:T_SAL,:T_DEPTNO FROM EMP WHERE EMPNO=:T_EMPNO;
  • 15. DESIGN FORM AS FOLLOWS ADD CODE DECLARE N NUMBER; BEGIN SELECT MAX(EMPNO) INTO N FROM EMP; IF N IS NULL THEN :T_EMPNO:=1001; ELSE :T_EMPNO:=N+1; END IF; END; SAVE CODE INSERT INTO EMP(EMPNO,ENAME,JOB,SAL,DEPTNO) VALUES(:T_EMPNO,:T_ENAME,:T_JOB,:T_SAL,:T_DEPTNO); COMMIT; CLEAR_FORM;
  • 16. MODIFY UPDATE EMP SET ENAME=:T_ENAME,JOB=:T_JOB,SAL=:T_SAL,DEPTNO=:T_DEPTNO WHERE EMPNO=:T_EMPNO; COMMIT; CLEAR_FORM; DELETE DELETE FROM EMP WHERE EMPNO=:T_EMPNO; COMMIT; CLEAR_FORM; FIND IF :T_EMPNO IS NULL THEN :T_EMPNO:=7654; ELSE SELECT ENAME,JOB,SAL,DEPTNO INTO :T_ENAME,:T_JOB,:T_SAL,:T_DEPTNO FROM EMP WHERE EMPNO=:T_EMPNO; END IF; CLEAR CLEAR_FORM; EXIT EXIT_FORM; T_JOB “POST_TEXT_ITEM” if :T_JOB='CLERK' THEN :T_SAL:=1200; ELSif :T_JOB='MANAGER' THEN :T_SAL:=2200; ELSE :T_SAL:=3200; END IF;
  • 17. LOV - FOR FINDING RECORDS CREATE AN LOV - CALLING LOV WHEN YOU CLICK ON FIND BUTTON DECLARE N BOOLEAN; BEGIN N:=SHOW_LOV('LOV11'); END;
  • 18. ALERTS CREATE AN ALERT TO CALL WHEN EVER YOU TRY TO EXIT FROM FORM - IN EXIT BUTTON WRITE FOLLOWING CODE DECLARE N NUMBER; BEGIN N:=SHOW_ALERT('ALERT28'); IF N=ALERT_BUTTON1 THEN EXIT_FORM; ELSE GO_BLOCK('BLOCK3'); END IF; END;
  • 19. WORKING WITH PROGRAM UNITS CREATE A PROCEDURE TO CALL WHEN YOU CLICK ON EXIT BUTTON NOW WRITE FOLLOWING CODE PROCEDURE CLOSEFORM IS N NUMBER; BEGIN N:=SHOW_ALERT('ALERT28'); IF N=ALERT_BUTTON1 THEN EXIT_FORM; ELSE GO_BLOCK('BLOCK3'); END IF; END; - NOW CALL THE PROCEDURE IN “EXIT BUTTON” CLOSEFORM;