Escolar Documentos
Profissional Documentos
Cultura Documentos
Click Ok and then Write Following Code in cb1_action() which you have created just now
10. Congratulation you have successfully finished. Test Your Work Your
2. Create Test Table and insert data some data in it (For Testing
Purpose)
CREATE TABLE xx_search_demo
( -- ---------------------- Data Columns
-- --------------------column1
VARCHAR2(100),
column2
VARCHAR2(100),
-- ---------------------- Who Columns
-- --------------------last_update_date DATE
NOT NULL,
last_updated_by NUMBER NOT NULL,
creation_date
DATE
NOT NULL,
created_by
NUMBER NOT NULL,
last_update_login NUMBER
);
INSERT
0, 0);
INSERT
0, 0);
INSERT
0, 0);
INSERT
0, 0);
3. Create EO
Right Click on Model > New > ADF Business Components > Entity Object
Package -- Demo.adf.searchform.model.entities
Name SearchEO
Schema Object XX_SEARCH_DEMO
Note By default ROWID will be the primary key if we will not make any column to
be primary key in Attribute Settings Page
Check the Accessors, Create Method, and Remove Method
Bind Variable name and type as following make sure required check box is unchecked
Name Col1
Type -- String
View Criteria is actually conditions on VOs which you usually define declaratively
1.
sign
2.
Expand the View Critieria Section in SearchVO page and click the Green plus
Give a proper name to your View Criteria
Criteria Name -- SearchVOCriteria
3.
Click the ( ) group press Add item and select values as sown in slide make
sure you have selected the bind variable Col1
Attribute Column1
Operator Equals
Operand Bind Variable
Parameter Col1
Un-check Ignore Case and Check Ignore Null Values
7. Refine Layout
Change the Header from SearchEO to Search Demo. To change select panel
Header and change Text property to Simple Search Demo
Note - You can change form properties like Column names and page width as per
your requirements
2. We need to have table from where LOV values will come. Lets
Create table
Right Click on Model > New > ADF Business Components > Entity Object
Package -- Demo.adf.lov.model.entities
Name Column1EO
Schema Object -- LOV_TABLE_DEMO
Note By default ROWID will be the primary key if we will not make any column to
be primary key in Attribute Setting Page
Select Column1EO Entity and Move to selected area uncheck the option
Updatable
Click Finish
6. Create LOV
Double Click on Column1VO in Demo.adf.lov.queries section
Select Column1 attribute in attribute page and click + green button at the
bottom under List of Values Section
Go to UI Hints tab Leave the list type asChoice List (There are many type of LOVs
available)
Move Column1 Name from Available to Selected Area
Click OK
Expand the DataControl > Column1VO Select Column1 attribute and Drag
and Drop it to FormLayout
Menu will appear select Single Selection > ADF One Choice List as
Shown in the Slide
Conclusion
With Oracle ADF application development becoming fast and easy. See how
easy is to create LOVs in your ADF application as like in Oracle Forms
4. Create Simple Search... | Main | Create LOV in ADF...
Create Master Detail Form in Oracle ADF
By PRajkumar on May 24, 2012
2. We need two tables one table will be act as Master table and
second table will be act as Child or detail table. Lets Create two
tables
CREATE TABLE master_table_demo
( -- --------------------- Data Columns
-- -------------------Column1
VARCHAR2(100),
Column2
VARCHAR2(100),
-- --------------------- Who Columns
-- -------------------last_update_date
DATE
NOT NULL,
last_updated_by
NUMBER
NOT NULL,
creation_date
created_by
last_update_login
DATE
NUMBER
NUMBER
NOT NULL,
NOT NULL,
);
CREATE TABLE detail_table_demo
(
-- --------------------- Data Columns
-- -------------------Column1
VARCHAR2(100),
Column2
VARCHAR2(100),
-- --------------------- Who Columns
-- -------------------last_update_date DATE
NOT NULL,
last_updated_by
NUMBER NOT NULL,
creation_date
DATE
NOT NULL,
created_by
NUMBER NOT NULL,
last_update_login NUMBER
);
Note By default ROWID will be the primary key if we will not make any column to
be primary key in Attribute Setting Page
Note By default ROWID will be the primary key if we will not make any column to
be primary key in Attribute Setting Page
Expand MasterVO in the Source Section and select Column1 do the same for
DetailVO in the destination and press Add button then NEXT
(Because Column1 is common column between both the tables as per our
assumption to create view link)
Leave the default Accessors Names as shown in slide and press Finish
Select MasterVO and DetailVO via MasterDetailVL and shuffle to right in Data
Model
Expand the Data Controls Drag DetailVO1 to Detail Panelbox and choose
Table > ADF Read-only Table
Note -- Select CheckBox Enable Sorting and Enable Filtering and Under
Row Selection select Multiple Rows
Expand the same DetailVO1 node from data control and drag to Edit Detail
section and choose Form > ADF Form. Choose the fields as shown in the slide
10. Congratulation you have successfully finished. Test Your Work Your