SlideShare a Scribd company logo
8
Most read
10
Most read
13
Most read
Creating & Debugging Triggers
Objectives
• How to Create Triggers?
• Writing trigger code
• Describe Built-in sub-programs used in Forms
• When-Button-Pressed Trigger
• When-Window-Closed Trigger
• Debugging Triggers
How to Create a Trigger?
Trigger PL/SQL Block
• DECLARE
------- Declarative statements (OPTIONAL)
• BEGIN
------- Executable statements (MANDATORY)
• EXCEPTION
--------- Exception Handling. (OPTIONAL)
• END;
Variables in Form Builder
• PL/SQL variables must be declared in triggers or must be defined in a
package
• Form Builder variables not required to be declared
– Requires a Colon Prefix
Form Builder Variables
• Items
For presentation and user interaction :block_name.item_name
• Global variables
Session-wide character variable :GLOBAL.var_name
• System variables
Form status and control :SYSTEM.var_name
• Parameters
Passing values in and out of module :PARAMENTER.parameter
Form Builder Built-in Subprograms
Built-ins belong to either:
• The Standard Extensions package where no prefix is required
• Another Form Builder package where a prefix is required
Built-in
Restricted
Built-ins
Unrestricted
Built-ins
Allowed only
In certain
Triggers
Allowed In Any
Trigger or
subprogram
Built-in Subprograms
• EDIT_TEXTITEM
• ENTER_QUERY
• EXECUTE_QUERY
• EXIT_FORM
• GO_BLOCK
• GO_ ITEM
• NEXT_RECORD
• PREVIOUS_RECORD
• MESSAGE
• SHOW_ALERT
• SHOW_ EDITOR
• SHOW_ LOV
• SHOW_VIEW
• HIDE_VIEW
• GET_ITEM_PROPERTY
• SET_ITEM_PROPERTY
When-Button-Pressed Trigger
• Fires when the operator clicks a button.
• Accepts restricted and unrestricted
built-ins.
• Used for existing form, Display LOVs, Editors etc.
Example
GO_BLOCK(‘EMP’);
EXECUTE_QUERY;
When-Window-Closed Trigger
• Fires when the operator closes a window by clicking button.
• Accepts restricted and unrestricted built-ins.
• Used to programmatically close a window when the operator issues a
window manager-specific close command. You can close a window by
using built-ins.
When-Window-Closed
Trigger at Form Level.
EXIT_FORM;
Debugging Triggers
• Monitor and Debug Triggers by:
– Compiling and rectifying errors in the PL/SQL Editor
– Displaying debug messages at run time
– Invoking the PL/SQL Debugger
Debugging Triggers -Tips
• Connect to Database before compiling SQL statements.
• Define triggers always at the correct level
• Terminate statements with semicolon where ever necessary.
• Watch for missing quotation marks
• Place the triggers where the event will happen.
Running a Form In Debug Mode
Forms
Debugger
Window
Run Form Debug
Debug Triggers and Breakpoint
Every
statement
Debugger
Program Unit
Statement
Statement
Statement
Debug
trigger
Breakpoint
trigger
Fire
Fire
Fire
Breakpoint
PL/SQL Debugger
Step Into
Step Over
Step Out
Go Reset
Debug Commands
Summary
• Creating Trigger
• From Built-ins
• Restricted and Unrestricted built-ins
• When-Button-Pressed trigger
• When-Window-Closed Trigger
Ad

Recommended

Oracle Forms : Validation Triggers
Oracle Forms : Validation Triggers
Sekhar Byna
 
Oracle Forms : Reusable Components
Oracle Forms : Reusable Components
Sekhar Byna
 
Oracle Forms Creation-List of Values (LOV)
Oracle Forms Creation-List of Values (LOV)
Sekhar Byna
 
Oracle Forms- key triggers
Oracle Forms- key triggers
Sekhar Byna
 
Oracle Forms : Coding ..
Oracle Forms : Coding ..
Sekhar Byna
 
