Add another row in the advanced table

hi..
i am having trouble with adding another row in the advanced table, the first thing is that i have created an add another row in the footer but when i click the add button an error occurs and the other problem is that the advenced table is retrieving rows from the database with some data in it but what i want when i add another row is to add a row in the same table but with the fields empty so that the user can fill them by himself to be added to the same table in the database
oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidOwnerException: JBO-25030: A4D 'D9+H1 9DI #H 9/E */BJB 'DCJ'F 'DE'DC.
     at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1223)
     at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
     at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2662)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1665)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
     at OA.jspService(OA.jsp:40)
     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
     at java.lang.Thread.run(Thread.java:534)

this is the exact senario i have a page called TasksPG which have a region pageLayout it has a child which is an advanced table its ID is TasksTable and this advanced table has 8 columns and a footer that contains an addTableRow1 what i just want to do is to add another row of these columns so i put the following code in the processFormRequest
super.processFormRequest(pageContext, webBean);
OAAdvancedTableBean tableBean=(OAAdvancedTableBean)webBean.findIndexedChild("TasksTable"); //line 54
OATableFooterBean tableFooterBean = (OATableFooterBean)tableBean.getFooter();
if (tableFooterBean != null)
// Get a handle to the add table row bean
OAAddTableRowBean addTableRowBean = (OAAddTableRowBean)tableFooterBean.findIndexedChild("addTableRow1");
// Handle add row insertion yourself
addTableRowBean.setAttributeValue(AUTO_INSERTION, Boolean.FALSE);
and the following error occurs when pressing the add another row
oracle.apps.fnd.framework.OAException: java.lang.ClassCastException
     at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
     at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
     at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
     at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2662)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1665)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
     at OA.jspService(OA.jsp:40)
     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
     at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.lang.ClassCastException
     at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.findIndexedChild(OAPageLayoutBean.java:1392)
     at reportingSheet.oracle.apps.ak.user.tasks.webui.TasksCO.processFormRequest(TasksCO.java:54)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:804)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
     at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1156)
     at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
     at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
     at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
     at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2658)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1665)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
     at OA.jspService(OA.jsp:40)
     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
     at java.lang.Thread.run(Thread.java:534)
java.lang.ClassCastException
     at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.findIndexedChild(OAPageLayoutBean.java:1392)
     at reportingSheet.oracle.apps.ak.user.tasks.webui.TasksCO.processFormRequest(TasksCO.java:54)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:804)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
     at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1156)
     at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
     at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
     at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
     at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2658)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1665)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
     at OA.jspService(OA.jsp:40)
     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
     at java.lang.Thread.run(Thread.java:534)

