Step 1: Create sample page
Step 2: Create one Advanced Table in that page
Step 3: Setup the required properties for the page
Step 4: Create on footer for the table, in that create one add table row button
Step 5: Setup the below properties to the add table row
Add Rows Label : Add Another Row
Rows to add: 1
Insert Rows Automatically : True
Step 6: Create one Controllor class
Step 7: Now in the process Request method add the below code
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processRequest(pageContext, webBean);
sampleAMImpl am = (sampleAMImpl)pageContext.getApplicationModule(webBean);
am.invokeMethod("createInsert");
}
Step 8: In AMImpl Class write the below Code
public void createInsert()
{
OAViewObject vo =getInsertVO1();
if (!vo.isPreparedForExecution())
{
vo.executeQuery();
}
}
Step 2: Create one Advanced Table in that page
Step 3: Setup the required properties for the page
Step 4: Create on footer for the table, in that create one add table row button
Step 5: Setup the below properties to the add table row
Add Rows Label : Add Another Row
Rows to add: 1
Insert Rows Automatically : True
Step 6: Create one Controllor class
Step 7: Now in the process Request method add the below code
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processRequest(pageContext, webBean);
sampleAMImpl am = (sampleAMImpl)pageContext.getApplicationModule(webBean);
am.invokeMethod("createInsert");
}
Step 8: In AMImpl Class write the below Code
public void createInsert()
{
OAViewObject vo =getInsertVO1();
if (!vo.isPreparedForExecution())
{
vo.executeQuery();
}
}
No comments:
Post a Comment