Create Data Block Based On From Clause Query In Oracle Forms
2016-12-25 00:09
881 查看
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:
![](https://oscdn.geek-share.com/Uploads/Images/Content/202004/14/47f0da801b8d74f593edac15c14f9070.png)
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):
![](https://oscdn.geek-share.com/Uploads/Images/Content/202004/14/5374c825161b2d748a171307eb935122.png)
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:
![](https://oscdn.geek-share.com/Uploads/Images/Content/202004/14/ee7c007f5e228232bc30820c0917680f.png)
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:
![](https://oscdn.geek-share.com/Uploads/Images/Content/202004/14/ca47ab998887bc3624bdf2c7d3c42005.png)
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:
![](https://oscdn.geek-share.com/Uploads/Images/Content/202004/14/79e1c5184f7dc14ee0653271e8f8afa5.jpg)
Create a data block manually and set the following properties:
![](https://oscdn.geek-share.com/Uploads/Images/Content/202004/14/47f0da801b8d74f593edac15c14f9070.png)
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):
![](https://oscdn.geek-share.com/Uploads/Images/Content/202004/14/5374c825161b2d748a171307eb935122.png)
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:
![](https://oscdn.geek-share.com/Uploads/Images/Content/202004/14/ee7c007f5e228232bc30820c0917680f.png)
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:
![](https://oscdn.geek-share.com/Uploads/Images/Content/202004/14/ca47ab998887bc3624bdf2c7d3c42005.png)
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:
![](https://oscdn.geek-share.com/Uploads/Images/Content/202004/14/79e1c5184f7dc14ee0653271e8f8afa5.jpg)
相关文章推荐
- Copy Records From One Data Block To Another Data Block In Oracle Forms
- oracle10 CONNECT BY clause required in this query block错误,解决办法
- Writing Text File From A Tabular Block In Oracle Forms
- Freebie - Utility Form: Generate Excel Report From SQL Query In Oracle Forms 6i And 11g
- [PowerShell Utils] Create a list of virtual machines based on configuration read from a CSV file in Hyper-V
- Populate A List Item With Record Group In Oracle Forms Using Populate_List And Create_Group_From_Query Command
- Create Stacked Canvas to Scroll Horizontal Tabular Data Blocks In Oracle Forms
- Moving From Top To Bottom in Detailed Block in Oracle Forms
- Populating Display Item Value On Query In Oracle Forms
- Populating Tabular Data Block Manually Using Cursor in Oracle Forms
- Populate A List Item With Record Group In Oracle Forms Using Populate_List And Create_Group_From_Query Command
- 【跟着stackoverflow学Pandas】Select rows from a DataFrame based on values in a column -pandas 筛选
- Map Columns From Different Tables and Create Insert and Update Statements in Oracle Forms
- Create Stacked Canvas to Scroll Horizontal Tabular Data Blocks In Oracle Forms
- Define Custom Data Filter Using Pre-Query Trigger In Oracle Forms
- How To Commit Just One Data Block Changes In Oracle Forms
- If Value Exists Then Query Else Allow Create New in Oracle Forms An Example
- A Complete Tutorial on Tree Based Modeling from Scratch (in R & Python)
- Create Oracle Enterprise Manager repository data after restore a database from another server
- RevitAPI: Rebar.CreateFromCurves抛出异常: Unable to create a RebarShape based on the given curves