Records added into the DB when deleting row in List

I have a list with an add button at the bottom. Every entry has a delete button on the left.
Whenever I create new entries and then delete some rows, the newly created entries are automatically saved.
How can I solve this? Deleting calls getOADBTransaction.commit(), is there a way to isolate deleting form saving?

Hi,
When do some operations on Records from OAF page it maintains a list of state of entity, and on the basis of this state it performs the DML operations like insert/Update and Delete.
Your case is no exception if you are inserting some records OAF will mark these for insertion, deleted records will marked for deletion and on commit data will be posted to DB accordingly.
Still if you don't want to save the data, explictly change the VO Row status as Initialize(same as we do while inserting new record STSTUS_INITIALIZED) then OAF will not consider this row for insertion.
Hope this will give you some clue.
Regards,
Reetesh Sharma

Similar Messages

  • The record is not added into the table.

    Hi,
    I am new to Hibernate.
    I have contact.hbm.xml
    <?xml version="1.0"?>
    <!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
    <hibernate-mapping>
    <class name="Contact" table="CONTACT">
    <id name="id" type="string" column="ID" >
    <generator class="assigned"/>
    </id>
    <property name="firstName">
    <column name="FIRSTNAME" />
    </property>
    <property name="lastName">
    <column name="LASTNAME"/>
    </property>
    <property name="email">
    <column name="EMAIL"/>
    </property>
    </class>
    </hibernate-mapping>
    And I have hibernate.cfg.xml
    <?xml version='1.0' encoding='utf-8'?>
    <!DOCTYPE hibernate-configuration PUBLIC
    "-//Hibernate/Hibernate Configuration DTD//EN"
    "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
    <hibernate-configuration>
    <session-factory>
    <property name="hibernate.connection.driver_class">sun.jdbc.odbc.JdbcOdbcDriver</property>
    <property name="hibernate.connection.url">jdbc:odbc:test</property>
    <property name="hibernate.connection.username"></property>
    <property name="hibernate.connection.password"></property>
    <property name="hibernate.connection.pool_size">10</property>
    <property name="show_sql">true</property>
    <!-- <property name="dialect">org.hibernate.dialect.MySQLDialect</property> -->
    <property name="dialect">com.hxtt.support.hibernate.HxttAccessDialect</property>
    <property name="hibernate.hbm2ddl.auto">update</property>
    <!-- Mapping files -->
    <mapping resource="contact.hbm.xml"/>
    </session-factory>
    </hibernate-configuration>
    And my client program to add a record into the table is as follows..
    File f=new File("..src/com/hibernateaction/chapter01/hello/hibernate.cfg.xml");
    Configuration cfg = new Configuration().addFile(f);
    Iterator itr=cfg.getClassMappings();
    while(itr.hasNext())
         System.out.println("V="+itr.next());
    SessionFactory sessionFactory = cfg.configure().buildSessionFactory();
    session =sessionFactory.openSession();
    System.out.println("Inserting Record");
    Contact contact = new Contact();
    contact.setId("3");
    contact.setFirstName("Senniappan");
    contact.setLastName("Gounder");
    contact.setEmail("[email protected]");
    session.save(contact);
    System.out.println("Done");
    session.flush();
    session.close();
    The output displayed as "Done" and "Hibernate: insert into CONTACT (FIRSTNAME, LASTNAME, EMAIL, ID) values (?, ?, ?, ?) ".
    But there is no record is added into the DB.
    Kindly help in this regards.

    I used transaction.commit() it workd fine. Thanks Balu.
    My query is, is it necessary to start a transaction to add a single row into the table? Could u brief about this implementation?

  • How to add one item when another item get added into the iProcurement Cart

    Hi,
    Please help me to do the following customization in iProcurement Cart:
    Requirement-1:
    1. Login to iProcurement and add one Item ITEM1 to Cart.
    2. Make another Item ITEM2 mandatory or get added automatically when Item ITEM1 gets added into the iProcurement Cart
    OR
    Requirement-2:
    1. Login to iProcurement and add one Item ITEM1 to Cart.
    2. Go to Cart and click Checkout.
    3. While checking out Item ITEM1, we need some validation to make another Item ITEM2 mandatory or get added automatically with Item ITEM1.
    Thanks in Advance,
    SB

    Hi tiff512:
    The way is:
    SAP NetWeaver > General Settings > Check Units of Measurement.
    The help documentation says the following in relation to the creation of new units of measure:
    "If required, define new units of measurement according to the international system of units (SI) with the menu function Unit of meaurement -> Create.
    Here you have to make make specifications for:
    Display (including a descriptive Units of measurement text)
    Conversion (not applicable to units of measurement without dimensions)
    Data exchange (EDI) (optional)
    Application parameters"
    I hope it is helpful to you.
    Regards,
    David

  • HT1349 when I start my macbook it shows STARTUP DISK FULL, and I cannot do anything else, it doesnt let me get into the computer to delete any programs,,,, What should I do ?

    when I start my macbook it shows STARTUP DISK FULL, and I cannot do anything else, it doesnt let me get into the computer to delete any programs,,,, What should I do ?

    Try starting in Safe mode which does not load all the software that is used in a regular boot. It also runs a disk check. After booting in safe mode transfer or trash stuff you don't really need so as to free up disk space. Be sure to hold the shift key down continously till a progress bar shows on the screen.
    http://support.apple.com/kb/ht1564
    http://support.apple.com/kb/ht1455

  • No CATS record exists for the long text in row 4

    Hi,
    When we are tyring to upload the time sheets of tha employees in se38 usinga  customized program, from Non sap to sap,  for a few employees we are getting an erro like No CATS record exists for the long text in row 4,  where are we supposed to verifiy, what causes this error.
    Please assist.
    Thanks,
    Shilpa.

    Your first step should be in your input file.  What is on the fourth line?
    Look into the Blueprint Specifications of your Custom Program for the parameters of that input file.

  • Issue with the new COPA field added into the BBSEG Structure

    Hello All,
    I have an issue with the new COPA field added into the BBSEG Structure.
    I think its added becuase of test Operationa Conern Created by somebody.
    Can you please let me know how to remove that structure from BBSEG Structure.
    Thanks
    vsr

    Hi Monohar & Ankur,
      Thanks for your answers..
      main issue is suddenly new field called RKE_COPA_KOSTL has  been added to the BBESG Structure..
      Because of this RFBIBL00 Upload is not working. I heard that  this new fields will come by generating Operating Concerns by Transaction KEA0.I found an operating concern which was created as a test in developemt system..
      But I am not sure how to delete that operating concern.Even i am not sure if we delete the Operating Concern ..is it going to delete that field in BBESG Structure or not??
    Please advise me..
    Thanks
    sathi

  • Events invitations are note added into the Calendar

    I have a back end and front end calendar 6.3 environment with convergence connecting to the front end. When [email protected] invite the [email protected] to an event only an email notification of the event is sent to the userB, the invitation is not added into the userB calendar, in order to accept, decline or cancel the invitation.
    For this environment i have both iwc and uwc active, but no matter what interface I use the behavior is the same.
    My question is:
    1. In a back end and front end calendar environment how should sent the emails notifications?
    2. Why userB can´t see the invitation userA sent to him?
    3. Where and how I can verifity the invitation is sent? in the back end / front end?
    I saw the thread http://forums.sun.com/thread.jspa?threadID=5432165. But the users have all the icsExtendedUserPrefs attributes. I also set the variables user.cal.enablenotify and user.cal.enableinvitenotify but still not getting the invitation within the calendar.
    Products version:
    Sun Convergence 1.0-12.01 (built January 16 2010 - 21:38:59)
    Sun Java(tm) System Calendar Server 6.3-20.01 (built Oct 23 2009)
    Sun Java(tm) System Messaging Server 7.3-11.01 64bit (built Sep 1 2009)
    libimta.so 7.3-11.01 64bit (built 19:54:45, Sep 1 2009)

    Duplicate thread, refer to:
    http://forums.sun.com/thread.jspa?threadID=5437550

  • I have seven(7) podcasts on my iPhone 4 that iTunes will not delete. iTunes copies them from the phone to the library and will not  delete them from the phone when deleted from the library.

    I have seven(7) podcasts on my iPhone 4 that iTunes will not delete. iTunes copies them from the phone to the library and will not delete them from the phone when deleted from the library. I have replayed the podcasts over and over and they still won't delete. Podcasts are WSJ Tech briefings.

    This happens to several of my podcasts whenever an updated iOS comes out. You can delete the episode directly from the phone by swiping it from left to right. That seems to fix the issue (they drop off the phone and dont reappear on iTunes). It's as if iTunes stops tracking the play count for some shows.
    Hope this helps!

  • I've found no way to sort.  For example, if I type the group "Rush" into the search bar, I get a list of songs recorded by rush and literally thousands of other songs and artists with the word rush in them. There is; however, no way to sort the results.

    I've found no way to sort search results in itunes.  For example, if I type the group "Rush" into the search bar, I get a list of songs recorded by rush and literally thousands of other songs and artists with the word rush in them. There is; however, no way to sort the results. 

    In the Search box click on the black Arrow and UNTICK the Search Entire Library.
    Then the Search results in Songs view will be displayed in the main Grid and you can sort them by clicking on the column headers.
    You can also turn on the column browser which can help with filtering

  • Macbook pro retina display doesn't work occasionally. Random restarts. I can remote into the computer when display isn't working correctly

    I have some issue with my 2012 Macbook Pro Retina. The screen intermittently decides to just not work. Sometimes on startup i hear the start up noise but the screen doesn't turn on. I am able to remote into the computer when the screen doesn't work. I can't seem to find any rhyme or reason as to when it works and when it doesn't. I've reset the PRAM and SMC sometimes that will bring the screen back sometimes not.
    Any ideas?

    You can try the Apple Hardware test, not definitive by any means, especially intermittent problems, but it is a start.
    AHT  http://support.apple.com/kb/HT1509
    I think i would take it in for a free  'Apple Service Diagnostics' test
    Genius reservation http://www.apple.com/retail/geniusbar/
    on-line https://getsupport.apple.com/GetproductgroupList.action
    check warranty https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • If I import audio books into the music section of itunes it lists the books as albums and all the chapters as tracks fine when I sync them to my ipod classic, but not if I import them as audiobooks, any ideas please?

    If I import audio books into the music section of itunes it lists the books as albums and all the chapters as tracks fine when I sync them to my ipod classic, but not if I import them as audiobooks and then sync them, any ideas please?

    If you import the audiobook as an audiobook to your iTunes Library, it will be listed in the Books section of your Library. You may need to turn on Books in order to see them. If you cannot see the File/Edit... etc. menu, use CTRL B on your keyboard to make that menu bar appear. Then go to Edit/Preferences>Books and put a tick in the box.
    But, if the imported audiobook shows up in the Music section of your iTunes Library, highglight the files (in iTunes) and select File/Get Info/Options/Media Kind>Audiobook. These files will now transfer to the Books section of iTunes.
    Once on an iPod Classic, look under the Audiobooks menu. Again, you may need to change the settings in the Settings menus, in order to have the Audiobooks option shown on the Main Menu and/or the Music Menu.

  • Record Management. Search record by objects added into the record

    Hi all,
    We would like to navigate from the gos (generic object service) of a  business object to the record where this object is added. In principle the object will be added just to one record and it will be manually added from the organizer in the specific record. The point is that when someone is at the business object and at the gos press the record button, will navegate to the record.
    Our problem is how without adding any specific field can we know the record where this object was previously manually added.
    Any ideas? I was thinking of updating the attributes of the record (for example reference) after the object is added in the organizer, with the value of the object but I don´t know if there is a exit o service I could use when the object is added, the could give me the value of the object and also how to get the record values in order to update its attributes.
    Apart from this, can anyone tell me, in the definition of a record model, for an object model node, what the relationship  is used for? or where to find documentation, because I hope I could set a relationship with the record and the object that aftewards could be useful for my problem but when clicking there it just appear an screen with Available relationship _ Other objects but I can set any object o parameter and also in a record object I don´t find anything related with this.
    Best regards and thanks for the help

    Dear Pablo,
    Try this...
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0c5d6a5-71f7-2c10-d6ac-c476b82a9c87
    or
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40be7649-72f7-2c10-03b9-c85d56eff2e5
    You can find more cookbooks in here...
    SAP Netweaver Folder Management (ex-Records Management) [original link is broken]
    Best Regards,
    Pragya

  • I type in the search box; suggestions appear underneath; when i click on one of them, they all disappear, and nothing is added into the search box.

    When I type a phrase into the Google search window, a number of suggestions automatically appear underneath as I am typing. However, when I click on one of these suggestions, there is no change to what is in the search window, and nothing further happens. I have tried every option under Tools|Privacy, and I've tried everything on Google options but nothing works. Normally, when I click on one of the offered suggestions it would appear in full in the search window. What do I do?

    Do you have that problem when running in the Firefox SafeMode?<br/> ''A troubleshooting mode.''<br />
    1.You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut. <br />
    2. Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut to open it again.''
    If not, see this: <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • The mechanism of Delete Row and Unto in program BCALV_GRID_EDIT

    Hi Experts,
        Users need to Delete/Insert/Change a row in OO ALV report and the row can be Undo when the undo button is press. I find the example program in my system and finally get a program BCALV_GRID_EDIT. Most functions in this program  meet my requirement. But I want to know what is the mechanism of the Delete/Insert and Undo function. For example, if I have delete a row in the screen, and then I press the undo button, the deleted row will be restored in the screen. But I want to know where(Internal table or soemwhere) the deleted row is stored after I press the Delete Row button, and where I can retrieve the deleted row after I press the Undo button. Please help~~
    Thanks in advance.
    Best regards
    Joe

    Hi
    1. first remove the ENDSELECT..use INTO table itab or INTO CORRESPONDING fields, Since you are joining the  more tables this will take lot of time.
    2. You are just using two fields from LIKP as selection screen  fields to fetch the so much data.
    see the table linkings apartfrom KUNNR between the tables
    LIKP-VBELN = LIPS-VBELN
    LIPS-VGBEL = VBAK-VBELN and  LIPS-VGPOS = VBAP-POSNR
    and
    VBRP-AUBEL = VBAK-VBELN and VBRP-AUPOS = VBAP-POSNR and
    VBRP-VGBEL = LIKP-VBELN  and VBRP-VGPOS = LIPS-POSNR
    use the above links and code again.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Page not found error when deleting row in multirow form

    I have a tabular form and when I try to delete one or more rows from the tabular section, I get the confirmation box pop-up window and then this error:
    "The requested URL /apex/wwv_flow.accept was not found on this server"
    I checked other postings and found instructions to generate a trace so here is what I think shows the error :
    wwv_flow.accept(P_FLOW_ID=>:P_FLOW_ID,P_FLOW_STEP_ID=>:P_FLOW_STEP_ID,P_INSTANCE=>:P_INSTANCE,P_PAGE_SUBMISSION_ID=>:P_PAGE_SUBMISSION_ID,P_REQUEST=>:P_REQUEST,P_ARG_NAMES=>:P_ARG_NAMES,P_T01=>:P_T01,P_T02=>:P_T02,P_T03=>:P_T03,P_T05=>:P_T05,P_T06=>:P_T06,P_T07=>:P_T07,P_T08=>:P_T08,P_T09=>:P_T09,F04=>:F04,F05=>:F05,F08=>F08,F06=>:F06,F07=>:F07,F02=>:F02,F03=>:F03,FCS=>:FCS,F01=>:F01,P_MD5_CHECKSUM=>:P_MD5_CHECKSUM);
    if (wpg_docload.is_file_download) then
    rc__ := 1;
    wpg_docload.get_download_file(:doc_info);
    null;
    null;
    null;
    commit;
    else
    rc__ := 0;
    null;
    null;
    null;
    commit;
    owa.get_page(:data__,:ndata__);
    end if;
    end if;
    :rc__ := rc__;
    :db_proc_time__ := dbms_utility.get_time - start_time__;
    end;
    Embedded PL/SQL Gateway: /apex/wwv_flow.accept HTTP-404 ORA-06550: line 6, column 44:
    PLS-00103: Encountered the symbol "WITH" when expecting one of the following:
    := . ( @ % ; not null range default character
    Embedded PL/SQL Gateway: (wpu.c,626) longjumping back to the beginning
    Embedded PL/SQL Gateway: (wpu.c,488) cleaning up before longjmp
    Embedded PL/SQL Gateway: (wpu.c,492) doing a rollback
    Embedded PL/SQL Gateway: (wpcs.c, 76) Executed 'rollback' (rc=0)
    Any ideas why this is happening?
    Thanks

    I kept looking into the trace file and a before the text in the initial posting I found this:
    Embedded PL/SQL Gateway: (wppr.c,1021) lcase(procname): wwv_flow.accept
    Embedded PL/SQL Gateway: (wppr.c,1302) The CALL block: len=2881, bind_count=37
    declare
    rc__ number;
    start_time__ binary_integer;
    simple_list__ owa_util.vc_arr;
    complex_list__ owa_util.vc_arr;
    F08 FLOWS_030000.WWV_FLOW_GLOBAL.VC_ARR2t with the difference of 11 months apart.^M
    2 For some of them calculate the AWT that includeFLOWS_030000.WWV_FLOW_GLOBAL.VC_ARR2tas setup.^M
    For some of them include the AWt monotribuista code to be calculated.^M
    3. Some oFLOWS_030000.WWV_FLOW_GLOBAL.VC_ARR2led.^M
    The error says "ORA-06550: line 6, column 44: PLS-00103: Encountered the symbol "WITH" "
    so it points to the following line in the code:
    "F08 FLOWS_030000.WWV_FLOW_GLOBAL.VC_ARR2t with the difference of 11 months apart.^M"
    So... can anyone give me a clue why the code is built this way (looks like the variable definition is truncated)
    Thanks in advance for your help!

Maybe you are looking for

  • Where can I get detailed documentat​ion on the 'IVA' vision vi's created by NI Vision Assistant

    I use the NI Vision Assistant a lot.  Usually I ask it to create a vi automatically from the script.  However, the resulting vi contains several 'IVA' vi's that are completely undocumented (from what I can see).   Where can I get more info on these?

  • Help window title in IE7

    Hello, I have a webhelp project that is called using csh from my app. When I use this app on a system with IE 6, the Help window title is correct - http://onlinehelp.mycompany.com - My Help Window Title - Microsoft Internet Explorer When I use it on

  • Creating Interactive Tabs in Fireworks and can they be saved to PDF?

    Hi, I want to make simple tabs in Fireworks like this:  http://dojocampus.org/content/wp-content/uploads/2008/02/tabs.gif I did try to make these by using the 'Hotspot' and 'Swap Image' feature (switch out the different buttons/states) - but when I w

  • D20 now only available with Windows and SATA...??

    As of this morning, the Lenovo Thinkstation D20 on the US site is only available with Windows and SATA hard drives.  It used to have SAS drives and DOS available. They may just be low on inventory, or maybe... ? FWIW JohnV474 Solved! Go to Solution.

  • HT201365 Deleting open apps

    I used to be able to double click and delete all my open apps to save my battery, but can't seem to do that with the new iOS7 program. Does anyone know about this?