You have first to create the procedures which will be the base of your new block (instead of table or view).
Using Stored Procedures
You base a data block on a stored procedure when you want to:
• Increase control and security
Using a stored procedure, you do not have to grant select access on the
table to the users, just EXECUTE privileges on the procedure.
• Specify a SELECT statement at run-time
Using a Ref cursor, if the logged-on user is a manager, open the cursor as
SELECT lastname, salary FROM s_emp; otherwise open the cursor as
SELECT lastname, null FROM s_emp.
• Base a block on multiple tables
Using a Ref cursor and depending on some parameter to the procedure,
the cursor could be opened either as SELECT * FROM open_orders
(current data) or SELECT * FROM closed_orders (old data).
• Perform complex computations and decisions
Using a table of records, return the salary of all employees that you
manage, but NULL for the salary of other employees.
• Perform validation and DML on the server side
If your data block has multiple validation lookup or derived fields that
are database-intensive, this method of partitioning the application logic
onto the server can vastly improve the performance of applications.
• Encapsulate logic within a subprogram
• Reduce traffic through array processing using a Ref cursor
Data Block Properties for DML
Property Description
DML Data Target Type Specifies the DML Data Source Type for the data
block
DML Data Target Name Specifies the name of the DML Data Source for the
data block (Only used if DML Data Target Type is
Table.)
(Insert, Update, Delete, Lock)
Procedure Name
Specifies the name of the procedure to be used (Only
used if DML Data Target Type is Procedure.)
(Insert, Update, Delete, Lock)
Procedure Result Set Columns
Specifies the names and datatypes of the
result set columns associated with the
procedure (Only used if DML Data Target
Type is Procedure.)
(Insert, Update, Delete, Lock)
Procedure Arguments
Specifies the names, datatypes, and values
of the arguments that are to be passed to the
procedure (Only used if DML Data Target
Type is Procedure.)
Main Topics
Browse All Topics





by: HenkaPosted on 2004-06-09 at 23:16:35ID: 11276545
What does your procedure returns ? I think that it has to be a REF CURSOR or a Table of records.