SlideShare ist ein Scribd-Unternehmen logo
1 von 19
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.
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;

Weitere Àhnliche Inhalte

Was ist angesagt?

Microsoft visual basic 6
Microsoft visual basic 6Microsoft visual basic 6
Microsoft visual basic 6Penang, Malaysia
 
Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6Jeanie Arnoco
 
Visual basic
Visual basicVisual basic
Visual basicumesh patil
 
Working with visual basic applications
Working with visual basic applicationsWorking with visual basic applications
Working with visual basic applicationsSara Corpuz
 
Controls events
Controls eventsControls events
Controls eventsDalwin INDIA
 
Computer homework
Computer homeworkComputer homework
Computer homeworkadarsh-kaul
 
Chapter 03 - Program Coding and Design
Chapter 03 - Program Coding and DesignChapter 03 - Program Coding and Design
Chapter 03 - Program Coding and Designpatf719
 
Introduction to Visual Basic (Week 2)
Introduction to Visual Basic (Week 2)Introduction to Visual Basic (Week 2)
Introduction to Visual Basic (Week 2)Don Bosco School Manila
 
Meaning Of VB
Meaning Of VBMeaning Of VB
Meaning Of VBMohit Verma
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programmingRoger Argarin
 
Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computersimran153
 
Vb unit t 1.1
Vb unit t 1.1Vb unit t 1.1
Vb unit t 1.1Gayathri Cit
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)pbarasia
 
Vb6.0 Introduction
Vb6.0 IntroductionVb6.0 Introduction
Vb6.0 IntroductionTennyson
 
Visual C# 2010
Visual C# 2010Visual C# 2010
Visual C# 2010Ali Mattash
 

Was ist angesagt? (20)

Microsoft visual basic 6
Microsoft visual basic 6Microsoft visual basic 6
Microsoft visual basic 6
 
Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6
 
Visual basic
Visual basicVisual basic
Visual basic
 
Vb basics
Vb basicsVb basics
Vb basics
 
Working with visual basic applications
Working with visual basic applicationsWorking with visual basic applications
Working with visual basic applications
 
Visual studio.net
Visual studio.netVisual studio.net
Visual studio.net
 
Controls events
Controls eventsControls events
Controls events
 
Computer homework
Computer homeworkComputer homework
Computer homework
 
Chapter 03 - Program Coding and Design
Chapter 03 - Program Coding and DesignChapter 03 - Program Coding and Design
Chapter 03 - Program Coding and Design
 
Introduction to Visual Basic (Week 2)
Introduction to Visual Basic (Week 2)Introduction to Visual Basic (Week 2)
Introduction to Visual Basic (Week 2)
 
Meaning Of VB
Meaning Of VBMeaning Of VB
Meaning Of VB
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
 
Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computer
 
Vb tutorial
Vb tutorialVb tutorial
Vb tutorial
 
Vb unit t 1.1
Vb unit t 1.1Vb unit t 1.1
Vb unit t 1.1
 
Les15
Les15Les15
Les15
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)
 
Vb6.0 Introduction
Vb6.0 IntroductionVb6.0 Introduction
Vb6.0 Introduction
 
Visual C# 2010
Visual C# 2010Visual C# 2010
Visual C# 2010
 
Visusual basic
Visusual basicVisusual basic
Visusual basic
 

Ähnlich wie Oracle forms 6_i__1_

COM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxCOM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxAnasYunusa
 
Tuotorials
TuotorialsTuotorials
Tuotorialsraja umair
 
Les03
Les03Les03
Les03Sireen8
 
Vb introduction.
Vb introduction.Vb introduction.
Vb introduction.sagaroceanic11
 
C# .net Interfacing with embedded system
C# .net  Interfacing with embedded system C# .net  Interfacing with embedded system
C# .net Interfacing with embedded system Raghav Shetty
 
UNIT I.pptx
UNIT I.pptxUNIT I.pptx
UNIT I.pptxBhargaviJ8
 
130297267 transformations
130297267 transformations130297267 transformations
130297267 transformationsSunil Pandey
 
Oracle General ledger ivas
Oracle General ledger ivasOracle General ledger ivas
Oracle General ledger ivasAli Ibrahim
 
Oracle Discoverer Reports via BSS
Oracle Discoverer Reports via BSSOracle Discoverer Reports via BSS
Oracle Discoverer Reports via BSSKhalid Tariq
 
Vb6.0 intro
Vb6.0 introVb6.0 intro
Vb6.0 introJOSEPHINEA6
 
Programming basics
Programming basicsProgramming basics
Programming basicsSenri DLN
 
Getting started with workflow
Getting started with workflowGetting started with workflow
Getting started with workflowseenu126
 
Login Project with introduction .pptx
Login Project with introduction .pptxLogin Project with introduction .pptx
Login Project with introduction .pptxkulmiyealiabdille
 
Creating reports in oracle e business suite using xml publisher
Creating reports in oracle e business suite using xml publisherCreating reports in oracle e business suite using xml publisher
Creating reports in oracle e business suite using xml publisherSamchi Fouzee
 
What is ui element in i phone developmetn
What is ui element in i phone developmetnWhat is ui element in i phone developmetn
What is ui element in i phone developmetnTOPS Technologies
 
Getting started-guides-english
Getting started-guides-englishGetting started-guides-english
Getting started-guides-englishGauravShetty42
 
Introduction of Xcode
Introduction of XcodeIntroduction of Xcode
Introduction of XcodeDhaval Kaneria
 

Ähnlich wie Oracle forms 6_i__1_ (20)

COM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxCOM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptx
 
Tuotorials
TuotorialsTuotorials
Tuotorials
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Les03
Les03Les03
Les03
 
Vb introduction.
Vb introduction.Vb introduction.
Vb introduction.
 
C# .net Interfacing with embedded system
C# .net  Interfacing with embedded system C# .net  Interfacing with embedded system
C# .net Interfacing with embedded system
 
UNIT I.pptx
UNIT I.pptxUNIT I.pptx
UNIT I.pptx
 
130297267 transformations
130297267 transformations130297267 transformations
130297267 transformations
 
Oracle General ledger ivas
Oracle General ledger ivasOracle General ledger ivas
Oracle General ledger ivas
 
Oracle Discoverer Reports via BSS
Oracle Discoverer Reports via BSSOracle Discoverer Reports via BSS
Oracle Discoverer Reports via BSS
 
Vb6.0 intro
Vb6.0 introVb6.0 intro
Vb6.0 intro
 
Programming basics
Programming basicsProgramming basics
Programming basics
 
Getting started with workflow
Getting started with workflowGetting started with workflow
Getting started with workflow
 
Login Project with introduction .pptx
Login Project with introduction .pptxLogin Project with introduction .pptx
Login Project with introduction .pptx
 
Visual basic
Visual basicVisual basic
Visual basic
 
Creating reports in oracle e business suite using xml publisher
Creating reports in oracle e business suite using xml publisherCreating reports in oracle e business suite using xml publisher
Creating reports in oracle e business suite using xml publisher
 
What is ui element in i phone developmetn
What is ui element in i phone developmetnWhat is ui element in i phone developmetn
What is ui element in i phone developmetn
 
Getting started-guides-english
Getting started-guides-englishGetting started-guides-english
Getting started-guides-english
 
Visual Basic.pptx
Visual Basic.pptxVisual Basic.pptx
Visual Basic.pptx
 
Introduction of Xcode
Introduction of XcodeIntroduction of Xcode
Introduction of Xcode
 

KĂŒrzlich hochgeladen

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 

KĂŒrzlich hochgeladen (20)

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

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.
  • 3.
  • 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;