New Row gets created in table automatically

Hi all,
I have a panel box(pb1) in my JSFF which has a table(tbl1).
When the table is empty, if i collapse table's parent panel box i.e. pb1,
n again expand it..,I see new row created in the table...
I haven't put any code to create new blank row in table view object on collapse n expand of panel box...
How to fix this issue..?
JDEV vesion : 11.1.1.4.0
Please reply...
Thanks.

Hi yaminip,
Its not necessary to put the code in expand and collapse action of the panel box may it can be in different place
and the table may refersh while u expand /collapse the panel box and new row came to visible.... keep break point in the EntityImpl Create method or ViewObjectImpl InsertRow method
Find when its get fired........
Regards,
Suganth.G

Similar Messages

  • Inserting a new row in a child table referencing an already existing parent

    I have two tables PARENT & CHILD (one to many), both of which are populated at different times.
    In our toplink mappings, parent contains a collection of child Domain Objects, & and child Domain object contains a one - one to parent.
    How can I insert a new row in a child table with reference to an already existing row in parent?
    When I fetch the parent Domain object and try to set it in the child Domain Object and use the unitOfWork.registerObject() it goes into a circular loop of selecting from 2 other tables.
    Please suggest.

    Odd, have you disabled caching and indirection? (NoIdentityMap, dontUseIndirection, or alwaysRefresh/disableCacheHits). If so, then this could be the issue.
    Otherwise please include the sample code you use to perform this, and verify that you do not have any unusual code in your set/get methods or in descriptor events. Also turn TopLink logging on and include a sample. Also ensure that you do not modify your objects until after registering them in the unit of work, and only modify the unit of work clones.

  • BAPI to insert a new row in the MCHA table

    Hi all,
    I am in search of a BAPI to insert a new row in the MCHA table... with the fields of the materail, plant and batch values.
    Any inputs on this..is highly appreciable...
    thanks in advance...
    regards..
    prathima.

    explore BAPI_BATCH_CREATE

  • BAPI to insert a new row in the AUSP table

    Hi all,
    I am in search of a BAPI to insert a new row in the AUSP table... with the fields of the object and
    characteristic values.
    Any inputs on this..is highly appreciable...
    thanks in advance...
    regards..
    prathima.

    hi,
    from best of my knowledge  here is list of bapi through you can insert ausp table.
    check it.
    CLSE_SELECT_AUSP
    CLVF_INSERT_AUSP
    BAPI_CLASS_CREATE
    C14K_AUSP_CHANGE_VALUE
    CLSE_SELECT_AUSP
    CLVF_UPDATE_AUSP
    C14K_AUSP_ADD_UPD
    BAPI_CLASS_CREATE
    regards,
    vipul

  • New Session getting created(!)

              Hi All,
              I am facing a wierd behavior. I have an application with a
              login page(jsp). User submits his authentication details,
              is authenticated in a servlet, and some of his information is
              put in the session. Later he gets "redirected" to another
              jsp(just like any other app).
              This is working fine most of the times. But randomly it is
              so happening that the jsp being redirected to does not get the
              values put in the session.
              Some more debugging showed that from login jsp to servlet, same
              session continued till the very last step(just before
              redirection). Just after
              response.sendRedirect(response.encodeRedirectURL(url));
              a new session gets created(!!). Any pointers?
              Please note I am testing all this out in a browser which is
              accepting cookies.
              

    Urgent!!
              We have the same problem on WLS5.1.
              Any suggestions would be fine
              Regards
              Osman
              "Bijay Kumar" <[email protected]> schrieb im Newsbeitrag
              news:3d0ed20f$[email protected]..
              >
              > Hi All,
              > I am facing a wierd behavior. I have an application with a
              > login page(jsp). User submits his authentication details,
              > is authenticated in a servlet, and some of his information is
              > put in the session. Later he gets "redirected" to another
              > jsp(just like any other app).
              >
              > This is working fine most of the times. But randomly it is
              > so happening that the jsp being redirected to does not get the
              > values put in the session.
              >
              > Some more debugging showed that from login jsp to servlet, same
              > session continued till the very last step(just before
              > redirection). Just after
              > response.sendRedirect(response.encodeRedirectURL(url));
              > a new session gets created(!!). Any pointers?
              >
              > Please note I am testing all this out in a browser which is
              > accepting cookies.
              >
              

  • How to obtain row number when a new row is created (without commit)?

    I have this:
    <NamedData NDName="LineaNro"
    NDValue="#{bindings.VOIpmDistribucionManualEBS1.currentRowIndex}"
    NDType="oracle.jbo.domain.Number"/>
    When I push the New button, the value shows -1. If I push again, the value shows 0... but for third time an error occur:
    Too many objects match the primary key oracle.jbo.Key[0 0 2011-12-01 ID del comprobante 0 ]
    The problem is the last 0, it's the same 0 returned for the second button push.
    The commit must be do it at the end.
    Any suggestions?
    Thanks in advance.

    Can you elaborate a bit on what you are trying to do?
    And which jdev version you are using?
    If you try to use the current row index a a primary key for a new row this won't work. The first time you hit the new button you get -1 as the current row is not set. Then the new row get the current row and get the index 0. So, then you hit new again you get 0 back.
    It's never a good idea to use a row index as primary key as this won't work in multi user environments (which adf web apps are).
    You should use a db sequence as PK as this will work in all scenarios and guarantees that one number is only use once.
    Timo

  • Listening for new cachings getting created?

    I'd like to be able to register my own MBeans on each distributed CacheServer for each cache that lives on that server. Is it possible to register a listener anywhere that gets called when a new cache gets created? Alternatively, is it possible to register a listener that is called after the cache factory has finished starting all the "autostart" caches?
    I'm using version 3.3
    thanks
    sam
    ps - I'm already registering my own custom global mbeans... but they are created before any of the caches get created.

    Sam
    You can specify your custom CacheFactory class in the override file so you can still use DefaultCacheServer
    When I needed to intercept cache creation I extended DefaultConfigurableCacheFactory and overrode this method:
    public NamedCache configureCache(CacheInfo cacheInfo, XmlElement xmlScheme, ClassLoader classLoader)
    Then just call the super class version before or after doing whatever you need to.
    The XML for the override file looks like this
    <coherence>
         <configurable-cache-factory-config>
              <class-name>com.oracle.coherence.common.configuration.AdvancedConfigurableCacheFactory</class-name>
              <init-params>
                   <init-param>
                          <param-type>java.lang.String</param-type>
                          <param-value system-property="tangosol.coherence.cacheconfig">coherence-cache-config.xml</param-value>
                   </init-param>
              </init-params>
         </configurable-cache-factory-config>
    </coherence>The above snippet is taken from the Incubator common library. You would replace com.oracle.coherence.common.configuration.AdvancedConfigurableCacheFactory with the name of your class.
    You need to call the override file tangosol-coherence-override.xml and put it on the class path or if you call it anything else then specify the name as a JVM argument with -Dtangosol.coherence.override=<name of your file>
    Jonathan

  • Whe downoading attachemtn adobe new tabs get created forever, download attachment can't be used

    I have the latest firefox app on my laptop. When I click a link attachment to see a dinner menu for example, new tabs get created one after the other and so on. It's like a feedback loop, just more tabs and tabs but then you have to close the firefox window multiple time to get it to stop. I went to other websites and clicked their attachments and the problem repeated.
    I have the current version of adobe also. please help. I'm using my internet msn exlplore now so can I send you this message. please help!
    Thanks,
    Wayne

    You get tabs opening endlessly if you select the Firefox program to handle a file when you get an "Open with" dialog.
    *https://support.mozilla.org/kb/Firefox+keeps+opening+many+tabs+or+windows
    You will have to revert this setting.
    Rename (or delete) the mimeTypes.rdf file in the Firefox profile folder to reset all file actions.
    *http://kb.mozillazine.org/mimeTypes.rdf
    *http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions

  • Create a new Row in an advanced table in an advanced table

    Hi,
    I am handling the master detail relationship. For this i have used advanced table in an advanced table. I am facing a problem while creating a new row in the inner advanced table.
    I have a Display Sequence column in the inner advanced table. I want to handle the logic for displaying the value of this attribute. As per dev guide i have attached the view link and for handling the Add New row event i am using the below code
    OAAdvancedTableBean sublineDetailsTableBean = (OAAdvancedTableBean) webBean.findChildRecursive("SublineAdvTableRN");
    OATableFooterBean sublineTableFooterBean = (OATableFooterBean) sublineDetailsTableBean.getFooter();
    if (sublineDetailsTableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM))
    && ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    This is working fine. The challenge i am facing is for creating a new row. Below is the code given in dev guide
    // get a handle to inner tableOATableBean innerTable =
    (OATableBean)webBean.findChildRecursive("InnerTableBean");
    // create an enumeratorOAInnerDataObjectEnumerator enum =
    new OAInnerDataObjectEnumerator(pageContext, innerTable);
    while (enum.hasMoreElements())
    RowSet innerRowSet = (RowSet) enum.nextElement();
    // get all rows
    Row []rowsInRange = innerRowSet.getAllRowsInRange();
    for (int i = 0; i < rowsInRange.length; i++)
    Row nextRow = (Row) rowsInRange;
    // In case you want to add new rows in this RowSet, you can do the same
    OARow newRow = (OARow) innerRowSet.createRow();
    // initialize value for some attribute and insert the row
    newRow.setAttribute("SomeAttr", "SomeValue");
    innerRowSet.insertRow(newRow);
    The Above code creates a new Row in all the master records.
    How do i identify that the add new Row event has been triggered for which master record?
    Can any body please help me on this. I am stuck from a long time and am unable to find the appropriate solution.
    Thanks in advance
    Raj Papdeja

    Hi,
    Following is the code written in PFR,
    OAAdvancedTableBean sublineDetailsTableBean = (OAAdvancedTableBean) webBean.findChildRecursive("SublineAdvTableRN");
    System.out.println("sublineDetailsTableBean::"+sublineDetailsTableBean);
    OATableFooterBean sublineTableFooterBean = (OATableFooterBean) sublineDetailsTableBean.getFooter();
    System.out.println("lineTableFooterBean::"+sublineTableFooterBean);
    if (sublineDetailsTableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM))
    && ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    System.out.println("Inside Add New Row Button Event for the Sub Lines");
    strValueParam = (String) pageContext.getParameter(VALUE_PARAM);
    System.out.println("strValueParam=>"+strValueParam);
    ViewLink vl = am.findViewLink("GEPSCSTaskLineToSublineVL1");
    System.out.println("View Link=>"+vl);
    if(vl != null)
    OAViewObject vo = (OAViewObject) vl.getSource();
    if(null != vo)
    GEPSCSTaskLineItemsVORowImpl voRow =
    (GEPSCSTaskLineItemsVORowImpl) vo.getCurrentRow();
    Number LineNo = voRow.getLineNo();
    System.out.println("Source Row Line No::"+LineNo);
    /*OAViewObject vo = (OAViewObject) am.findViewObject("GEPSCSTaskLineItemsVO1");
    GEPSCSTaskLineItemsVORowImpl voRow = (GEPSCSTaskLineItemsVORowImpl) vo.getCurrentRow();
    Number LineNo = voRow.getLineNo();
    System.out.println("Line No::"+LineNo);*/
    // Getting the LineNo as null
    /*int intRowCount = vo.getRowCount();
    if(intRowCount > 0)
    System.out.println("Sublines are already present");
    GEPSCSTaskLineItemsVORowImpl tasklineVORow =
    (GEPSCSTaskLineItemsVORowImpl)vo.getCurrentRow();
    Number lineNo = (Number) tasklineVORow.getLineNo();
    System.out.println("LineNo=>"+lineNo);
    Number lastLineDispSequence = null;
    // Method to set the display sequence
    //am.invokeMethod("createNewSublineRow");
    // create an enumerator*/
    OAInnerDataObjectEnumerator enum =
    new OAInnerDataObjectEnumerator(pageContext, sublineDetailsTableBean);
    while (enum.hasMoreElements())
    RowSet innerRowSet = (RowSet) enum.nextElement();
    // get all rows
    Row []rowsInRange = innerRowSet.getAllRowsInRange();
    intRowCount = rowsInRange.length;
    System.out.println("intRowCount=>"+intRowCount);
    if(intRowCount == 0)
    System.out.println("No Rows present");
    OARow newRow = (OARow) innerRowSet.createRow();
    // initialize value for some attribute and insert the row
    newRow.setAttribute("DisplaySequence", new Number(1));
    innerRowSet.insertRow(newRow);
    else if(intRowCount > 0)
    System.out.println("Rows are already present");
    Row nextRow = (Row) rowsInRange[intRowCount-1];
    lastLineDispSequence = (Number) nextRow.getAttribute("DisplaySequence");
    OARow newRow = (OARow) innerRowSet.createRow();
    // initialize value for some attribute and insert the row
    newRow.setAttribute("DisplaySequence", new Number(lastLineDispSequence.intValue()+1));
    innerRowSet.insertRow(newRow);
    break;
    When i try to fetch the Line No which is the primary ID of the Parent VO, it always returns me the LineNO of the first Row and not of the parent row for which i have clicked the Add new Subline button of the Child record
    Number LineNo = voRow.getLineNo();
    System.out.println("Source Row Line No::"+LineNo);
    Is there any way to fetch the primary ID of the row for which i have selected the Add new Subline button
    Thanks
    Raj Papdeja

  • Trying to automatically add a new row w/o mutating table error...

    I'm using Oracle 10g express. I'm trying to automatically add a new row with the same e_ID, (RDD + 6 months) as the updated row when RC is updated. I'm fairly new to Oracle, so I need some help on creating a trigger. If you need more details let me know. Thanks in advance.
    create table E
    e_id number(6,0) not null,
    constraint e_pk primary key(e_id)
    create Table ER
    e_Id Number(6,0) Not Null,
    SC Date,
    RDD Date,
    RC Date,
    Constraint ER_Fk Foreign Key(E_Id) References E(E_Id)
    );

    mookjais wrote:
    I'm using Oracle 10g express. I'm trying to automatically add a new row with the same e_ID, (RDD + 6 months) as the updated row when RC is updated. I'm fairly new to Oracle, so I need some help on creating a trigger. If you need more details let me know. Thanks in advance.
    create table E
    e_id number(6,0) not null,
    constraint e_pk primary key(e_id)
    create Table ER
    e_Id Number(6,0) Not Null,
    SC Date,
    RDD Date,
    RC Date,
    Constraint ER_Fk Foreign Key(E_Id) References E(E_Id)
    );Do you mean following(example)?
    create trigger after_insert_e
    after
      insert
    on  e /*This is table name*/
    referencing new as new old as old
    for each row
    begin
    insert into  ER(e_Id,SC,rdd,rc)
    values(:new.ed_id,sysdate,sysdate,sysdate);
    end;

  • How do you Copy a row to create a new row in the same table?

    Hi,
    We have a PurchaseOrderHeaderView object and on click of Copy Purchase Order we want to copy a row in PURCHASE_ORDER_HEADER table to create a new row. We don't want to copy the primary key only the remaining fields.
    Regards
    Madhuri

    If you use ADF BC, you can create a new row programatically via createRow and use a sequence to create the Id and use the "original" row (probably the current row in the view object) to copy the values from to newly created row. Then use insertRow and commit to create the copied row.
    Ronald

  • How to create new row in Adf uix table

    hi,
    I am using Jdev 10.1.2 , Can any body tell me how to insert new row in table ?
    Thanx

    Hi,
    try creating a createInsert action.
    Regards,
    Koen Verhulst

  • Commiting a new row to 2 separate tables on a single jspx page

    Hello all
    I have 2 tables in my jspx page. Table Employees as an ADF table, and table Departments as an adf form. They are related via a view link as a * to 1 relationship so the departments view is the detail of the employee view. This means that whenever I click in the employee table on a single row, whichever Dept ID that employee has is shown in the form, automatically.
    I have CreateInsert button, Delete and Commit buttons binded to the departments form, and another CreateInsert Delete and Commit binded to the Employees table. When I run the page in AppMod everything works fine and I can add a new row to the table Employees. However when I try to add a row into Departments the AppMod gives me this error message.
    Jun 15, 2010 1:46:58 PM oracle.jbo.jbotester.MainFrame main
    INFO: BC4J Tester started.
    Exception in thread "AWT-EventQueue-0" oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[1 ].
    at oracle.jbo.server.EntityCache.throwTooManyObjectsException(EntityCache.java:505)
    at oracle.jbo.server.EntityCache.handleDuplicateKey(EntityCache.java:513)
    at oracle.jbo.server.EntityCache.addForAltKey(EntityCache.java:870)
    at oracle.jbo.server.EntityCache.add(EntityCache.java:474)
    at oracle.jbo.server.EntityImpl.callCreate(EntityImpl.java:955)
    at oracle.jbo.server.ViewRowStorage.create(ViewRowStorage.java:1143)
    at oracle.jbo.server.ViewRowImpl.create(ViewRowImpl.java:428)
    at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:445)
    at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:4915)
    at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1843)
    at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:2368)
    at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:2409)
    at oracle.jbo.server.ViewRowSetImpl.createAndInitRow(ViewRowSetImpl.java:2374)
    at oracle.jbo.server.ViewObjectImpl.createAndInitRow(ViewObjectImpl.java:9684)
    at oracle.jbo.jbotester.NavigationBar.doInsertAction(NavigationBar.java:136)
    at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:109)
    at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:117)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    at java.awt.Component.processMouseEvent(Component.java:6263)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6028)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4630)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2475)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Jun 15, 2010 1:47:08 PM oracle.jbo.jbotester.MainFrame exit
    INFO: BC4J Tester exit code(0)
    Process exited with exit code 0.
    I realize this message means I have duplicate primary key rows but I do not understand why as they are seperate tables.
    So I turn to you, Oracle Oracles, for wisdom and guidance

    Well, you cannot do that in the detail->master way you are describing. It's easy to understand why you get the error:
    1). You have a detail->master link.
    2). When you click "new" to create a new department, you are doing so in the context of the link, which means that the department ID for the new record is created in the context of the currently selected employee.
    3). You now have 2 departments with the same primary key
    4). JBO-25013
    There are only 2 ways that I can think of to do this:
    1). Use a master->detail instead of a detail->master (I know this isn't how you want to do it, but...)
    2). In your original page, use a single VO that combines both employees and departments. When you click "new department" in the context of an employee, update the selected employee with the key of the new department.
    John

  • Add new row at top of table

    I searched, but my query may not have been structured to yeild results. In my table I would like to insert new rows at the top of the table. The only way I can think of right now would be getting the last row that isn't null and move the data from that row to the next increment. After that, count down by 2 and do the same over again until I get to row 0. There really isn't any particular data in my table that I could sort by so that isn't really an option.
    Is there something simple I am over-looking?

    Alrighty. And I guess it was insertRow() I was looking for the entire time, not addRow(). Ugh... need sleep.

  • Task to add new row and values to Table?

    Hi, I am new to SSIS, I have a table that I would like to capture daily currency conversion rates. In my Control Flow
    pane, I've been able to use a web service task to get a string value of the conversion rate pass it to an XML task, and connect it to at Data Flow Task. So now I'm not sure what to do from here. I would like to input the daily values into my table:
    [CurrencyID] [int] IDENTITY(1,1) NOT NULL,
    [CurrXDate] [datetime] NOT NULL,
    [Country] [nvarchar](50) NOT NULL,
    [CurrXRate] [float] NOT NULL,
    insert into tbl_CurrXrates
    (CurrXDate, Country, CurrXRate)
    values
    (getdate(), 'USD', @[User::ConversionRate])
    What data tasks and order would I use to add a new row to my table which I think would be a simple insert statement. Hope my
    question makes sense.

    You can put into a package variable and use as part of the insert statement via a SSIS expression to drive a Execute SQL Command to insert it or
    Have the value off the webservice dumped to a XML file and then consume it with XML Source which will allow the values to be inserted into the table (e.g. OLEDB Destination)
    Arthur
    MyBlog
    Twitter

Maybe you are looking for