Hideing a table region

Hi,
I have requriment, where i need to display the table region based on the table which i have selected and remaining table regions has to be hide.
For example
I have three tables
a) po_vendors (povendorsTRN)
b) po_vendor_sites_all (povendorsitesallTRN)
c) po_vendor_contacts (povendorcontactsTRN)
Now, if i select po_vendors table from the list of values. Only the "povendorsTRN" region has to be dispayled and the remainng two table regions has to hide (povendorsitesallTRN, povendorcontactsTRN).
i did the coding as below in the controller
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
AccountingAMImpl am=(AccountingAMImpl)pageContext.getApplicationModule(webBean);
if(pageContext.getParameter("Go")!=null)
String tableName=pageContext.getParameter("TableNames");
System.out.println("Table Name:"+tableName);
am.accountingSearch(tableName);
in AM
public void accountingSearch(String tableName)
AccountingCodeSearchVOImpl acsvo=getAccountingCodeSearchVO();
Row row=acsvo.first();
if("XXTR_TRV_ACCOUNTING_CODE".equals(tableName))
row.setAttribute("AcctCodeTr",Boolean.TRUE);
else
row.setAttribute("AcctCodeTr",Boolean.FALSE);
row.setAttribute("AccountingTitle",Boolean.FALSE);
row.setAttribute("ItemCategory",Boolean.FALSE);
row.setAttribute("DistributionType",Boolean.FALSE);
row.setAttribute("AccountingRule",Boolean.FALSE);
row.setAttribute("AccountCode",Boolean.FALSE);
row.setAttribute("Update",Boolean.FALSE);
row.setAttribute("Delete",Boolean.FALSE);
}

Do some reading on OA beans...consider the following example as something to help you get started...note there are beans for all sorts of objects...this example is just for a query bean:
OAQueryBean qBean = (OAQueryBean)webBean.findChildRecursive("NameOfQueryRN");
if(pageContext.getSessionValue("Some Indicator To Hide The Region") != null){
qBean.setRendered(false);
}

