Sunday 9 June 2013

Part2 Creating Search Page in OAF


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.
Result OutPut Is.

Sunday 31 March 2013

Update Page in OAF Framework

Update Page in OAF Framework

Hi friends, We are going to discuss about the Update page in OAF. We will share the detail steps with complete screenshot to develop the update page in OA framework. In this post ,We will try to updates record in OAF page.In the previous posts We have created a "Search Page" .We will start developing the  Update page in OAF page from this post.So please go through this post first then after creating Search page you should try to create the update page in OAF framework. We first need to extract the data from database in to OAF page and then we can perform the update operation in that Page. so that is the reason we are suggesting to first develop the search page and then start creating the update page in OA framework. .Please find below the complete detail about the Update Page in OAF.

Here below is the Post to develop the Search Page in OAF Framework

http://rpforacle.blogspot.com/2013/03/creating-search-page-in-oaf.html


Step by Step to Develop the Update Page in OAF Framework

Step 1:- 
As reference to the previous post creating "Creating Search Page In OAF" we will start update records in OAF page from here.

My  "Project" and "Workspace" is same as in "Creating Search Page in OAF".

First i will create a update page in the Project "RohitSearchPage".

Right Click on Project "RohitSearchPage".Click New.
Update Page in OAF Framework.
Update Page in OAF Framework.

Step 2:-


Update Page in OAF Framework.
Update Page in OAF Framework.

Step 3:-

Enter the Page Name="RohitUpdatePG"

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.
Update Page in OAF Framework.
Update Page in OAF Framework.

Step 4:-
 Update Page has created as below.
Update Page in OAF Framework.
Update Page in OAF Framework.
Step4:-

Click on Page "RohitUpdatePG" and Below in the Structure Page Click on "region1"
Repalce the ID of the "region1" with "PageLayoutRN" in the property inspector.
Then Again click on region  "PageLayoutRN" and then go to right hand side in property window set AM for this Region.
Set Properties for "PageLayoutRN".
AM Definition=rohit.oracle.apps.fnd.RohitSearchPage.server.RohitSearchPageAM.
Window Title=Rohit Tutorial
Title=Update Page.
We will attach the same AM of page "RohitSearchPage" to this page "RohitUpdatePG".
Update Page in OAF
Update Page in OAF
Step 5:-
Right Click on Region "PageLayoutRN"=>Click new=>Click Region.
Update Page in OAF
Update Page in OAF

Step 6:-

Then Region1 has created below "PageLayoutRN".
Click on this Region1 and go to the property window.
Set Properties for Region1
ID=MainRN
Region Style=messageComponentlayout.
Update Page in OAF
Update Page in OAF
Step 7:-

Now right Click on Region "MainRN".Click "messageTextinput".
Update Page in OAF
Update Page in OAF
Step 8:-

Then Item1 has created below Region "MainRN".
 Same like item1 created item2 under Region "MainRN".
Update Page in OAF
Update Page in OAF
Step 9:- 

Set Properties For Item1
 View Instance=SupplierVO
Item Style=messageTextInput.
View Attribute=SupplierId
Prompt=SupplierNo.

 Set Properties For Item2
 View Instance=SupplierVO
Item Style=messageTextInput.
View Attribute=SupplierName
Prompt=Supplier Name


Now Again Right Click on Region "PageLayoutRN"=>Click new=>Click Region.

Update Page in OAF
Update Page in OAF

Step 10:-

 Then Region1 has created Below "PageLayoutRN".
Click on Region1 and then Go to property Window.
Set Properties
ID=ButtonPage
Region Style=pageButtonBar.

Update Page in OAF
Update Page in OAF
Update Page in OAF
Update Page in OAF
Step 11:-

 Now Right Click on Region "ButtonPage".Click New=>Click Item.
Update Page in OAF Framework
Update Page in OAF Framework
Step 12:-
Then item3 has created under "ButtonPage".
Same Like this create "Item4" under "ButtonPage" region.
Set Properties for Item3
 Item Style=submitbutton.
Prompt=Update.

Set Properties for Item4
 Item Style=submitbutton.
Prompt=Cancel.
Update Page in OAF Framework
Update Page in OAF Framework
Step 13:-


Now We create a Controller For the page "RohitUpdatePG".

Under page "RohitUpdatePG". Right Click on Region "PageLayoutRN" =>Click "setnewController".
Update Page in OAF Framework
Update Page in OAF Framework
Step 14:-

Enter The Controller Name=RohitUpdatePageCO
Package=rohit.oracle.apps.fnd.RohitSearchPage.webui
Update Page in OAF Framework
Update Page in OAF Framework
Step 15:-