Similar Messages

  • Trigger in mutation - Update another rows in the same table with a trigger

    Hi ,
    I try to do a before update trigger on a table , but the trigger is in mutation. I understand why it do that but my question is :
    How can I update other rows in the same table when a UPDATE is made on my table??????
    Here is my trigger :
    CREATE OR REPLACE TRIGGER GDE_COMPS_BRU_5 BEFORE
    UPDATE OF DEPARTEMENT--, DISCIPLINE, DEG_DEMANDE, CE_ETAB
    ON GDEM.COMPOSITION_SUBV
    FOR EACH ROW
    Organisme : FQRNT-FQRSC
    Date de création : 14-07-2011
    Date de modification :
    Modifié par :
    Auteur : Johanne Plamondon
    Description : Ce déclencheur s'executera lors de la modification
    du responsable dans la table COMPOSITION_SUBV
    DECLARE
    V_OSUSER V$SESSION.OSUSER%TYPE;
    V_PROGRAM V$SESSION.PROGRAM%TYPE;
    V_TERMINAL V$SESSION.TERMINAL%TYPE;
    V_MACHINE V$SESSION.MACHINE%TYPE;
    V_MODULE V$SESSION.MODULE%TYPE;
    V_LOGON_TIME V$SESSION.LOGON_TIME%TYPE;
    V_AUDIT_ID NUMBER;
    vSEQ NUMBER;
    i NUMBER;
    vID DEMANDE.ID%TYPE;
    BEGIN
    begin
    SELECT OSUSER, PROGRAM, TERMINAL,MACHINE,MODULE, LOGON_TIME
    INTO V_OSUSER,V_PROGRAM,V_TERMINAL,V_MACHINE,
    V_MODULE,V_LOGON_TIME
    FROM V$SESSION
    WHERE TYPE = 'USER'
    AND USERNAME = USER
    AND LAST_CALL_ET IN (0,1)
    AND ROWNUM < 2;
    exception when others then null; end;
    IF NVL(:NEW.SC_PART,' ') = 'CHC' THEN
    SELECT COUNT(*)
    INTO i
    FROM DEMANDE
    WHERE DEM_REF = :NEW.DEM_ID
    AND PER_NIP = :NEW.PER_NIP;
    IF i = 1 THEN
    SELECT ID
    INTO vID
    FROM DEMANDE
    WHERE DEM_REF = :NEW.DEM_ID
    AND PER_NIP = :NEW.PER_NIP;
    UPDATE COMPOSITION_SUBV
    SET --CE_ETAB     = :NEW.CE_ETAB,
    --DISCIPLINE  = :NEW.DISCIPLINE,
    DEPARTEMENT = :NEW.DEPARTEMENT,
    --DEG_DEMANDE = :NEW.DEG_DEMANDE,
    DATE_MODIF = SYSDATE,
    USER_MODIF = V_OSUSER
    WHERE DEM_ID = vID
    AND PER_NIP = :NEW.PER_NIP
    AND ANNEE = :NEW.ANNEE;
    END IF;
    END IF;
    /*EXCEPTION
    WHEN OTHERS THEN
    NULL;*/
    END;

    A standard disclaimer, the mutating trigger error is telling you that you really, really, really don't want to be doing this. It generally indicates a major data model problem when you find yourself in a situation where the data in one row of a table depends on the data in another row of that same table. In the vast majority of cases, you're far better off fixing the data model than in working around the problem.
    If you are absolutely sure that you cannot fix the data model and must work around the problem, you'll need
    - A package with a collection (or global temporary table) to store the keys that are modified
    - A before statement trigger that initializes the collection
    - A row-level trigger that adds the keys that were updated to the collection
    - An after statement trigger that iterates over the data in the collection and updates whatever rows need to be updated.
    If you're on 11g, this can be simplified somewhat by using a compound trigger with separate before statement, row-level, and after statement sections.
    Obviously, though, this is a substantial increase in complexity over the single trigger you have here. That's one of the reasons that it's generally a bad idea to work around mutating table exceptions.
    Justin

  • Advanced table Add another row

    Hello everyone,
    I have created an advanced table region in my custom page. This is not a mandatory region in my page but there are other fields which are mandatory in the page. Right now i am unable to add another row in the advanced table unless all the other mandatory fields in the page are given some values.
    Is there any way to comeout of this situation.
    Thank you.
    PK

    I marked that this thread is answered answered but i have one more question relating to the same type of issue and thought of continuing this thread. It would be great if any one can give a suggestion.
    In the Advanced table, i have a delete button(its of type image) for which i have disabled the client and server side validations and implemented PPR for that button. Now when i click on the delete, the page moves up after deleting the row and i don't want that.
    How should i handle this situation?
    Thank you.

  • Row attributes in the advanced tables

    Hi Everyone,
    In my custom page, i have developed an Advanced Table. The user can add any number of rows in the advanced table and i am capturing all the rows and the attributes of those rows in the advanced table using a loop.
    Now, no matter how many rows the user adds, i need to fetch the attributes of all the rows and pass them to the next page for calculations and other purposes. I am not sure how to implement this logic.
    Please let me know if anyone of you has got any ideas.
    Thanks

    Hi,
    You can get the row reference with this code.
    Example:--->
    CO Code
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    if ("serviceDateChange".equals(oapagecontext.getParameter("event")))
    String s5 = oapagecontext.getParameter("evtSrcRowRef"); // Getting the Row reference
    OR
    *// Another Method for getting row reference.*
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Serializable aserializable6[] = { s5 };
    am.invokeMethod("validateBackDate", aserializable6);
    AM Code
    public void validateBackDate(String s)
    XXEOVORowImpl xxeovorowimpl = (XXEOVORowImpl)findRowByRef(s);
    if (xxeovorowimpl != null)
    //do whatever you want to do...
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Create row as next row on click of add another row button not on top of it

    My af:table is based on a transientVO (all the attributes are transient)
    This is just for data entry and not for data retrieval
    So i have placed add another row button on my af:table
    After i enter data in the first row and click add another row button the data is being moved to second row and the new row is created on top of that
    I want the row to be created as next row . not on top of my existing row
    How can we do this

    would this help you:
    http://lucbors.blogspot.com/2010/12/adf-11g-how-to-control-where-new-row-is.html

  • Add Another Row

    When I try to add another row to a classic table I get the following error:
    Attribute set for Responsibility in view object UserRespsUpdateVO1 failed.
    I followed the directions exactly in the Classic Tables: Adding Rows section of the help files. What would be causing this error?
    Also, the Add Another Row button always covers the last row of my table when it first renders. The last row of the table is only seen after pressing Add Another Row or after using the browser Back button and then returning to the page a second time.
    Thanks,
    Mike

    Is there a Attribute called Responsibility in the VO
    UserRespsUpdateVO1 ? if yes, then there is a problem
    when FWK is trying to set the value for this
    attribute for the new row.
    Also, the Add Another Row button always covers the
    last row of my table when it first renders. The last
    row of the table is only seen after pressing Add
    Another Row or after using the browser Back button
    and then returning to the page a second time.
    Can you please explain this in detail.Thanks
    TapashThanks for your help, Tapash. All my former problems are now resolved. I wrote my own code to replace the default behavior for adding a new row. Everything works fine except for one thing: when I try to add more than one row at a time, I get an error complaining about one of the fields being required. The default behavior used to handle this automatically, so now I need to know how to do that myself. Any advice you could give me would be most appreciated.
    Thanks,
    Mike

  • How to refresh a child table each time I select a row in the master table

    I've 2 tables, a master table and a child table.
    When i click on each row of the master table, the child table needs to be refreshed.
    I've given the id of table1(master) as the CreatePartialTrigger value in table2(child).
    The refresh does happen but it happens in an inconsistent manner.
    For eg. in my scenario,
    1.I add a row to the master table
    2.Click on the create button of the child table, this opens a popup and i enter a few values and the child row gets added.
    3.Now when i toggle between the rows in my master table, the refresh does not happen and I see duplicate rows in the child table but in the datebase only one record gets stamped..
    Is there any clean way to refresh the child table based on the row selection in the master table.
    Kindly let me know.
    Table1
    <fnd:applicationsTable tableId="table">
    <af:table value="#{bindings.Actions1.collectionModel}" var="row"
    rows="#{bindings.Actions1.rangeSize}"
    fetchSize="#{bindings.Actions1.rangeSize}"
    selectedRowKeys="#{bindings.Actions1.collectionModel.selectedRow}"
    selectionListener="#{bindings.Actions1.collectionModel.makeCurrent}"
    rowSelection="single" id="table1"
    contentDelivery="immediate" editingMode="clickToEdit"
    columnSelection="multiple" autoHeightRows="10"
    summary="#{HcmActionsTopGenBundle['Header.Action.ActionCode']}" rowBandingInterval="0"
    styleClass="AFStretchWidth"
    partialTriggers="::create ::createMenuItem">
    <af:column id="column1" headerText=" " width="5"
    rowHeader="true"/>
    <af:column sortProperty="ActionCode" sortable="true"
    headerText="#{bindings.Actions1.hints.ActionCode.label}" width="150"
    showRequired="true" rendered="true" id="c1">
    <af:inputText value="#{row.bindings.ActionCode.inputValue}"
    label="#{bindings.Actions1.hints.ActionCode.label}"
    required="#{bindings.Actions1.hints.ActionCode.mandatory}"
    columns="#{bindings.Actions1.hints.ActionCode.displayWidth}"
    maximumLength="#{bindings.Actions1.hints.ActionCode.precision}"
    shortDesc="#{bindings.Actions1.hints.ActionCode.tooltip}" id="it1"
    autoSubmit="true"
    />
    </af:column>
    </fnd:applicationsTable>
    Table 2
    <fnd:applicationsTable tableId="table2"
    styleClass="AFStretchWidth"
    id="AT2"
    actionsMenuRendered="false"
    secondaryToolbarRendered="false"
    createPatternType="secondaryWindow"
    createText="#{hcmActionsBundle['Action.Add']}"
    createAction="#{backingBeanScope.SetupUiBean.invokeCreatePopUp}"
    createPopupId="create1"
    editEnabled="false"
    createPartialTriggers="table1"

    Hi Frank,
    As you mentioned I already have the id of my master table which is 'table1' as the createPartialTrigger in my child table.
    In my case there are 2 scenarios.
    I add a row to the Master table and when I click on the create button on the chile table, I get a pop with 'Yes' , 'No' and 'Cancel'
    Scenario1
    If I click 'Yes' , then I get another popup where I enter the values for the ActionReasonsActionReasonUsagesVO which is a combination of the ActionReasonsEO and the ActionReasonUsagesEO, now when I click on OK, a new row gets created in the ActionReasonsActionReasonUsagesVO.
    In the above scenario things work fine, as I toggle between the rows in the Master table the child table gets refreshed.
    Scenario2
    If I click 'No' I get a search popup where I can query up the ActionReasonsVO and select existing data,on clicking OK, the values get mapped from the ActionReasonsVO to the ActionReasonsActionReasonUsagesVO.
    Now when I toggle between the rows in my master table, I observe 2 types of behaviors
    1.Due to incorrect refresh, the child table rows vanishes from the UI.
    2.There are duplicate rows in the child table.
    The issue is specific to this scenario where the refresh of the child table rows does not happen correctly.
    Edited by: 944295 on Apr 18, 2013 5:16 PM

  • 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);
    }

  • How to add new row at the top of the advance table.

    Hi,
    I have one advanced table.
    I want to add new rows in advanced table. I can able to add rows using the AddMoreRows button in the footer of the advanced table.
    This adds the row at the end. But I want to add the row at the top.
    How to achive this? Please suggest.
    Thanks & Regards,
    Raja

    Hi,
    Yes you can do it...
    Just set the add Rows automatically property to False of Add Row Button
    and then in processForm Request capture the addRows event
    and invoke a method in AM and then create a new Row in VO.
    Use this code...it will insert row at the top...
    if("addRows".equals(event))
    am.invokeMethod("addrows");
    public void addrows()
    AddressesVOImpl vo1 = getAddressesVO1();
    AddressesVORowImpl row1 = (AddressesVORowImpl)vo1.createRow();
    vo1.insertRowAtRangeIndex(0,row1);
    vo1.setCurrentRow(row1);
    Thanks,
    Gaurav

  • Advance table Add another row button error  ---Error: Cannot Display Page

    hi, i m new to OAF.
    I m trying to add new row programatically to my advanced table, but getting the error
    Error: Cannot Display Page
    You cannot complete this task because one of the following events caused a loss of page data:
    Your login session has expired.
    A system failure has occurred.
    My page has two EOs with two differnt tables Table A(Accident details) and Table B(Victim Details).Table A is Parent of Table B.No relation is defined in my page for these two tables so far.Foreign key is not defined.
    On my page I have various field for entering data for Table A and its saving data properly
    For table B i have taken the Advanced table.When i click on Add row button of table i m getting the said error.
    My CO
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processFormRequest(pageContext, webBean);
        OAApplicationModule am=(OAApplicationModule)pageContext.getApplicationModule(webBean);
         System.out.println("processFormRequest ");
         if(pageContext.getParameter("Save")!=null)
            am.invokeMethod("apply",null);
            System.out.println("Save ");
      if  ("addRows".equals(pageContext.getParameter("event")) && "AdvTblRN".equals(pageContext.getParameter("source")) )
      System.out.println("The source is :"+pageContext.getParameter("source"));
      String p_header_id = (String)pageContext.getTransactionValue("p_tx_header_id");
      Serializable[] param = {p_header_id};
      am.invokeMethod("createRow", param);
       am.invokeMethod("apply",null);
       System.out.println("Add Row ");
      pageContext.forwardImmediatelyToCurrentPage(null,false,"N");;
    And AM
    public void createRow( String p_header_id)
    Row prow;
    VictimDtlVOImpl pvo= getVictimDtlVO1();
    pvo.setMaxFetchSize(0);
    prow=pvo.createRow();
    pvo.insertRow(prow);
    prow.setNewRowState(Row.STATUS_INITIALIZED);
       OAViewObject vo1 = (OAViewObject)getVictimDtlVO1();
    OADBTransaction transaction1 = getOADBTransaction(); 
      System.out.println("---- "+transaction1.getSequenceValue("XXMIS_SAFETY_VICTIM_DTL_SEQ"));
      Row row1 = vo1.createRow();
       vo1.insertRow(row1);
      row1.setAttribute("VictimId",transaction1.getSequenceValue("XXMIS_SAFETY_VICTIM_DTL_SEQ")); 
      row1.setNewRowState(Row.STATUS_INITIALIZED);
    public void apply()
    try {
      getOADBTransaction().commit();
    System.out.println("Commit ");
    plz help .......
      catch (Exception e)
       e.printStackTrace();

    Hi Vaishali,
    Use below code for add line in Nested Table.
    if(pageContext.getParameter("addRows") != null){
            OAAdvancedTableBean sectionsTable = (OAAdvancedTableBean)webBean.findChildRecursive("AdvTblRN");
            OAInnerDataObjectEnumerator sectionsEnum = new OAInnerDataObjectEnumerator(pageContext, sectionsTable);
            while(sectionsEnum.hasMoreElements()){
                RowSet sectionsRowSet = (RowSet) sectionsEnum.nextElement();
                for(int i = 0; i < 1; i++){
                    OARow newRow = (OARow) sectionsRowSet.createRow();
                    sectionsRowSet.insertRowAtRangeIndex(sectionsRowSet.getRowCount(), newRow);
    Thanks,
    Dilip

  • How to populate rows in the detail table of a form from another table.

    please can someone help me here:
    i have a master/detail page. the master data is created and then i would like to do this: when one goes to the detail page (when first created), i would like somehow to populate all the rows in the detail table from rows retrieved in another table (with conditions).
    i am new to apex so if this is a stupid question i apologise in advance!

    Hi
    Firstly, there are no stupid questions, we all start somewhere!
    However, I could do with some more detail (or even better an example on apex.oracle.com). Please can you post exactly what you have so far and what you want to achieve with simple details of the tables involved.
    It sound like you may need to create a custom process to populate the details. You say 'with conditions'... what conditions?
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • How can I add a row at the bottom of the table ?

    Hi,
    I have an application table and I want to make sure that whenever user tries to add a row to the table, the row should be added at the bottom.
    Does anyone know how to implement it or point me in the right direction ?
    Thanks,
    Akshay

    Hi,
    have a button with actionListener as following
        private void insertBlankRecordForViewObject(ViewObject vo) {
            Row lastRow = vo.last();
            Row newRow = vo.createRow();
            newRow.setNewRowState(Row.STATUS_NEW);
            if (lastRow != null) {
                int indx = vo.getRangeIndexOf(lastRow) + 1;
                vo.insertRowAtRangeIndex(indx, newRow);
            } else {
                vo.insertRow(newRow);
            logger.info("inserted blank record for vo : " + vo.getName());
        public static DCIteratorBinding findIterator(String iteratorName) {
            if (iteratorName == null) {
               // LOGGER.warning(String.format("iteratorName cannot be null", iteratorName));
                return null;
            if (iteratorName.isEmpty()) {
                //LOGGER.warning(String.format("iteratorName cannot be empty", iteratorName));
                return null;
            DCIteratorBinding itrBinding = getDCBindingContainer().findIteratorBinding(iteratorName);
            if (itrBinding == null) {
               // LOGGER.warning(String.format("DCIteratorBinding [%s] not found", iteratorName));
                return null;
            return itrBinding;
        public static DCBindingContainer getDCBindingContainer() {
            return (DCBindingContainer)getBindingContainer();
        public static BindingContainer getBindingContainer() {
            return getBindingContext().getCurrentBindingsEntry();
             public static BindingContainer getBindingContainer() {
            return getBindingContext().getCurrentBindingsEntry();
        public static DCBindingContainer getDCBindingContainer() {
            return (DCBindingContainer)getBindingContainer();
        public void onAddRowAtLast(ActionEvent actionEvent) {
            insertBlankRecordForViewObject(findIterator("MyVOIterator").getViewObject());//iter from page binding to which table is binded
        }Regards,

  • How to add a row in an emty table

    Hi,
    I would like to use only one nav bar in a Panel containing 2 JTables. So I bind the nav bar to the JUPanel.
    The problem is if one or both of the tables are empty there is no way to add a row, since the JTable doesn't
    get the focus and the nav bar stay's grayed out.
    What is the best solution for this?
    I don't want to have 2 nav bars each bound to the corresponding view.
    May be there is a way to have an empty row if there are no rows in the table.
    Thanks

    One way folks on OTN reported they've worked around this issue is to add an combo implementing iterator picker on the NavBar. Then when they end up in this situation, the users can select the right iterator and add rows to it by binding the navbar to that iterator (which is not focus-able due to no rows in it in a table display).
    Another way I would suggest is to trap a mouse-click event on the table and if clicked upon, make the navbar focus on the iterator that the table was bound to.

  • Urgent: Add another Row feature and Query bean

    Hi,
    I have added "Add another Row" feature to the result table of a query bean which is results based search. The table is also updateable. I am able to update rows, save, rollback and query another set of records again without any problem.
    But, if I add a row, save or rollback those changes and go back and perform a query, it doesn't return any records. What would I be missing?
    Thank you.

    Please ignore this. I figured out.
    Thank you

  • Details link of the Advanced Table

    Hi All,
    I'm having a requirement where in i need to make the Reason For Change as the madatory field while correcting the salary details (Oracle seeded page).The existing salary details are shown in the advanced table having detail disclosure.But as the field i'm trying to make mandatory is only shown when the table details are disclosed I would like to make the show details visible when the add button (+ symbol on the page) is clicked.
    Is there any way to invoke the details for newly added Advanced Table row after the user clicks Add-->Select From Date
    Any help is highly appreciated.
    Regards
    Srikanth Enuguru

    Hi Gurus,
    Please help me.

Maybe you are looking for

  • While running Auto payment program through F110 getting error

    Dear Experts, while running Auto payment through F110 we are getting below error "F0417                     warning: check whether a duplicate payment medium has been created". I dont have any problem for payment summary and payment advice, issue onl

  • Additional CheckBoxes on JSP Page

    Dear All, I have created 10 Additional CheckBoxes on a JSP Page in Apps through pesonalization by Create Item option and chosen (MessageStylesCheckBox). The Value of this CheckBox is 1 if it is checked and 0 if it is unchecked. Now I want to track th

  • How to remove third party application from mAC

    how to uninstall or remove custom application from mac yasomite. New to mac   easy and safe way thanks in advance

  • Activating Project Professional 2010 after a crash

    hi there:- I am looking to reactivate/reinstall Project Professional 2010 after a crash. I have a product activation code having downloaded the software online (no disks). What do I need to do? Much obliged Tom

  • When will javax.mail.SendFailedException throw?

    hi, i am a beginner of java and javamail I need to know when SendFailedException will throw (under what conditions). Is there any documentation I can read? thank you very much