Similar Messages

  • Adding Message Choice Item in a Table Region

    Hi,
    In the Oracle Sales Dashborad page there is a Table Region which shows the list of all the opportunities details like Name,Close Date etc.Now my requirement is to create a new Message Choice item in the table region as a new column(Opportunity Status).I have created that using the personalize feature of that table and have provided the following details
    Picklist View Instance:oracle.apps.asn.opportunity.poplist.server.OpportunityOpenStatusesVO
    Picklist Value Attribute:StatusCode
    Picklist Display Attribute:Meaning
    View Instance:OpptySearchVO1
    View Attribute:OpptyStatusName
    When the dashboard page loads it shows all other fields as fetched from the Database apart from this newly added Message Choice item.For all the rows this field shows blanc values.
    Is it because the Display value(Meaning) and the value gets stored in the DB(StatusCode) are Different for this message choice item?Please help me out to resolve this issue.
    If i need to populate each row for this message item explicitly how can i get handle of this message choice item(in the Table region) for each row and then set the value dynamically?
    Thanks
    Subha

    java.sql.SQLException: Missing IN or OUT parameter at index:: 1
         at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1752)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3444)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3493)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:860)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3643)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.createListDataObject(OAWebBeanPickListHelper.java:992)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getListDataObject(OAWebBeanPickListHelper.java:837)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getList(OAWebBeanPickListHelper.java:465)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getList(OAWebBeanPickListHelper.java:404)
         at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getList(OAMessageChoiceBean.java:762)
         at oracle.apps.fnd.framework.webui.OADataBoundValuePickListData.getValue(OADataBoundValuePickListData.java:86)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(OAWebBeanHelper.java:1809)
         at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getAttributeValueImpl(OAMessageChoiceBean.java:369)
         at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValuePickListSelectionIndex.getValue(OADataBoundValuePickListSelectionIndex.java:61)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(OAWebBeanHelper.java:1809)
         at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getAttributeValueImpl(OAMessageChoiceBean.java:369)
         at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
         at oracle.cabo.ui.collection.UINodeAttributeMap.getAttribute(Unknown Source)
         at oracle.cabo.ui.collection.AttributeMapProxy.getAttribute(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
         at oracle.cabo.ui.collection.UINodeAttributeMap.getAttribute(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
         at oracle.cabo.ui.laf.base.BaseLafUtils.getLocalAttribute(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.getSelectedIndex(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.populateOptionInfo(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.createOptionInfo(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.prerender(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.ChoiceRenderer.prerender(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.FormElementRenderer.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.OARendererProxy.render(OARendererProxy.java:76)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListRendererProxy.render(OAWebBeanPickListRendererProxy.java:66)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderNamedChild(Unknown Source)
         at oracle.cabo.ui.laf.base.SwitcherRenderer._renderCase(Unknown Source)
         at oracle.cabo.ui.laf.base.SwitcherRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.OARendererProxy.render(OARendererProxy.java:76)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListRendererProxy.render(OAWebBeanPickListRendererProxy.java:66)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.InlineMessageRenderer.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.OARendererProxy.render(OARendererProxy.java:76)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListRendererProxy.render(OAWebBeanPickListRendererProxy.java:66)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.table.NormalTableCell.render(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.table.NormalTableCell.render(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.TableRenderer.renderSingleRow(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.TableRenderer._renderTableRows(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.TableRenderer.renderTableRows(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.TableRenderer.renderTableContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.TableRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.TableRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.OARendererProxy.render(OARendererProxy.java:76)
         at oracle.apps.fnd.framework.webui.OAWebBeanTableRendererProxy.render(OAWebBeanTableRendererProxy.java:67)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.table.OATableBean.render(OATableBean.java:640)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.laf.swan.desktop.HeaderRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.swan.desktop.HeaderRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.portal.ui.renderer.FlexibleContentRenderer.renderContentOfFlexibleContent(Unknown Source)
         at oracle.portal.ui.renderer.FlexibleContentRenderer.renderExpandedState(Unknown Source)
         at oracle.portal.ui.renderer.FlexibleContentRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.portal.ui.renderer.FlexibleCellLayoutRenderer.renderVerticalLayout(Unknown Source)
         at oracle.portal.ui.renderer.FlexibleCellLayoutRenderer.renderExpandedState(Unknown Source)
         at oracle.portal.ui.renderer.FlexibleCellLayoutRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.portal.ui.renderer.FlexibleRowLayoutRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.portal.ui.renderer.FlexibleLayoutRenderer.renderContentOfFlexibleLayout(Unknown Source)
         at oracle.portal.ui.renderer.FlexibleLayoutRenderer.renderExpandedState(Unknown Source)
         at oracle.portal.ui.renderer.FlexibleLayoutRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.laf.swan.desktop.HeaderRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.swan.desktop.HeaderRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)
         at oracle.cabo.ui.laf.swan.desktop.ContentRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.render(OABodyBean.java:403)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.render(OAPageBean.java:3591)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:3237)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:3042)
         at OA.jspService(_OA.java:228)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:619)

  • How to get the values from table region and how to set

    Hi,
    I have a requirement as Seeded Page Having One Table Region having around 8 columns, In That Item Description field is there. My Requirement is I need add one more field for that Region and assign the value depending Item Description.
    I will create one new Item in that region and will give name as Item, But how to set the values to Item Depending on Item Description.
    Is it possible to through CO Extension, If yes..Pls help how to get it.
    Thanks in Advance,
    Hanimi

    Hi Hanimi,
    1. You need to extend the VO, add a new Attribute.
    2. In VORowImpl of the extended VO, you can find the getter for your new attribute (example getItem())
    3. In this getter method you can write some code like:
    if("ABC".equals(getItemDescription())
    return "XYZ" ;
    -Prince
    http://princekapoor82.blogspot.com

  • Display values of a single field in a multiple rows in a table region

    Hi Tech-Gurus,
    I want to display values of a single field ( which is in a table region) in multiple rows and also need to restrict the values from decimal number. If i click save, then it will throw exception "Decimal not allowed".
    xxxxxx
    yyyyyy
    Reg.No
    1234
    5678
    7654
    I need to display the values of REG.NO in different rows like,
    1234
    5678
    7654
    and also need to validate as well against Decimal values.
    Please help me with the code how i will iterate ?

    Hi,
    I am assuming you are talking about displaying substrings from the Reg No in different rows. For this you would need to write a query which identifies the substrings and creates a separate row for each (ensure you choose values for all other columns in the table row). Kindly let me know if the understanding is incorrect.
    To validate against decimal value you can use the java code by checking the difference of the number and the number on which modulus has been applied. Hope that helps.
    Regards
    Sumit

  • Getting table region values on Save

    Hi ,
    I am extending the Work Order Creation and update page from Maintenance Super User screen,
    I am doing like below to get all lines in controller.
    +
    OAApplicationModule am = (OAApplicationModule)pageContext.getApplicationModule(webBean);
    OAViewObject vo = (OAViewObject)am.findViewObject("MaterialRequirementsVO");
    if (vo.getFetchedRowCount() > 0)
    System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    while (vo.hasNext())
    pageContext.writeDiagnostics(this,"Inventory ID "+vo.getCurrentRow().getAttribute("InventoryItemId"),3);
    vo.next();
    +
    but I get data only when rows are not updated(without any changes it just click on save), and if any of the column in the table region is updated then i get null VO error.. and wont get any details of column.
    OAF LOG: Event : Check Errors, in: oracle.apps.fnd.framework.webui.OAPageErrorHandler: Exception: Message not found. Application: EAM, Message Name: CANNOT_SAVE_WO. ,In VO: null
    Please help.
    Thanks,
    --Amit                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi ,
    I have answered it in another thread , see if that helps you .
    --Keerthi                                                                                                                                                                                   

  • How to display data in table region

    HI All,
    I have a requirement to display data from a VO to a table region after clicking the GO button please help me on this.
    Thanks
    Deb

    Hi Deb,
    In the controller's processFormRequest(), check for the GO button click, then execute the VO's query via vo.executeQuery().
    Something like:
    if(oapagecontext.getParameter("Go") != null)
    am.invokeMethod("initTableQuery");
    Regards,
    LC

  • Column Totals of a table region in OAF Page

    Hi,
        I developed a custom OAF page with a table region (NOT an Advanced table region). It has several columns and one of them is a flag column of checkbox type and also there is amount column.
    My requirement is to display totals on the amount column based on the flag value. So if there are 4 records out of which 3 of them have flag = "Y"
    then at footer level, one line should display Total Amount when flag = "Y"   as sum(amount_column) with flag = "Y"
    and another line should display : Total Amount when flag = "N"  as sum(amount_column) with flag = "N".
    Can anybody help me how I can accomplish this?
    Note: I tried to use "Total" property to "True" but it is displaying data irrespective of my flag value. Some how, I should be able to filter the total based on the flag column. Also I need to display as one total per each flag value...
    Please note that I am using Table region NOT Advanced table region.....I appreciate of some one can give me detailed steps to accomplish this. Thanks
    Sample output....
    Flag            Amount
    Y                       100
    N                         50
    Y                         15
    Y                         20
    Total with "Y" = 135
    Total with "N" = 50

    hi Smitha,
        We cannot avoid that. but an alternate is that use another table above this table and which has the number of rows as zero. hide the table header for the below table. you need to adjust the header of above table so that it fits for the below table.
    This works fine if the table doesn't have sorter facility.
    Regards,
    Gopi

  • How do you add calculation columns to a table Region by using the Footer?

    I have a requirement to add some aggregate metrics at the bottom of my "tableRegion". The "TotalValue" property value for the table is not going to work for me since I the data I'm calculating is more complicated then doing a simple "sum".
    My first try (simple test case) was to use "OATableFooterBean". However, when it tries to find the table bean, it comes back as "null":
    if (empDetails != null) {
    OATableFooterBean tblFooter =(OATableFooterBean) empDetails.getFooter();
    if (tblFooter != null) {
    tblFooter.setAttributeValue("EmployeeName", "Merit Inc Target/Budget");
    I'm guessing it is due to not defining a "footer" region for my "table" region. When I click on the "Table" region, then due "New", I dot see "Region" listed as an option. So my question is how do I add a region "footer" to my "table" region? Once I have that, I'm sure it will solve the "null" exception I'm seeing for trying to get the table footer in the above code.
    Thanks

    Hi,
    For this create a transient attribute in the VO.
    Perform your required logic on this new transient attribute.
    Now create a footer region and create a styledtext and assign this transient attribute.
    Regards
    Sridhar

  • How to create a dynamic table region with dynamic VO

    Hi All,
    I have a requirement to create a dynamic table region with a dynamic VO.
    I need this because at runtime only the user will select the table name. So based on that table name, i have to create a table region to display the records.
    I already created a dynamic VO. Could anyone share the code for dynamic table region creation.
    Thanks in Advance.
    Thanks and Regards,
    Myvizhi

    Hi All,
    I have a requirement to create a dynamic table region with a dynamic VO.
    I need this because at runtime only the user will select the table name. So based on that table name, i have to create a table region to display the records.
    I already created a dynamic VO. Could anyone share the code for dynamic table region creation.
    Thanks in Advance.
    Thanks and Regards,
    Myvizhi

  • How to create a dynamic table region with dynamic VO in processFormRequest

    Hi All,
    I have a requirement to create a dynamic table region with a dynamic VO.
    I need this because at runtime only the user will select the table name. So based on that table name, i have to create a table region to display the records.
    I already created a dynamic VO. Could anyone share the code for dynamic table region creation.
    Thanks in Advance.
    Thanks and Regards,
    Myvizhi
    Edited by: Myvizhi Selvi on May 20, 2013 6:21 PM

    Hi,
    You can use following sample code to create advance table columns dynamically with colum groups as well.
    It assumes that you have already created advance table with ID EmpTblRN.
    Below code returns column heading dynamically and if you keep your VO column names and attributes
    same in all the cases (COL1, COL2.....) then you can easily use a loop to create advance table columns.
    It is attaching VO attributes to OAMessageStyledText bean in the last.
    Hope it helps.
    OAAdvancedTableBean advTable = (OAAdvancedTableBean)webBean.findChildRecursive("EmpTblRN");
    Serializable [] param = {currentWindowSeq.toString()};
    Datum[] colHeadingArray = (Datum[])am.invokeMethod("getColumnHeading", param);
    String oldGrpName = null;
    String newGrpName = null;
    OAColumnGroupBean columnGroup = null;
    DictionaryData columnFormat = new DictionaryData();
    columnFormat.put(WIDTH_KEY, "4%");
    for (int i = 0; i < colHeadingArray.length; i++)
    try
    oracle.sql.STRUCT os = (oracle.sql.STRUCT)colHeadingArray;
    Object[] colHeadAttr = os.getAttributes();
    newGrpName = (String)colHeadAttr[0];
    if(newGrpName!=null)
    if(!newGrpName.equals(oldGrpName))
    // Create a column group, create the set the column header,
    // and add the column group under the advanced table
    columnGroup = (OAColumnGroupBean)createWebBean(pageContext, COLUMN_GROUP_BEAN, null, "ColGroup"+i);
    OASortableHeaderBean columnGroupHeader = (OASortableHeaderBean)createWebBean(pageContext, SORTABLE_HEADER_BEAN, null, "ColGroupHeader"+i);
    columnGroupHeader.setText(newGrpName);
    // Retrieve from message dictionary
    columnGroup.setColumnHeader(columnGroupHeader);
    advTable.addIndexedChild(columnGroup);
    oldGrpName = newGrpName;
    // Create a column, create the set the column header, and add the column
    // under the column group
    OAColumnBean column1 = (OAColumnBean)createWebBean(pageContext, COLUMN_BEAN, null, "Column"+i);
    OASortableHeaderBean column1Header = (OASortableHeaderBean)createWebBean(pageContext, SORTABLE_HEADER_BEAN, null, "Column1Header"+i);
    column1Header.setText(colHeadAttr[1].toString());
    column1.setColumnHeader(column1Header);
    column1.setColumnFormat(columnFormat);
    columnGroup.addIndexedChild(column1);
    // Create the actual leaf item under the first column
    OAMessageStyledTextBean leaf1 = (OAMessageStyledTextBean)createWebBean(pageContext, MESSAGE_STYLED_TEXT_BEAN, null, "Leaf"+i);
    //OARawTextBean leaf1 = (OARawTextBean)createWebBean(pageContext, RAW_TEXT_BEAN, null, "Leaf"+i);
    leaf1.setViewAttributeName("Week"+(i+1));
    String destination = "OA.jsp?page=/xxqc/oracle/apps/per/leaveadvance/webui/EmployeeLeaveDetailPG&personId={@PersonId}";
    destination = destination + "&startDate="+colHeadAttr[1].toString()+"-"+(String)colHeadAttr[0];
    destination = destination + "&addBreadCrumb=Y&retainAM=Y";
    leaf1.setDestination(destination);
    OADataBoundValueViewObject cssjob = new OADataBoundValueViewObject(leaf1,"Color"+(i+1));
    //leaf1.setAttributeValue(oracle.cabo.ui.UIConstants.STYLE_CLASS_ATTR, cssjob);
    leaf1.setAttributeValue(UIConstants.RENDERED_ATTR, cssjob);
    column1.addIndexedChild(leaf1);
    catch(Exception e)
    System.out.println("e"+e);

  • How to enable DFF for each line level on a Table Region - very very urgent

    Hi,
    I have a Master- Detail Page, Detail is Table region. I need to enable DFF (Context Based) for each line. If any one has done similar requirement please share how to do this. Its very very urgent.
    It is a standard page.
    Thanks,
    Edited by: user8996062 on Jun 29, 2011 2:58 AM

    Can any one please help me on this it is very urgent.
    Thanks,

  • Problem in displaying update page when multiple results table regions.....

    Hi,
    In Search page, I have 4 Search result table regions.(1.PropertyResultsTable,2.HouseDetailResultsTable,3.WaterDetailsResultsTable,4.ElectricityResultsTable)
    In PropertyResultsTable Search result table region when I click the update Icon its showing the Last table region's(i.e ElectricityResultsTable) update page.
    Same thing happening for 2.HouseDetailResultsTable,3.WaterDetailsResultsTable also.
    If my search page contain only one result table region I can able to update the record successfully.
    How to get the correct update page if there is more than one results table and each table has the update icon to update the respective record.
    Please suggest.
    Thanks & Regards,
    Sagarika

    Hi,
    Thanks for your response.
    Each search result table has its own controller and I have one RootController for handling 'Go' button click.
    Here is the code,
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    //Transaction
    if (TransactionUnitHelper.isTransactionUnitInProgress(pageContext,
    "waterDetailCreateTxn",
    false)) {
    am.invokeMethod("rollbackServiceInfo");
    TransactionUnitHelper.endTransactionUnit(pageContext,
    "waterDetailCreateTxn");
    else if (TransactionUnitHelper.isTransactionUnitInProgress(pageContext,
    "waterDetailUpdateTxn",
    false)) {
    am.invokeMethod("rollbackServiceInfo");
    TransactionUnitHelper.endTransactionUnit(pageContext,
    "waterDetailUpdateTxn");
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if ("update".equals(pageContext.getParameter(EVENT_PARAM))) {
    // The user has clicked an "Update" icon so we want to navigate
    // to the first step of the multistep "Update Employee" flow.
    // Retain AM
    // Do not display breadcrumbs
    pageContext.setForwardURL("OA.jsp?page=/uttara/oracle/apps/uttaraimc/createCitizen/webui/WaterDetailUpdatePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null, null, true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    Thanks & Regards,
    Sagarika

  • How to default Sysdate in Advance table region on clicking Add Another Row

    Hi,
    Can any one please help me how to default Sysdate (MessageTextInput column) in Advance table region on clicking Add Another Row.
    Thanks,
    Mohan

    Got it... thanks mukesh..here it works.Reference to others!!!
    if (ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    OAViewObject vo3 = (OAViewObject)am.findViewObject("XxStageLineVO1");
    OARow row1 = (OARow)vo3.getCurrentRow();
    java.util.Date sysdate = pageContext.getCurrentUserDate();
    String convSysDate = pageContext.getOANLSServices().dateToString(sysdate);
    row1.setAttribute("StrtDt", convSysDate);
    }

  • Operations on Table Region.

    Hi Guru's..
    I have a requirement. I created one VO and a page.
    I show VO record in my pag's table region. I show the following fields.
    1) Device Code 2) Device Description 3) Device Unique ID 4) Device Type 5) Start Date 6) End date 7) Active.
    All fields are read only. But i want that if user want to edit any record then he will click on any record under "Device Code" column and a new page will open with all the fields of selected Device code and user can edit it there and after finishing it will automatically redirect to previous page (i.e. DeviceDetailsPG) with the updated output.
    How to do it ?
    Regards
    Ajay Sharma

    put destination URL for styledtextfield Device Code at the click of that link, it will redirect to the update page. pass device_id along with link using parameters.
    In PR of updade page, get the devide_id and query the VO. After saving navigate to same page where you have table..
    --Parag narkhede                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Total in advance table region

    hi all,
    i have one advance table region with total.
    in advance table region displays records(ex my advance table region displays 5 records).
    every number field display the total(this total calculate 5 records data)
    ex:
    1000
    2000
    3000
    4000
    5000
    total 15000
    my page work like above senario.
    but my client requirement is,in 5 records he select any two records and display the 2 records total.
    how to achive this
    plz help me its very urgent...
    Thanks
    Edited by: its urgent on Apr 13, 2012 4:38 AM

    Hi Gurus,
    Please help me. its very urgent
    Thanks

Maybe you are looking for