Oracle Forms Triggers
Oracle Forms Triggers
Sekhar Byna
 
Oracle Forms: Master Detail form
Oracle Forms: Master Detail form
Sekhar Byna
 
Oracle Forms : Multiple Forms
Oracle Forms : Multiple Forms
Sekhar Byna
 
Oracle Forms Creation
Oracle Forms Creation
Sekhar Byna
 
Oracle Forms: Messages
Oracle Forms: Messages
Sekhar Byna
 
Oracle Forms Triggers
Oracle Forms Triggers
Sekhar Byna
 
Oracle Forms : Transnational Triggers
Oracle Forms : Transnational Triggers
Sekhar Byna
 
Oracle Forms Tutorial (www.aboutoracleapps.com)
Oracle Forms Tutorial (www.aboutoracleapps.com)
magupta26
 
Oracle Forms : Query Triggers
Oracle Forms : Query Triggers
Sekhar Byna
 
Oracle Apps - Forms
Oracle Apps - Forms
Bhaskara Reddy Sannapureddy
 
Oracle Forms: Non input Items
Oracle Forms: Non input Items
Sekhar Byna
 
Oracle Forms Mouse triggers
Oracle Forms Mouse triggers
Sekhar Byna
 
Oracle Form material
Oracle Form material
Rajesh Ch
 
Oracle Forms: Introduction to multiple Forms
Oracle Forms: Introduction to multiple Forms
Sekhar Byna
 
Oracle Forms: Menu
Oracle Forms: Menu
Sekhar Byna
 
Oracle Forms-Canvas types
Oracle Forms-Canvas types
Sekhar Byna
 
Oracle Forms: Record Groups
Oracle Forms: Record Groups
Sekhar Byna
 
Oracle Personalization How To Restricting users from assigning items to diffe...
Oracle Personalization How To Restricting users from assigning items to diffe...
Ahmed Elshayeb
 
Forms 6i guide
Forms 6i guide
Vinay Kumar
 
Oracle forms developer 10g vol1
Oracle forms developer 10g vol1
abdull466
 
How to remove disable and cancel shipment functionality in enter purchase or...
How to remove disable and cancel shipment functionality in enter purchase or...
Ahmed Elshayeb
 
Oracle Advanced Pricing (Creating a discount modifier using qualifiers)
Oracle Advanced Pricing (Creating a discount modifier using qualifiers)
Ahmed Elshayeb
 
Oracle Order Management (Assign freight cost on shipping transaction)
Oracle Order Management (Assign freight cost on shipping transaction)
Ahmed Elshayeb
 
Oracle Forms :Window and Canvases
Oracle Forms :Window and Canvases
Sekhar Byna
 
Oracle forms Lesson 15 debuging triggers
Oracle forms Lesson 15 debuging triggers
KAMA3
 

More Related Content

What's hot (20)

Oracle Forms Creation
Oracle Forms Creation
Sekhar Byna
 
Oracle Forms: Messages
Oracle Forms: Messages
Sekhar Byna
 
Oracle Forms Triggers
Oracle Forms Triggers
Sekhar Byna
 
Oracle Forms : Transnational Triggers
Oracle Forms : Transnational Triggers
Sekhar Byna
 
Oracle Forms Tutorial (www.aboutoracleapps.com)
Oracle Forms Tutorial (www.aboutoracleapps.com)
magupta26
 
Oracle Forms : Query Triggers
Oracle Forms : Query Triggers
Sekhar Byna
 
Oracle Apps - Forms
Oracle Apps - Forms
Bhaskara Reddy Sannapureddy
 
Oracle Forms: Non input Items
Oracle Forms: Non input Items
Sekhar Byna
 
Oracle Forms Mouse triggers
Oracle Forms Mouse triggers
Sekhar Byna
 
Oracle Form material
Oracle Form material
Rajesh Ch
 
Oracle Forms: Introduction to multiple Forms
Oracle Forms: Introduction to multiple Forms
Sekhar Byna
 
