Академический Документы
Профессиональный Документы
Культура Документы
Click Ok and then Write Following Code in cb1_action() which you have created just now
public String cb1_action()
{ RichInputText inputText = getIt1();
String name = "Hello "+(String)inputText.getValue()+ "!!";
ot1.setValue(name);
return null;
}
9. following properties for commandButton, input text and
outputText
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
DATE
NOT NULL,
created_by
NUMBER
NOT NULL,
last_update_login
NUMBER
);
CREATE TABLE detail_table_demo
);
Note Consider Master Table is Linked to Detail Table with Column1
Name DetailEO
Schema Object -- DETAIL_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
Check the Accessors, Create Method, and Remove Method
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
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 INTO xx_search_demo VALUES (val1, val2, SYSDATE, 0, SYSDATE,
0, 0);
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
un-checked
Name Col1
Type -- String
Select
Automatically
Expose
UI
Select SearchVO and Expand the Data Control panel and Drag and drop the
Named View Critieria SearchVOCriteria to the page
Choose Query > ADF Query Panel with Table as shown in the slide
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
8. Congratulation you have successfully finished. Test Your Work
Your Simple Search Form is Ready
Note By default ROWID will be the primary key if we will not make any column to
be primary key in Attribute Setting Page
Check the Accessors, Create Method, and Remove Method