oracle forms creation

25
Creating a Simple Form Module Oracle APPS Blog-http://ebiztechnics. blogspot.com

Upload: sekhar-byna

Post on 10-Feb-2017

890 views

Category:

Software


0 download

TRANSCRIPT

Creating a Simple Form Module

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Objectives

• Creating a Simple Form Module Using wizards• Types of Blocks• Control Block • Discuss properties of Data Block• Creating a Master-Detail Form• Relationship between data blocks

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Crating a New Form Module

• Use one of the options to create a new form module 1. Use The Data Block Wizard

2. Build a new form manually3. Build a form Based on a Template.

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Using Wizards..

Use Form Builder Wizards:

• Data Block Wizard: Used to create a data block with a data source.

• Layout Wizard: Used to display the data block items for Presentation.

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Data Block wizard- Type of data block

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Data Block wizard- Table or view name

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Layout wizard- Changing Prompts

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Layout wizard- Layout Style

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Layout wizard-Rows Page

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Data Block Functionality

Once you create a data block with the wizards, Form Builder automatically creates:

• A form module with database functionality including query, insert, update, delete

• A frame object• Items in the data block• A prompt for each item

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Modifying the Layout

• You can modify the layout after creating the data block by using re-entrant wizards

– Select Tools -> Data block wizard to modify the data block– Select Tools -> Layout wizard to modify the Layout of the form.– Changes can be made manually also.

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Types of Blocks

Data Block Control Block

- Base Table Block - Non Base Table Block

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Creating a Control Block

• Select the Data Blocks node and click the Create icon. or Select Navigator—>Create.• Select the “Build a new data block manually” option in the New Data

Block dialog box.

– Invoke the property pallet for the block– Change the name of the block to CONTROL– Set the Database Data block property to No.

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Data Block Properties

• General• Navigation• Records• Database• Advanced Database• Scrollbar• Font and Color• Character Mode• International

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Database Properties for Data block

Use properties in the Database group to control:

• Type of block—data block or control block• Query, insert, update, and delete operations on the data block• Data block’s data source type and Name• Query search criteria and sort order• Maximum query time• Maximum number of records fetched

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Navigation PropertiesORDERS

Order

Next NavigationData Block

SameRecordChangeRecord

PreviousNavigation Block

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Visual Attributes

• Visual attributes are font, color and pattern properties applied for form and menu objects.

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Data blocks and Relationships

Master

Detail

Master

Detail

Detail

Detail Detail

Master

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Data block wizard – Master-Detail Relationship

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Relation Object

• Relationship object is always created on the master block• Triggers and program units are generated automatically by form

builder• The default name of the relation object is Masterblock_DetailBlock

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Creating Relation Manually

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Deletion Behavior

• Non-Isolated (default setting) Prevents the deletion of a master record when associated

detail records exist in the database. • Isolated Allows the master record to be deleted

and does not affect associated detail records in the database.

• Cascading Allows the master record to be deleted and automatically deletes any

associated detail records in the detail block's base table at commit time.

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Block Coordination

Immediate Deferred

WithAutoQuery

WithoutAutoQuery

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Text files and Documentation

• Convert a binary file to a text file OR text file to birnary.By Selecting File-> Administration -> Convert.

• Create a text file for a form module for Documentation.By Selecting File->Administration -> Object List Report

.fmb .fmt

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m

Summary

• Creating a simple Form module• Types of blocks• Master-Detail Form• Data block relationships • Data block Properties

Oracle APPS Blog-http://ebiztechnics.blogspot.co

m