Oracle Forms: Menu
Oracle Forms: Menu
Sekhar Byna
 
Oracle Forms-Canvas types
Oracle Forms-Canvas types
Sekhar Byna
 
Oracle Forms: Record Groups
Oracle Forms: Record Groups
Sekhar Byna
 
Oracle Personalization How To Restricting users from assigning items to diffe...
Oracle Personalization How To Restricting users from assigning items to diffe...
Ahmed Elshayeb
 
Forms 6i guide
Forms 6i guide
Vinay Kumar
 
Oracle forms developer 10g vol1
Oracle forms developer 10g vol1
abdull466
 
How to remove disable and cancel shipment functionality in enter purchase or...
How to remove disable and cancel shipment functionality in enter purchase or...
Ahmed Elshayeb
 
Oracle Advanced Pricing (Creating a discount modifier using qualifiers)
Oracle Advanced Pricing (Creating a discount modifier using qualifiers)
Ahmed Elshayeb
 
Oracle Order Management (Assign freight cost on shipping transaction)
Oracle Order Management (Assign freight cost on shipping transaction)
Ahmed Elshayeb
 
Oracle Forms Creation
Oracle Forms Creation
Sekhar Byna
 
Oracle Forms: Messages
Oracle Forms: Messages
Sekhar Byna
 
Oracle Forms Triggers
Oracle Forms Triggers
Sekhar Byna
 
Oracle Forms : Transnational Triggers
Oracle Forms : Transnational Triggers
Sekhar Byna
 
Oracle Forms Tutorial (www.aboutoracleapps.com)
Oracle Forms Tutorial (www.aboutoracleapps.com)
magupta26
 
Oracle Forms : Query Triggers
Oracle Forms : Query Triggers
Sekhar Byna
 
Oracle Forms: Non input Items
Oracle Forms: Non input Items
Sekhar Byna
 
Oracle Forms Mouse triggers
Oracle Forms Mouse triggers
Sekhar Byna
 
Oracle Form material
Oracle Form material
Rajesh Ch
 
Oracle Forms: Introduction to multiple Forms
Oracle Forms: Introduction to multiple Forms
Sekhar Byna
 
Oracle Forms: Menu
Oracle Forms: Menu
Sekhar Byna
 
Oracle Forms-Canvas types
Oracle Forms-Canvas types
Sekhar Byna
 
Oracle Forms: Record Groups
Oracle Forms: Record Groups
Sekhar Byna
 
Oracle Personalization How To Restricting users from assigning items to diffe...
Oracle Personalization How To Restricting users from assigning items to diffe...
Ahmed Elshayeb
 
Oracle forms developer 10g vol1
Oracle forms developer 10g vol1
abdull466
 
How to remove disable and cancel shipment functionality in enter purchase or...
How to remove disable and cancel shipment functionality in enter purchase or...
Ahmed Elshayeb
 
Oracle Advanced Pricing (Creating a discount modifier using qualifiers)
Oracle Advanced Pricing (Creating a discount modifier using qualifiers)
Ahmed Elshayeb
 
Oracle Order Management (Assign freight cost on shipping transaction)
Oracle Order Management (Assign freight cost on shipping transaction)
Ahmed Elshayeb
 

Viewers also liked (10)

Oracle Forms :Window and Canvases
Oracle Forms :Window and Canvases
Sekhar Byna
 
Oracle forms Lesson 15 debuging triggers
Oracle forms Lesson 15 debuging triggers
KAMA3
 
Oracle 10g Forms Lesson 13
Oracle 10g Forms Lesson 13
KAMA3
 
Oracle Forms Creation part 3
Oracle Forms Creation part 3
Sekhar Byna
 
Oracle Applications R12 architecture
Oracle Applications R12 architecture
Sekhar Byna
 
Oracle apps online training
Oracle apps online training
Sekhar Byna
 
Introduction to Oracle ERP
Introduction to Oracle ERP
Balaji Parsewar
 
