Controller
========================================
if ("AddRow".equals(pageContext.getParameter("event"))) { am.invokeMethod("AddRow");}
Application Module
========================================
public void AddRow()
{
OAViewObject voLine = (OAViewObject)getWrOffLineVO1();
OAViewObject voHeader = (OAViewObject)getWrOffHeaderVO1();
if (!voLine.isPreparedForExecution()) { voLine.setMaxFetchSize(0); voLine.executeQuery(); }
voLine.last(); voLine.next();
Row row = voLine.createRow(); voLine.insertRow(row);
row.setNewRowState((byte)-1);
String HReqID = voHeader.getCurrentRow().getAttribute("InvWriteoffHeaderId").toString();
row.setAttribute("LineNo", Integer.valueOf(voLine.getRowCount()));
row.setAttribute("InvWriteoffHeaderId", HReqID);
}
========================================
if ("AddRow".equals(pageContext.getParameter("event"))) { am.invokeMethod("AddRow");}
Application Module
========================================
public void AddRow()
{
OAViewObject voLine = (OAViewObject)getWrOffLineVO1();
OAViewObject voHeader = (OAViewObject)getWrOffHeaderVO1();
if (!voLine.isPreparedForExecution()) { voLine.setMaxFetchSize(0); voLine.executeQuery(); }
voLine.last(); voLine.next();
Row row = voLine.createRow(); voLine.insertRow(row);
row.setNewRowState((byte)-1);
String HReqID = voHeader.getCurrentRow().getAttribute("InvWriteoffHeaderId").toString();
row.setAttribute("LineNo", Integer.valueOf(voLine.getRowCount()));
row.setAttribute("InvWriteoffHeaderId", HReqID);
}
No comments:
Post a Comment