How To Develop A New Form Fo

Download as pdf or txt
Download as pdf or txt
You are on page 1of 19

How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 1 of 19

Enter your comment here...


Oracle Maniacs' Notes

INTERESTING, OUT-OF-THE-BOX OR JUST PLAIN INFORMATION

Search

Search Home
 About
 Subscribe

HOME
ADMIN
AOL
TECH STACK
MODULES
TRAINING DOCS

SUBSCRIBE TO RSS

you're reading...
FORMS

How to develop a new form for


Oracle Applications

POSTED BY ABHIJIT RAY · AUGUST 15, 2012 · 3 COMMENTS


FILED UNDER APPCORE_PROPERTIES, APP_CUSTOM, APP_WINDOW, AU_TOP,
BLOCKNAME, CLOSE_FIRST_WINDOW, F60GEN, FIRST NAVIGATION BLOCK,
FRMCMP_BATCH, PRE-FORM, SET_WINDOW_POSITION, TEMPLATE.FMB
To develop a new custom form for Oracle Applications the following steps have to be
followed.

Step 1: Open TEMPLATE.fmb

Open Forms Builder (For Oracle Apps 11i it is Forms 6i and for Oracle Apps r12 it is Forms
10g)

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013
How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 2 of 19

If the Forms Builder library path is set as the previous article, open the file TEMPLATE.fmb.
This file will reside in the same directory as the library files if you have downloaded all the
library files from the server.

Step 2: Change the form name and Title

Open the properties of the form. Double click on the form name to bring up the properties.
Change the Name and Title properties.

Step 3: Change the form name in PRE-FORM trigger

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013
How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 3 of 19

We shall first add the version, author name and date of the form by changing,

1 FND_STANDARD.FORM_INFO('$Revision: 115.12
2 '$Date: 2003/12/19 11:02 $', '$Author: appldev $');

to

1 FND_STANDARD.FORM_INFO('$Revision: 115.12
2 '$Date: 2012/08/13 11:02 $', '$Author: Ray $');

This is done so that we can get this information by using the strings <form name>.fmb
command in unix to view the form creation/modification information.
Change the following line,

1 app_window.set_window_position('BLOCKNAME', 'BLOCKNAME');

to

1 app_window.set_window_position('NEW_WINDOW', 'FIRST_WINDOW');

Step 4: Create a new data block

Create a new data block either manually adding or by using the wizard

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013
How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 4 of 19

Step 5: Create a new canvas.

You can use the wizard or create the canvas manually. The canvas we created is named

The canvas looks like this,

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013
How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 5 of 19

If you created the canvas using the wizard you might want to rename it.

Step 6: Create a new window

Create a new window manually with only the basic details

Window properties

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013
How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 6 of 19

Step 7: Attach the window to the canvas

Now check the properties of the canvas created

The value of property Window is set to APPCORE_PROPERTIES by default as we had used


the wizard to create the canvas.

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013
How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 7 of 19

We shall set it to the new window named, NEW_WINDOW.

Step 8: Add the window in the package, APP_CUSTOM

Go to Program Units within the form.

Double click on APP_CUSTOM package body. Locate the following section within the
package,

1 if (wnd = '') then


2 app_window.close_first_window;
3 elsif (wnd = '') then
4 --defer relations
5 --close related windows
6 null;
7 elsif (wnd = '') then
8 --defer relations
9 --close related windows
10 null;
11 end if;

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013
How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 8 of 19

Add the name of the window you have created now to this section. It will look like the
following,

1 IF (wnd = 'NEW_WINDOW')
2 THEN
3 app_window.close_first_window;
4 ELSIF (wnd = '')
5 THEN
6 --defer relations
7 --close related windows
8 NULL;
9 ELSIF (wnd = '')
10 THEN
11 --defer relations
12 --close related windows
13 NULL;
14 END IF;

Step 9: Change First Navigation Block Name

We shall change the First Navigation Block name for the form so that the first block it picks
up will be the data block we have created

Click on Form name

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013
How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 9 of 19

View the properties

As you can see the First Navigation Data Block is set to BLOCKNAME by default. Change
this to the data block we have created, i.e. XX_SUPPLIER_BLACKLIST.

Step 10: Set the correct subclass information

Set the subclass information for all the form objects, like data block, canvas, window, items,
etc. It will be set like the following,

We shall set the subclass for the data block we have created,

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013
How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 10 of 19

Open the properties of the block

Click on Subclass and the subclass popup window will open. Set the correct class name to it.

Click on OK.

The subclass will be set. Close the properties window.

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013
How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 11 of 19

Now notice the arrow on the block. It means that the subclass is set.

Step 11: Save and transfer the file to the server

Now you can save the file and transfer it in binary mode to the server. The fmb file should
reside in $AU_TOP/forms/US directory.

Step 12: Compile the form

Connect to the server and execute the following command to compile the form.

