P. 1
Oracle ADF 11g Learning Application _My Procurement Application

Oracle ADF 11g Learning Application _My Procurement Application

5.0

|Views: 32,472|Likes:
Published by Vikram Kohli
This document is for developer who are learning Oracle ADF 11g.
This document is for developer who are learning Oracle ADF 11g.

More info:

Published by: Vikram Kohli on Mar 08, 2009
Copyright:Traditional Copyright: All rights reserved

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF or read online from Scribd
See more
See less

06/26/2015

pdf

Step 1) Create your home page with name “HomePage” based on the created ADF
template we created.
Step

2)

Select

SearchPageRegistrationVO Named
Criteria SearchPageRegistrationVOCriteria and drop it on the MainPageRegion in
structure window. And select Query ADF Query panel.

http://kohlivikram.blogspot.com/

Step 3) Expand the af:PanelGroupLayout and select af:panelHeader. And set the text
property =” Search Registration”.
Step 4) Now select the SearchPageRegistrationVO and drop it on the
MainPageRegion and select the Tables ADF Master Table,Inline Detail Table option.

http://kohlivikram.blogspot.com/

Step

5) From

the

“Edit Tree

Binding” for the
“model.view.SearchPageRegistrationVO”, shift all the attributes from available
attributes to display attributes except “RegistrationID”.
Step 6) Click on the “Add Rule” icon and select “SearchPageRegistrationLinesVO”.
Select “model.view.SearchPageRegistrationLinesVO” rule and set display attributes
as “ProductCode”,”Qty” and “Uom”. And click ok.
Step 7) Select the newly created af:table and set the following properties:-
ID = resultTbl
Width=900.
And set the width of the each column respectively as required.
Step 8) Add a Panel Box layout from the component palette window in the structure
window under MainPageRegion”. And set the text property of the panel box to
“Registration List”.
Steps 9) Add the above created table in step 5 inside the above created panel box.
Step 10) Select the af:query region and set the ResultComponentID property under
the Behavior node to “::resultTbl”. It means that the query results will be shown in
the above created table.

http://kohlivikram.blogspot.com/

Step 11) Convert the output text for registration number to link with text property
=#{row.RegNum}
Step 12) Inside the Action button bar add a command button with following property
values:-
Text = New Registration
Action =NewOrEdit
Step 13) Right click your command button and select “Set Action Listener” as shown
below:-

In the “Insert Set Action Listener” set From = #{'New'} and To =
#{requestScope.mode}. This action will put the value ‘New’ in the mode attribute.
This mode method is acting as a input parameter for the ‘Edit-Registration’ bounded
task flow we created in step 4 of 3.5 exercise.
Step 14) Insert another action listener with From= #{true} and

To=

#{RegistrationBean.disableAddItemBtn}
Insert yet another action listener with From= #{true} and To=
#{RegistrationBean.disableSearchCataBtn}

Your final structure window for the home page should look like:-

http://kohlivikram.blogspot.com/

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->