Create Data Block Based On From Clause Query In Oracle Forms

Example is given below to create a data block based on From Clause query in Oracle Forms. The following are the steps:

 

Create a data block manually and set the following properties:

 

clip_image001

 

You can specify different query as per your need.

 

Then create the items in that block as shown below (or create as per your need):

 

clip_image002

 

Note: Item names should match with the column name you specified in From Clause Query.

 

Set the property of each item (textitem, listitem etc) as shown below:

 

clip_image003

 

Note: For From Clause Query block on item should be set as Primary Key, check the example is given below:

 

Then set the Primary Key for EmpNo field as shown in below example:

 

clip_image004

 

Now you can run the form and execute query to display the records as shown below, you can download this form formclause.fmb from the following link FromClause.FMB:

 

clip_image006

 

原文地址:https://www.cnblogs.com/quanweiru/p/6218848.html