In Oracle 11i the command will be,

1 f60gen userid=apps/ module_type=form module=$AU_TOP/forms/US/</pre>


2 <form name="">.fmb output_file=/</form><form name="">.fmx compile_all=special

In Oracle r12 the command will be,

1 frmcmp_batch userid=apps/ module=<$AU_TOP/forms/US/</pre>


2 <form name="">.fmb output_file=/</form><form name="">.fmx compile_all=special

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013
How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 12 of 19

Now the form is ready to be used.

Appendix:
To display debug messages in forms

Use the API, FND_MESSAGE.DEBUG. In the following example we have used this API in a
PRE-UPDATE trigger.

When we update the data in the form we get a popup message like the following

Cheers!

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013
How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 13 of 19

Related articles
 Configure Forms Builder 6i and 10g to develop Oracle Apps forms (oraclemaniac.com)

 Restrict users to view specific records on Oracle Apps forms (oraclemaniac.com)

 How to invoke an Oracle apps form from a workflow notification (oraclemaniac.com)

 Open multiple forms in an Oracle apps session (oraclemaniac.com)

 Oracle License Manager (oraclemaniac.com)

 How to set a form to auto-query on opening (oraclemaniac.com)

 Create and register a custom Descriptive Flexfield (DFF) (oraclemaniac.com)

About these ads

Rate this:

i
Rate This

Share this:

Email
Twitter 1
Facebook
LinkedIn

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013
How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 14 of 19

Like this:

Like Loading...

About Abhijit Ray

I love sleeping, watching Hollywood blockbusters, my Wii, road trips and watching my 4 year
old son grow up. In between I try to squeeze in some time to go to work.
View all posts by Abhijit Ray »
« How to get a newly added responsibility on the Oracle home page
How to add a Descriptive Flexfield (DFF) in a custom Oracle Apps form »

Discussion

3 Responses to “How to develop a new form for


Oracle Applications”

1.
ABhijit,

Great article!

The screenshots made everything much easier to understand.

Have several “detailed” comments that include screenshots.

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013
How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 15 of 19

Can you send me your e-mail, I’ll forward my comments.

Regards,

Will DeLorie

POSTED BY WILLAM DELORIE | FEBRUARY 8, 2013, 10:11 PM


REPLY TO THIS COMMENT

Hi Will,

Thanks for your comment. You can put your detailed comments in the comments
section itself.

Regards,
Abhijit

POSTED BY ABHIJIT RAY | FEBRUARY 8, 2013, 11:37 PM


REPLY TO THIS COMMENT

2.
Great work Abhijit! keep it up!

POSTED BY MASCHENDER | APRIL 2, 2013, 5:14 PM


REPLY TO THIS COMMENT

Leave a Reply CANCEL REPLY

 Abhijit Ray

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013
How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 16 of 19

 Mohua Mitra Ray

Traffic

Site Stats

 166,500 views since Feb 2012

Archives

 March 2013
 December 2012
 November 2012
 October 2012
 September 2012
 August 2012
 July 2012
 June 2012

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013
How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 17 of 19

 May 2012
 April 2012
 March 2012
 February 2012
 January 2012
 August 2011

Follow Blog via Email

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 73 other followers

Follow

Categories

 Admin (31)
 Trace (7)

 AOL (50)
 Alerts (4)

 Attachment (7)

 Audit (2)

 Concurrent Program (13)

 FlexFields (5)

 Functions (4)

 Lookup (2)

 Message (3)

 Printer (1)

 Profile (7)

 Table (3)

 Value Set (2)

 Modules (75)
 Approvals Management (1)

 Assets (4)

 Cash Management (2)

 General Ledger (12)

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013
How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 18 of 19

 Human Resources (3)


 iExpense (8)

 Inventory (5)

 iProcurement (3)

 Order Management (5)

 Payables (16)

 Purchasing (17)

 Receivables (8)

 Tech Stack (149)


 Forms (14)

 CUSTOM.pll (1)

 Folders (3)

 Integration (6)

 AIA PIP (3)

 XML Gateway (3)

 OAF (2)

 Personalization (20)

 Forms Personalization (10)

 OAF personalization (10)

 PL/SQL (29)

 Interface (9)

 Reports (1)

 SQL Scripts (32)

 Unix (16)

 Shell script (12)

 Workflow (26)

 Business Event (3)

 XML Publisher Report (9)

 Training Docs (3)

Flags

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013
How to develop a new form for Oracle Applications | Oracle Maniacs' Notes Page 19 of 19

Blogroll

 Dibyajyoti Koch
 In Depth Apps
 My Photos
 My Training Documents

Pages

 About us
 My other sites

Oracle Maniacs' Notes

Blog at WordPress.com. Theme: The Morning After by WooThemes.

http://oraclemaniac.com/2012/08/15/how-to-develop-a-new-form-for-oracle-applications/ 4/5/2013

You might also like