Part2 Creating Search Page in OAF
This is the second part of this article. For Part1 go this below url.Part1 :- https://rpforacle.blogspot.in/2013/03/creating-search-page-in-oaf.html
View Object(VO) has created as below.
Now we create "Application Module".
Right Click on the project "RohitSearchPage".Click New.
Application Module wizard has open as below click next
Enter the Application Module name="RohitSearchPageAM"
Defualt Package="rohit.oracle.apps.fnd.RohitSearchPage.server"
we create "Application module" under the "Server" directory of the project as OAF Standard.
Click Next.
Select the "SupplierVO" in the left hand side and then shuttle this to the right and then click next and then finish.
Now we create OAF Page.
Right Click on the project "RohitSearchPage".Click New.
Enter the Page Name="RohitSearchPagePG"
Default Package="rohit.oracle.apps.fnd.RohitSearchPage.webui"
we create the page under the webui under the project directory
Click Ok Page has been created.
Below in the Structure Page Click on "region1"
Repalce the ID of the "region1" with "PageLayoutRN" in the property inspector.
Click on the "PageLayoutRN".On the right hand side In the property inspector we will set the AM for the this page
AM Definition=rohit.oracle.apps.fnd.RohitSearchPage.server.RohitSearchPageAM.
AM has set.
Right Click on the "PageLayoutRN" and then new and then click region.
Then region2 has created.
Replace the region2 ID with "MainRN" in the property Inspector.
Change the Region Style=query.
Change Proeprty for Region "MainRN".
Construction Mode=resultsBasedSearch.
IncludeSimplePanel=True
IncludeViewsPanel=True
IncludeAdvancedPanel=True.
Right Click on "MainRN".Click New=>Click RegionUsingWizard.
Select "Application Module"=rohit.oracle.apps.fnd.RohitSearchPage.Server.RohitSearchPageAM.
View Object=SupplierVO.
RegionId=ResultsTable
RegionStyle=table.
Seelct all the available attributes and shuttle them to right.
Change the Style=messagestyledText
Set and verify Your Results Table Region Properties
ID – ResultsTable
Region Style – table
AM – Please Donot put any AM
Rendered – True
Records Displayed – 10
Width – 100%
User Personalization – True
Set or Verify Column1 SupplierId Properties
Search Allowed -- True
Sort Allowed – ascending
Initial Sort Seqence – first
Selective Search Criteria – True
User Personalization – True
Set or Verify Column1 SupplierName Properties
Search Allowed -- True
Sort Allowed – ascending
Initial Sort Seqence – first
Selective Search Criteria – True
User Personalization – True
Now we have to write the code for insert data so we need the Controller.
Create Controller.
Right Click on "PageLayoutRN".Click Set New Controller.
Enter The Controller Name=RohitSearchPageCO
Package=rohit.oracle.apps.fnd.RohitSearchPage.webui
Put the Code under the "Process Request" Block of Controller "RohitSearchPageCO".
OAQueryBean querybean=(OAQueryBean)webBean.findIndexedChildRecursive("MainRN");
querybean.clearSearchPersistenceCache(pageContext);
After this Right Click on the project "RohitSearchPage" and then Click Rebuild.
Rebuild is the compilation of the project.
After successful compilation , Right Click on the page "RohitSearchPagePG".
Click Run.
Rebuild is the compilation of the project.
After successful compilation , Right Click on the page "RohitSearchPagePG".
Click Run.
Result OutPut Is.
2 comments:
Thanks and Regards. Oracle Apps R12 Training Videos at affordable cost. please
check oracleappstechnical.com
Thanks a lot, Really helpful from a beginner's prospective.
Post a Comment