New Features in Oracle Forms 6i
New Features in Oracle Forms 6i
Author:
Sai Babu Bastati
Wipro Technologies
April 2003
TABLE OF CONTENTS
PURPOSE OF THE DOCUMENT...............................................................................................3
DOCUMENT USAGE....................................................................................................................3
NEW FEATURES...........................................................................................................................3
ARRAY DML PROCESSING.......................................................................................................3
HOW TO USE ARRAY DML PROCESSING.......................................................................................3
CALCULATION FIELDS.............................................................................................................4
FORMULA FIELD..............................................................................................................................4
SUMMARY FIELD.............................................................................................................................4
SMART TOOLBARS AND MENUS............................................................................................5
PROGRAM UNIT DEBUGGING.................................................................................................5
SPECIFICATION.................................................................................................................................5
REFERENCES....................................................................................................................................5
REFERENCED BY.............................................................................................................................6
READING AND WRITING TEXT FILES...................................................................................6
TEXT_IO........................................................................................................................................6
FORMS RUNTIME DIAGNOSTICS...........................................................................................6
PL/SQL EDITOR ENHANCEMENTS.........................................................................................7
FORMS PL/SQL SYNTAX PALETTE.........................................................................................7
LOV WIZARD................................................................................................................................8
PL/SQL 8 AND OBJECT SUPPORT..........................................................................................10
Document Usage
This document will be useful for developers who are working on multiple versions. This
document will give the list of new futures incorporated in forms6i which are useful to
create applications with high runtime performance.
New Features
The New futures in forms 6i are.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
Wipro Technologies
Confidential
Page 3 of 10
2. Set the DML Array Size block property to the number of records to be included in the
array.
Calculation Fields
Calculation items are items to which you assign values based on calculations. Any item
that can store a value may be used as a calculation item. Since calculation fields are
read-only, you should use Display Items.
There are two types of calculation items: formula and summary.
Formula Field
The formula calculation field can be used for a horizontal calculation utilizing global
variables, parameters, and items within a form.
Summary Field
The summary calculation field can be used for a vertical calculation utilizing a single item
from all of the rows in the block. Standard built-in functions are utilized. They include
AVG, COUNT, MAX, MIN, STDDEV, SUM, and VARIANCE.
Wipro Technologies
Confidential
Page 4 of 10
Specification
This node shows the procedure specifications. If the program unit has parameters, the
parameters are displayed along with their respective data types.
References
This node shows all of the objects the program unit references. Objects that are displayed
include other procedures and block items.
Wipro Technologies
Confidential
Page 5 of 10
Referenced By
This node shows which procedure or program unit calls this program unit. This
information is helpful in determining program logic.
TEXT_IO
This package includes many procedures and functions associated with the reading and
writing of text files. This package is very similar to the server-side UTL_FILE package.
Example
Below is an example of a procedure that reads the contents of one file and writes it out to
another. One important thing to know is that the no_data_found exception is raised when
an attempt to read past the end of file. When this occurs, it is a common practice to close
the files being processed.
PROCEDURE Read_Write_File IS
ifile TEXT_IO.FILE_TYPE;
ofile TEXT_IO.FILE_TYPE;
inline VARCHAR2(100);
BEGIN
ifile := TEXT_IO.FOPEN(tscin.txt, r);
ofile := TEXT_IO.FOPEN(tscout.txt, w);
LOOP
TEXT_IO.GET_LINE (ifile,inline);
TEXT_IO.PUT_LINE (ofile,inline);
TEXT_IO.NEW_LINE (ofile, 2);
END LOOP;
EXCEPTION
WHEN no_data_found THEN
TEXT_IO.FCLOSE (ifile);
TEXT_IO.FCLOSE (ofile);
MESSAGE(Contents written and files closed);
END;
Wipro Technologies
Confidential
Page 6 of 10
with collect. In addition, one may also specify the name of the file by implementing the log
parameter and providing a file name.
Example
ifrun60.EXE module=test_frd userid=scott/tiger record=collect log=test_frd.log
In addition, the related Find and Replace functionality has been vastly improved,
incorporating expression-based searching across all of your client-side program units.
Wipro Technologies
Confidential
Page 7 of 10
LOV Wizard
Another new feature of version 6.0 is the incorporation of a List of Values (LOV) wizard.
The wizard takes one through some quick and easy steps for creating an LOV. Many of
the properties that were commonly modified on the LOV and accompanying record group
can be specified through the wizard.
Here, the wizard begins as one chooses to create a new LOV.
One of the first steps is to enter the associated query statement. Here, one can type in a
statement, or go to the query builder for some help.
Wipro Technologies
Confidential
Page 8 of 10
After entering a query and choosing the columns for the LOV, one can choose to modify
the column headings, specify and return items and choose to automatically size columns.
Finally, there are a few more steps, which allow for many of the properties to be set. This
includes the ability for one to specify the LOV title, size, and position. Also, includes the
ability for one to specify the number of rows to query at one time, whether or not to
refresh the record group on every reference, and whether or not to provide an initial filter
for the LOV to the users.
Wipro Technologies
Confidential
Page 9 of 10
Wipro Technologies
Confidential
Page 10 of 10