Call this method from processRequest(---,----) Method
private void setReportSumText(OAPageContext pageContext, OAWebBean webBean)
{
OAAdvancedTableBean advancedTableBean = (OAAdvancedTableBean)webBean.findIndexedChildRecursive("BuyerTableRN");
advancedTableBean.prepareForRendering(pageContext);
if (advancedTableBean != null)
{
OATableFooterBean tableFooterBean = (OATableFooterBean)advancedTableBean.getFooter();
if(tableFooterBean != null)
{
OATotalRowBean totalRowBean = (OATotalRowBean)tableFooterBean.getTotal();
if(totalRowBean != null)
{
totalRowBean.setText("Report-Sum");
}
}
}
}
private void setReportSumText(OAPageContext pageContext, OAWebBean webBean)
{
OAAdvancedTableBean advancedTableBean = (OAAdvancedTableBean)webBean.findIndexedChildRecursive("BuyerTableRN");
advancedTableBean.prepareForRendering(pageContext);
if (advancedTableBean != null)
{
OATableFooterBean tableFooterBean = (OATableFooterBean)advancedTableBean.getFooter();
if(tableFooterBean != null)
{
OATotalRowBean totalRowBean = (OATotalRowBean)tableFooterBean.getTotal();
if(totalRowBean != null)
{
totalRowBean.setText("Report-Sum");
}
}
}
}
No comments:
Post a Comment