Oracle plsql and d2 k interview question1
Oracle plsql and d2 k interview question1
Arunkumar Gurav
 
Oracledevelopertutorialapr10 w o_designer
Oracledevelopertutorialapr10 w o_designer
ddbb6211
 
Oracle 10g Forms Lesson 12
Oracle 10g Forms Lesson 12
KAMA3
 
Oracle Forms :Window and Canvases
Oracle Forms :Window and Canvases
Sekhar Byna
 
Oracle forms Lesson 15 debuging triggers
Oracle forms Lesson 15 debuging triggers
KAMA3
 
Oracle 10g Forms Lesson 13
Oracle 10g Forms Lesson 13
KAMA3
 
Oracle Forms Creation part 3
Oracle Forms Creation part 3
Sekhar Byna
 
Oracle Applications R12 architecture
Oracle Applications R12 architecture
Sekhar Byna
 
Oracle apps online training
Oracle apps online training
Sekhar Byna
 
Introduction to Oracle ERP
Introduction to Oracle ERP
Balaji Parsewar
 
Oracle plsql and d2 k interview question1
Oracle plsql and d2 k interview question1
Arunkumar Gurav
 
Oracledevelopertutorialapr10 w o_designer
Oracledevelopertutorialapr10 w o_designer
ddbb6211
 
Oracle 10g Forms Lesson 12
Oracle 10g Forms Lesson 12
KAMA3
 
Ad

Similar to Oracle Forms: create debug triggers (20)

Oracle 10g Forms Lesson 15
Oracle 10g Forms Lesson 15
KAMA3
 
Les14
Les14
Sudharsan S
 
Oracle forms les14
Oracle forms les14
Abed Othman
 
Les15
Les15
Sudharsan S
 
Oracle forms les15
Oracle forms les15
Abed Othman
 
IDE and Toolset For Magento Development
IDE and Toolset For Magento Development
Abid Malik
 
Meg bernal insight2014 4219
Meg bernal insight2014 4219
Peter Schouboe
 
Oracle PL/SQL exception handling
Oracle PL/SQL exception handling
Smitha Padmanabhan
 
Intro to Automation Using Perfecto's CQ Lab
Intro to Automation Using Perfecto's CQ Lab
Lizzy Guido (she/her)
 
Bad camp2016 Release Management On Live Websites
Bad camp2016 Release Management On Live Websites
Phase2
 
Spectacular Specs and how to write them!
Spectacular Specs and how to write them!
YeurDreamin'
 
Pl sql
Pl sql
Hitesh Kumar Markam
 
Modularisation techniques new
Modularisation techniques new
Jeet Thombare
 
Magento Imagine 2011 - Magento Debugging - Erik Hansen, Classy Llama Studios
Magento Imagine 2011 - Magento Debugging - Erik Hansen, Classy Llama Studios
Erik Hansen
 
EDK_II_SW_debugger_v0.1_lj-Plugfest.pdf
EDK_II_SW_debugger_v0.1_lj-Plugfest.pdf
Rajeshravi49
 
Using general sub procedures
Using general sub procedures
Danica Denice Epino
 
Java: Finding Bugs, Fixing Bugs in IBM Domino Designer and XPages
Java: Finding Bugs, Fixing Bugs in IBM Domino Designer and XPages
panagenda
 
introduction to problem solving and programming
introduction to problem solving and programming
chaudhariresham6
 
Debugging MAD lecture june .pptx
Debugging MAD lecture june .pptx
ArishaNaz2
 
Basic Debugging
Basic Debugging
Sathish Kumar G
 
Oracle 10g Forms Lesson 15
Oracle 10g Forms Lesson 15
KAMA3
 
Oracle forms les14
Oracle forms les14
Abed Othman
 
Oracle forms les15
Oracle forms les15
Abed Othman
 
IDE and Toolset For Magento Development
IDE and Toolset For Magento Development
Abid Malik
 
