Step 1:- Create
Workspace and Project
Workspace Name:- PPR_NewOAWorkspace.jws
Project Name:- PPR_NewOAProject
Package:- XXC05.oracle.apps.wip.PPR_New
Step 2:- Create
a View Object (VO)
Package:- XXC05.oracle.apps.wip.
PPR_New.server
Name:- PPR_NewVO
In
Attribute Page Click on New button
Attribute Name:- RowKey
Type:- Number
Updatable:- Always
Key Attribute:- Checked
Click New
button again and create transient attribute with the following properties:
Name:- TestItem2Render
Type:- Boolen
Updatable:- Always
Step 3:- Now Create a
Application Module(AM)
Package:- XXC05.oracle.apps.wip.PPR_New.server
Name:-
PPR_NewAM
In Data Model Page
Drag PPR_NewVO from
Available View object to Data Model
Step 4:- Now create a
Page
Name:- PPR_NewPG
Package:- XXC05.oracle.apps.wip.PPR_New.webui
Step 5:- Modify the Page Layout
(Top-level) Region
ID:- PageLayoutRN
Regoin
Style:- pageLayout
Form
Style:- True
Auto
Footer:- True
Window
Style:- PPR Window
Title:-
PPR Title
AM
Defination:- XXC05.oracle.apps.wip.PPR_New.server.PPR_NewAM
Step 6:- Create second Regoin into
PageLayoutRN
ID:-
MainRN
Region
Style:- messageComponentLayout
Step 7:- Create a item into MainRN Regoin
ID:-
TextItem1
Regoin
Style:- messageTextInput
Prompt:-
Textitem1
Action
Type:- firePartialAction
Event:-
TextItem1Change
Submit:-
Ture
Disable
Server Side Validation:- True
Disable
Client Side Validation:- True
Step 8:- Create another item into MainRN Regoin
ID:-
TextItem2
Regoin
Style:- messageTextInput
Prompt:-
Textitem2
Rendered:-
${oa.PPR_NewVO1.TextItem2Render}
Step 9:- Add Following code in PPR_NewAMImpl.java
import
oracle.apps.fnd.framework.OARow;
import oracle.apps.fnd.framework.OAViewObject;
import oracle.apps.fnd.framework.server.OAViewObjectImpl;
import oracle.apps.fnd.framework.OAViewObject;
import oracle.apps.fnd.framework.server.OAViewObjectImpl;
{
Number val = 1;
OAViewObject vo = (OAViewObject)findViewObject("PPR_NewVO1");
if (vo != null)
{
if (vo.getFetchedRowCount() == 0)
{
vo.setMaxFetchSize(0);
vo.executeQuery();
vo.insertRow(vo.createRow());
OARow row = (OARow)vo.first();
row.setAttribute("RowKey", val);
row.setAttribute("TextItem2Render", Boolean.FALSE);
}
}
}
Step 10:- Create a CO
Name:-
PPR_NewCO
Package:-
XXC05.oracle.apps.wip.PPR_New.webui
Step 11:-
Add below code in PPR_NewCO
import
oracle.apps.fnd.framework.OARow;
import oracle.apps.fnd.framework.OAViewObject;import XXC05.oracle.apps.wip.PPR_New.server.PPR_NewAMImpl;
import oracle.apps.fnd.framework.OAViewObject;import XXC05.oracle.apps.wip.PPR_New.server.PPR_NewAMImpl;
public
void processRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processRequest(pageContext, webBean);
PPR_NewAMImpl am = (PPR_NewAMImpl)pageContext.getApplicationModule(webBean);
am.invokeMethod("handlePPRAction");
}
{
super.processRequest(pageContext, webBean);
PPR_NewAMImpl am = (PPR_NewAMImpl)pageContext.getApplicationModule(webBean);
am.invokeMethod("handlePPRAction");
}
{
super.processFormRequest(pageContext, webBean);
PPR_NewAMImpl am = (PPR_NewAMImpl)pageContext.getApplicationModule(webBean);
OAViewObject vo = (OAViewObject)am.findViewObject("PPR_NewVO1");
OARow row = (OARow)vo.getCurrentRow();
if ("TextItem1Change".equals(pageContext.getParameter(EVENT_PARAM)))
{
if (pageContext.getParameter("TextItem1").equals(""))
{
row.setAttribute("TextItem2Render", Boolean.FALSE);
}
else
{
row.setAttribute("TextItem2Render", Boolean.TRUE);
}
}
}
Now PPR Page is Created
No comments:
Post a Comment