Then Controller has created as below
Update Page in OAF Framework
Update Page in OAF Framework


Step 16:-
 Now go to the page "RohitSearchPage".Select Page "RohitSearchPage".
Under Structure Window Right Click on "ResultsTable" under region "MainRN".=>Click New=>Click Item.
Update Page in OAF Framework
Update Page in OAF Framework


Step 17:-

Then item1 has created under "ResultsTable".
Click on Item1 and go to right hand side in Property window.
Id=Update
Item Style=image
Prompt=Update
Image URI=updateicon_enabled.gif
Action Type=fireAction.
Event=update_action
Update Page in OAF Framework
Update Page in OAF Framework


Step 18:-

Update Page in OAF Framework
Update Page in OAF Framework

Step 19:-

Put the code under the ProcessFormRequest in  Controller "RohitSearchPageCO"

    if ("update_action".equals(pageContext.getParameter(EVENT_PARAM)))
   
    {
      pageContext.setForwardURL("OA.jsp?page=/rohit/oracle/apps/fnd/RohitSearchPage/webui/RohitUpdatePG",
                                         null,
                                         OAWebBeanConstants.KEEP_MENU_CONTEXT,                            
                                         null,                                                   
                                         null,
                                         true,                            
                                         OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
                                         OAWebBeanConstants.IGNORE_MESSAGES);

    }




Put the code under the ProcessFormRequest in  Controller "RohitUpdatePageCO"



    OAApplicationModule am =
    (OAApplicationModule)pageContext.getApplicationModule(webBean);
   
   
    if(pageContext.getParameter("item3")!=null)
    {
      am.invokeMethod("apply");
     
     
    }
   
    if(pageContext.getParameter("item4")!=null)
    {
      am.invokeMethod("cancel");
     
     
    }
   


Step 20:-

After this Rebuild the Project "RohitSearchPage" and then run the page "RohitSearchPagePG".

Update Page in OAF
Update Page in OAF


Update Page in OAF

Friday 29 March 2013

Part2 Creating a simple Hello World Page in OAF



Part2 Creating a simple Hello World Page in OAF


Hi Friends , this is the Second and Last part of Creating POP List (List Item) in OAF Page. Here below is the First part of LOV creating in OAF Page.

Part1:- https://rpforacle.blogspot.in/2013/03/blog-post_10.html

Page has created as below




when you click the "RohitHelloWorldPage" Below structure pane has dispayed as below




Click on the region1.On the right hand side In the property inspector we  will set the AM for the this page.




On the right hand side click  in the property inspector click on the AM Definition as below

Select the Application Module.
Enter the Window Title and Title in the Property inspector of region1.




Right Click on the region1 and then new and then click  region




Then region2 has created.





















Right Click on "region2".Click new and then click item.

























Then Item1 has created as below








Now we create a Button in the Page for this Right click on the "region2".Click new and then click item.








Click on item2 and then go to the property inspector for this item.
Change the Item stype=submitButton.
 Prompt=Go




Now we have write a logic when the user click the button It will show some meesage in the screen .So we create a controller for this page.


Right click on the "region1" in the structure of the page.



Enter the Controller Name="RohitHelloWorldPageCO"
Package="rohit.oracle.apps.fnd.RohitHelloWorldPage.webui"

According to the OAF standard controller has creater under the webui of the project directory as shown above. Click Ok.






Controller has created.It contains two blocks.
1.Process Request.It fires when page Load.
2.Process Form Request.It fires when button pressed.





We will write the below code under the processFromRequest.

    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
  {
    super.processFormRequest(pageContext, webBean);
  
    String a=pageContext.getParameter("item1");
  
    String b=a+" It is a OAF testing.";
  
    throw new OAException(b,OAException.INFORMATION);
  
  
  }



After this Right Click on the project "RohitHelloWorldPage" and then Click Rebuild.

Rebuild is the compilation of the project.

After successful compilation , Right Click on the page "RohitHelloWorldPagePG".
Click Run.



If you want to see Other OAF Related Posts , Please visit Below URL.
https://rpforacle.blogspot.in/2013/03/oaf_10.html

If you want to see  Oracle Fusion Related Posts , Please visit Below URL.
https://rpforacle.blogspot.in/2018/01/oracle-fusion-learning-tutorial.html
If you want to Learn Oracle Workflow Builder, Please visit Below URL.
https://rpforacle.blogspot.in/2018/01/oracle-workflow-learning-tutorial-1.html


Contact us for any Collaboration, Project Support & On Job Support Work

Name

Email *

Message *