Meg bernal insight2014 4219
Meg bernal insight2014 4219
Peter Schouboe
 
Oracle PL/SQL exception handling
Oracle PL/SQL exception handling
Smitha Padmanabhan
 
Intro to Automation Using Perfecto's CQ Lab
Intro to Automation Using Perfecto's CQ Lab
Lizzy Guido (she/her)
 
Bad camp2016 Release Management On Live Websites
Bad camp2016 Release Management On Live Websites
Phase2
 
Spectacular Specs and how to write them!
Spectacular Specs and how to write them!
YeurDreamin'
 
Modularisation techniques new
Modularisation techniques new
Jeet Thombare
 
Magento Imagine 2011 - Magento Debugging - Erik Hansen, Classy Llama Studios
Magento Imagine 2011 - Magento Debugging - Erik Hansen, Classy Llama Studios
Erik Hansen
 
EDK_II_SW_debugger_v0.1_lj-Plugfest.pdf
EDK_II_SW_debugger_v0.1_lj-Plugfest.pdf
Rajeshravi49
 
Java: Finding Bugs, Fixing Bugs in IBM Domino Designer and XPages
Java: Finding Bugs, Fixing Bugs in IBM Domino Designer and XPages
panagenda
 
introduction to problem solving and programming
introduction to problem solving and programming
chaudhariresham6
 
Debugging MAD lecture june .pptx
Debugging MAD lecture june .pptx
ArishaNaz2
 
Ad

More from Sekhar Byna (7)

oracle APPS: Weekly Update
oracle APPS: Weekly Update
Sekhar Byna
 
Oracle APPS :Receivables Auto Invoice
Oracle APPS :Receivables Auto Invoice
Sekhar Byna
 
Oracle Forms : Timers
Oracle Forms : Timers
Sekhar Byna
 
Oracle Forms: Oracle Server features
Oracle Forms: Oracle Server features
Sekhar Byna
 
Oracle Forms :Object Features In forms
Oracle Forms :Object Features In forms
Sekhar Byna
 
Oracle Forms: Data Blocks on Different Sources
Oracle Forms: Data Blocks on Different Sources
Sekhar Byna
 
Oracle Forms Introduction
Oracle Forms Introduction
Sekhar Byna
 
oracle APPS: Weekly Update
oracle APPS: Weekly Update
Sekhar Byna
 
Oracle APPS :Receivables Auto Invoice
Oracle APPS :Receivables Auto Invoice
Sekhar Byna
 
Oracle Forms : Timers
Oracle Forms : Timers
Sekhar Byna
 
Oracle Forms: Oracle Server features
Oracle Forms: Oracle Server features
Sekhar Byna
 
Oracle Forms :Object Features In forms
Oracle Forms :Object Features In forms
Sekhar Byna
 
Oracle Forms: Data Blocks on Different Sources
Oracle Forms: Data Blocks on Different Sources
Sekhar Byna
 
Oracle Forms Introduction
Oracle Forms Introduction
Sekhar Byna
 

Recently uploaded (20)

Key Challenges in Troubleshooting Customer On-Premise Applications
Key Challenges in Troubleshooting Customer On-Premise Applications
Tier1 app
 
Sysinfo OST to PST Converter Infographic
Sysinfo OST to PST Converter Infographic
SysInfo Tools
 
Simplify Task, Team, and Project Management with Orangescrum Work
Simplify Task, Team, and Project Management with Orangescrum Work
Orangescrum
 
Humans vs AI Call Agents - Qcall.ai's Special Report
Humans vs AI Call Agents - Qcall.ai's Special Report
Udit Goenka
 
Azure AI Foundry: The AI app and agent factory
Azure AI Foundry: The AI app and agent factory
Maxim Salnikov
 
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Muhammad Fahad Bashir
 
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
Shane Coughlan
 
Download Adobe Illustrator Crack free for Windows 2025?
Download Adobe Illustrator Crack free for Windows 2025?
grete1122g
 
