Create Data Block Based On From Clause Query In Oracle Forms

时间:2024-12-29 18:04:02

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:

Create Data Block Based On From Clause Query In Oracle Forms

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):

Create Data Block Based On From Clause Query In Oracle Forms

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:

Create Data Block Based On From Clause Query In Oracle Forms

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:

Create Data Block Based On From Clause Query In Oracle Forms

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:

Create Data Block Based On From Clause Query In Oracle Forms