Building Geospatial Data Warehouse for GIS by GIS with FME
Building Geospatial Data Warehouse for GIS by GIS with FME
Safe Software
 
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
WSO2
 
Threat Modeling a Batch Job Framework - Teri Radichel - AWS re:Inforce 2025
Threat Modeling a Batch Job Framework - Teri Radichel - AWS re:Inforce 2025
2nd Sight Lab
 
HYBRIDIZATION OF ALKANES AND ALKENES ...
HYBRIDIZATION OF ALKANES AND ALKENES ...
karishmaduhijod1
 
From Data Preparation to Inference: How Alluxio Speeds Up AI
From Data Preparation to Inference: How Alluxio Speeds Up AI
Alluxio, Inc.
 
Canva Pro Crack Free Download 2025-FREE LATEST
Canva Pro Crack Free Download 2025-FREE LATEST
grete1122g
 
University Campus Navigation for All - Peak of Data & AI
University Campus Navigation for All - Peak of Data & AI
Safe Software
 
Why Every Growing Business Needs a Staff Augmentation Company IN USA.pdf
Why Every Growing Business Needs a Staff Augmentation Company IN USA.pdf
mary rojas
 
Automated Testing and Safety Analysis of Deep Neural Networks
Automated Testing and Safety Analysis of Deep Neural Networks
Lionel Briand
 
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
 
IObit Driver Booster Pro 12 Crack Latest Version Download
IObit Driver Booster Pro 12 Crack Latest Version Download
pcprocore
 
A Guide to Telemedicine Software Development.pdf
A Guide to Telemedicine Software Development.pdf
Olivero Bozzelli
 
Key Challenges in Troubleshooting Customer On-Premise Applications
Key Challenges in Troubleshooting Customer On-Premise Applications
Tier1 app
 
Sysinfo OST to PST Converter Infographic
Sysinfo OST to PST Converter Infographic
SysInfo Tools
 
Simplify Task, Team, and Project Management with Orangescrum Work
Simplify Task, Team, and Project Management with Orangescrum Work
Orangescrum
 
Humans vs AI Call Agents - Qcall.ai's Special Report
Humans vs AI Call Agents - Qcall.ai's Special Report
Udit Goenka
 
Azure AI Foundry: The AI app and agent factory
Azure AI Foundry: The AI app and agent factory
Maxim Salnikov
 
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Muhammad Fahad Bashir
 
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
Shane Coughlan
 
Download Adobe Illustrator Crack free for Windows 2025?
Download Adobe Illustrator Crack free for Windows 2025?
grete1122g
 
Building Geospatial Data Warehouse for GIS by GIS with FME
Building Geospatial Data Warehouse for GIS by GIS with FME
Safe Software
 
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
WSO2
 
Threat Modeling a Batch Job Framework - Teri Radichel - AWS re:Inforce 2025
Threat Modeling a Batch Job Framework - Teri Radichel - AWS re:Inforce 2025
2nd Sight Lab
 
HYBRIDIZATION OF ALKANES AND ALKENES ...
HYBRIDIZATION OF ALKANES AND ALKENES ...
karishmaduhijod1
 
From Data Preparation to Inference: How Alluxio Speeds Up AI
From Data Preparation to Inference: How Alluxio Speeds Up AI
Alluxio, Inc.
 
Canva Pro Crack Free Download 2025-FREE LATEST
Canva Pro Crack Free Download 2025-FREE LATEST
grete1122g
 
University Campus Navigation for All - Peak of Data & AI
University Campus Navigation for All - Peak of Data & AI
Safe Software
 
Why Every Growing Business Needs a Staff Augmentation Company IN USA.pdf
Why Every Growing Business Needs a Staff Augmentation Company IN USA.pdf
mary rojas
 
Automated Testing and Safety Analysis of Deep Neural Networks
Automated Testing and Safety Analysis of Deep Neural Networks
Lionel Briand
 
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
 
IObit Driver Booster Pro 12 Crack Latest Version Download
IObit Driver Booster Pro 12 Crack Latest Version Download
pcprocore
 
A Guide to Telemedicine Software Development.pdf
A Guide to Telemedicine Software Development.pdf
Olivero Bozzelli
 

Oracle Forms: create debug triggers

  • 2. Objectives • How to Create Triggers? • Writing trigger code • Describe Built-in sub-programs used in Forms • When-Button-Pressed Trigger • When-Window-Closed Trigger • Debugging Triggers
  • 3. How to Create a Trigger?
  • 4. Trigger PL/SQL Block • DECLARE ------- Declarative statements (OPTIONAL) • BEGIN ------- Executable statements (MANDATORY) • EXCEPTION --------- Exception Handling. (OPTIONAL) • END;
  • 5. Variables in Form Builder • PL/SQL variables must be declared in triggers or must be defined in a package • Form Builder variables not required to be declared – Requires a Colon Prefix
  • 6. Form Builder Variables • Items For presentation and user interaction :block_name.item_name • Global variables Session-wide character variable :GLOBAL.var_name • System variables Form status and control :SYSTEM.var_name • Parameters Passing values in and out of module :PARAMENTER.parameter
  • 7. Form Builder Built-in Subprograms Built-ins belong to either: • The Standard Extensions package where no prefix is required • Another Form Builder package where a prefix is required Built-in Restricted Built-ins Unrestricted Built-ins Allowed only In certain Triggers Allowed In Any Trigger or subprogram
  • 8. Built-in Subprograms • EDIT_TEXTITEM • ENTER_QUERY • EXECUTE_QUERY • EXIT_FORM • GO_BLOCK • GO_ ITEM • NEXT_RECORD • PREVIOUS_RECORD • MESSAGE • SHOW_ALERT • SHOW_ EDITOR • SHOW_ LOV • SHOW_VIEW • HIDE_VIEW • GET_ITEM_PROPERTY • SET_ITEM_PROPERTY
  • 9. When-Button-Pressed Trigger • Fires when the operator clicks a button. • Accepts restricted and unrestricted built-ins. • Used for existing form, Display LOVs, Editors etc. Example GO_BLOCK(‘EMP’); EXECUTE_QUERY;
  • 10. When-Window-Closed Trigger • Fires when the operator closes a window by clicking button. • Accepts restricted and unrestricted built-ins. • Used to programmatically close a window when the operator issues a window manager-specific close command. You can close a window by using built-ins. When-Window-Closed Trigger at Form Level. EXIT_FORM;
  • 11. Debugging Triggers • Monitor and Debug Triggers by: – Compiling and rectifying errors in the PL/SQL Editor – Displaying debug messages at run time – Invoking the PL/SQL Debugger
  • 12. Debugging Triggers -Tips • Connect to Database before compiling SQL statements. • Define triggers always at the correct level • Terminate statements with semicolon where ever necessary. • Watch for missing quotation marks • Place the triggers where the event will happen.
  • 13. Running a Form In Debug Mode Forms Debugger Window Run Form Debug
  • 14. Debug Triggers and Breakpoint Every statement Debugger Program Unit Statement Statement Statement Debug trigger Breakpoint trigger Fire Fire Fire Breakpoint
  • 15. PL/SQL Debugger Step Into Step Over Step Out Go Reset Debug Commands
  • 16. Summary • Creating Trigger • From Built-ins • Restricted and Unrestricted built-ins • When-Button-Pressed trigger • When-Window-Closed Trigger

Editor's Notes

  • #6: Note: You can use DEFAULT_VALUE built-in to declare global variables. Example: DEFAULT_VALUE( ‘HYDERABAD’,’GLOBAL.city’ ); You can use ERASE Built-in to remove global variables. Globals always allocate 255 bytes of storage. To ensure that performance is not impacted more than necessary, always erase any global variable When it is no longer required.
  • #14: Note: Break points must be attached to an executable statement in the body of the Code. Comments lines or NULL commands are not valid for this purpose.