Suggestions for Automatic Commit/Rollback

Consider the following scenario:
A list page displays all of the records currently stored in a table. A user clicks on a link on the list page that fires the Create event and takes them to another page for entering the details of the new record. The user decides they made a mistake and clicks their browser's Back button to abort the process. There is now a new, unpopulated record on the list page.
What is the best way to handle this situation if the user cannot be concerned with manual Commits or Rollbacks? Committing after the new record details are submitted seems okay, but rolling back every time the list page is loaded renders the First/Previous/Next/Last navigation buttons useless.
Thanks,
Ryan

Create Action in ADF JSP bindings is meant to create and insert a new row into collection (and if the dataControl in action is ADFBC, then it also marks the row as temporary/initialized as indicated above).
To achieve the backbutton support, for such cases in ADF apps, we recommend using a cancel operation that is bound to 'delete' Action on the iterator which 'removes' the newly created temporary row from the collection so that it's not visible in the collection at all.
Using browser back button after create action will result in the temporary new row in the collection as noted above.
This was designed as per numerous feedback on OTN for our previous JSP solution for creating new rows where a number of teams complained about duplicate row creation on a create row action. You could still achieve this as suggested above by creating a new and initialized row and then copying it's values on the form and then removing the row and then recreating another new row on submit. Note that that requires extra copying of all display values etc and in ADF we decided to avoid that route.

Similar Messages

  • Automatic commit/rollback when debugging

    Hi,
    A colleague of mine who I asked to use SQL Developer instead of TOAD for debugging, was very surprised to found his debug session to have committed at the end. TOAD doesn't. He lost a lot of time undoing the unintended changes.
    He made me remember I went to the same thing when I first used sqldev.
    Instead of automatically assuming you want to commit or rollback, this really should be asked on successful completion. Or set a preference: ask, commit, or rollback.
    Anyone who agrees, please vote on the added feature request: http://htmldb.oracle.com/pls/otn/f?p=42626:39:1493919074214847::NO::P39_ID:28041
    Thanks,
    K.

    It's not really a bug, but a nasty feature.
    You can only vote on the mentioned request to add weight for future implementation.
    Until then you can put a breakpoint before completion, and when halted there, stop execution with the red stop button.
    Have fun,
    K.

  • Suggestions for automatically restarting a stale internet connection

    I'm having to use my box from work at the moment but my setup has a funny habit of losing its internet connectivity.  This is easily resolved by repairing the connection in Windows or restarting the relevant network profile.
    The problem is once I am at work the only notification that my interwebs has died is when I can't connect for a remote session and obviously without remote access I can't restart the network profile so I'm stuck for the day.
    I've had a quick google and there are a few simple bash script via cron solutions:
    http://www.linuxscrew.com/2009/04/02/ti … ilability/
    http://www.linuxforums.org/forum/redhat … ll-up.html
    Slightly more adventurous approach here:
    http://www.unix.com/shell-programming-s … ivity.html
    I can create the script and the cron myself no probs but first I wondered:
    a) has anyone here done this already and wants to share their scripts? (rather than reinvent the wheel)
    b) is there a more recognized way of doing this in Arch? (could netcfg support some sort of keep alive)
    c) there's a few linux tools out there that do this but most seem distro/de specific or are gui only and require you to be at the machine - anyone implementing one with workarounds for Arch?
    d) ping or wget seems an unfriendly way of checking the connection - do people have any alternative ideas?
    Last edited by dtw (2010-01-18 17:35:37)

    rsamurti wrote:My only worry is about the stability of the systems which are upgraded so frequently. Can anybody give their feedback regarding this?
    Most of time everything will be fine. But it's highly recommended to read news on archlinux.org.
    If there are some packages broken in Current/Extra/Community, they are ususlly fixed quickly. Usually only some X stuff or drivers glitches or packages not yet rebuilded with newest lib - are the most common issues. But this doesn't happen often, and is not critical (your system will not die because of this ).
    Even Testing and Unstable works fine for me most of time.
    With rolling release system you get small updates often, which is much better than 500M of updates with next Ubuntu/SuSE/Mandriva/Fedora/etc. release, for example. Because it's very hard to find what package breaks things in such a horde of updated packages.
    rsamurti wrote:If some thing goes wrong after upgrade, how to revert back to the previous working state of the system?
    Downgrade packages

  • Commit/Rollback Buttons Diabled for Pinned Tables?

    When I pin a table, the commit/rollback buttons become disabled. Is there a reason for that, or is it a bug?
    Java(TM) Platform     1.5.0_12
    Oracle IDE     1.5.0.52.03

    Finally got some time to let it return. 454 tables takes takes between 9-10 min. I also noticed if I cancel it, SQLDeveloper becomes pretty unresponsive....probably for the remaining 9-10 minutes, but I've been too busy to double check.
    As for the Commit/Rollback buttons becoming disabled in 1.5.0, I'm not able to get an exact sequence, it "just seems to start happening". It happens when I have multiple tables pinned. Changes to one will let me commit/rollback, but changes to another will not. The window with the disabled commit/rollback buttons sometimes will not even mark a rownum as changed if it has been updated.
    The refresh button still prompts you to save since changes were made. That works as a commit/rollback if the buttons are disabled.

  • Commit/Rollback in Stored Procedures

    I'm just confused about how this setup works. I understand that ODP.NET is in autocommit mode by default, and any INSERT, UPDATE, or DELETE commands are committed automatically. If they fail for any reason, obviously the row(s) are not modified.
    But how about sprocs? Do they autocommit as well? If so how are rollbacks handled? Do I need to explicitly create a transaction and commit/rollback? Is it best practice to commit/rollback in the .NET transaction or in the sproc itself?
    As you can see, I'm just really looking for info on how these two interact. Any info you can provide will be extremely helpful.
    Thanks!

    Hello,
    When ODP.NET is operating in auto-commit mode (the default as you note) this applies to PL/SQL calls as well.
    I am of the opinion that the client should be in charge of a transaction and I do not commit/rollback inside PL/SQL code (unless of course I am writing PL/SQL that is the client of other PL/SQL code).
    Here's a bit from Tom Kyte on the subject:
    http://tkyte.blogspot.com/2007/03/dreaded-others-then-null-strikes-again.html
    Just search for the text "Who control the commit?" on that page.
    Regards,
    Mark

  • JDBC adapter Commit/Rollback

    Hi Guys, I got a question regarding JDBC adapter auto commit. Hopefully you guys can help me :). Until now, when my XI calling a storedprocedure in ORACLE using JDBC adapter, it will automatically commit the calling. When i see my configuration for the JDBC adapter receiver, the checkbox for Enable Autocommit is thicked. My question is, is there anyway that we handle the commit or rollback ourself. How we can handle that? Is it from the BPM or just from the Configuration.
    Thank you very much in advance for all replies, advices and answer. Cheers guys..

    Hi
    Try this out
    You can programmatically set auto commit to true as in follows
    // Load the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    // Connect to the database
    // You can put a database hostname after the @ sign in the connection URL.
    Connection conn =
          DriverManager.getConnection ("jdbc:oracle:oci:@", "scott", "tiger");
    // It's faster when auto commit is off
    <b>conn.setAutoCommit (true); </b>
    // Create a Statement
    Statement stmt = conn.createStatement ();
    regards
    krishna

  • I use different languages in my daily activities, when typing other than English Mac does not recognize them, is there anyway can Mac stop suggesting or automatically correcting me?

    I use different languages in my daily activities, when typing other than English Mac does not recognize them, is there anyway can Mac stop suggesting or automatically correcting me?

    Is this a problem with the computer or with the word processor? MS Word for example seems to think its grammar and spelling are better than mine - they are not. You have to go into MS Word preferences and uncheck all the useless "help" it wants to provide.

  • Scheduling specific time of day for automatic software updates

    How can one schedule a specific time of day (i.e. between 11:01 pm to 5.59 am when I have unlimited download availability) for an iMac to search for automatic software updates? System preferences only offer frequency, but no time option. If it is possible to schedule a specific time, will invoking the feature override the sleep function, wake up the machine and perform the software update and then let the machine go back to "sleep?" Thank you for all your help.

    to clarify barney's suggestion, the following terminal command will download all available updates and put them in your Downloads folder.
    softwareupdate -d --all
    so what you need to do is this.
    1. turn off automatic software update in software update system preferences.
    2. make a cron or a launch daemon to run the above terminal command periodically at the time of your choosing. to make a launch daemon I recommend using lingon http://tuppis.com/lingon/
    The daemon will only run if the computer is not asleep at the scheduled time so you might want to set to to wake/start shortly before that. this is done in system preferences->energy saver->schedule.
    to install the updates once they are downloaded double-click on the pkg files and follow the instructions.

  • BAPI for automatic Pr creation witth multiple files from excel sheet

    I have written a programm  for automatic PR creation  with the help of bapi , where its picks data from excel sheet and makes PR .It is picking excel files from one folder(Files) for PR creation and moving to another folder(Files sucess).
    now the problem is if Folder (Files) contains one excel sheet ,PR is created fine , but if the Folder(Files) have multiple excel sheet ,its is creating 1st PR right, but next PR's contains all the line item of 1st PR , 2nd PR and so on .can anyone suggest me where is the problem in codes.
    types : begin of x_file ,
            key1(10),
            pur_grp(4),
            maktx(40),
            plant(4) ,
            req(10),
            s_qty(13),
            wbs(24),
            gl(10),
            trackno(10),
            supl(4),
            deladd(255).
    types : end of x_file .
      data : str5 type char10.
      data : mm type char2.
      data : yyyy type char4.
      data : dd type char2.
      data : str9 type char10.
      data : str6 type char10.
      data : month type char2.
      data : year type char4.
      year = sy-datum+0(4).
      month = sy-datum+4(2).
      dd = sy-datum+6(2).
      yyyy = sy-datum+0(4).
      mm = sy-datum+4(2).
      dd = sy-datum+6(2).
      clear str6 .
      clear str5.
      concatenate  dd'.' month '.' year into str5 .
      concatenate  yyyy mm dd into str6 .
    DATA : file type rlgrap-filename .
    data : it_file type table of x_file .
    data : wa_file type x_file .
    data : it_header type table of x_file .
    data : wa_header type x_file .
    *&  Internal Table For Define Row and Coloum Postion
    data: col_start type i value 1 ,
          row_start type i value 2,
          col_end type i value 256 ,
          row_end type i value 65000 .
    *&  Internal Table For Retrieve  Data From Excel
    *data: excel_bdcdata like kcde_cells occurs 0 with header line.
    *data: excel_bdcdata1 like kcde_cells occurs 0 with header line.
    data: excel_bdcdata like ALSMEX_TABLINE occurs 0 with header line.
    data: excel_bdcdata1 like ALSMEX_TABLINE occurs 0 with header line.
    data: it_index type i.
    DATA : IT_INDEX1 TYPE I.
    *&  Define Field Symbol
    field-symbols: <fs> .
    data :   bdcdata like bdcdata    occurs 0 with header line.
    data :   messtab like bdcmsgcoll occurs 0 with header line.
    data : req_items type table of bapiebanc .
    data : wa_req_items type bapiebanc .
    data : req_acc_asg type table of bapiebkn.
    data : wa_req_acc_asg type bapiebkn.
    DATA : RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE .
    *data : return type table of     bapireturn.
    *data : wa_return type bapireturn .
    data : number type ebeln .
    *****************************MOVE FILES******************************
    data : xsource type string .
    data : xdestin type string .
    data : destin1 type string .
    data : destin2 type string .
    DATA : DEST1 TYPE STRING.
    DATA : DEST11 TYPE STRING.
    DATA : DEST2 TYPE STRING.
    DATA : DEST22 TYPE STRING.
    data : sou_dir_name like SALFILE-LONGNAME.
    data : tar_dir_name like SALFILE-LONGNAME.
    data : tar_dir_name1 like SALFILE-LONGNAME.
    data : sou_filename like EDI_PATH-PTHNAM .
    data : tar_filename like EDI_PATH-PTHNAM .
    data : filename1  type string .
    data : tar_filename1 like EDI_PATH-PTHNAM .
    data : file_itab like SALFLDIR occurs 0 with header line.
    data : wa_file_itab like SALFLDIR.
    data : file_count type i .
    data : dir_count type i.
    data : dir_table like sdokpath occurs 0 with header line.
    data : file_table like SDOKPATH occurs 0 with header line.
    data : wa_file_table like sdokpath.
    data : strr type string ,
           str1 type string ,
           str2 type string ,
           str3 type string .
    DATA : PA_VAL TYPE CHAR1.
    sou_dir_name = 'D:\barcodes\files\'.
    tar_dir_name = 'D:\barcodes\files-success\'.
        "success folder.
    CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
      EXPORTING
        DIRECTORY  = sou_dir_name
        FILTER     = '.'
      IMPORTING
        FILE_COUNT = file_count
        DIR_COUNT  = dir_count
      TABLES
        FILE_TABLE = file_table
        DIR_TABLE  = dir_table
      EXCEPTIONS
        CNTL_ERROR = 1
        OTHERS     = 2.
    IF SY-SUBRC <> 0.
    ENDIF.
    loop at file_table into wa_file_table.
    clear  :  strr , str1 , str2 , str3 .
      strr = wa_file_table-PATHNAME .
      concatenate sou_dir_name strr into str1 .
      concatenate tar_dir_name strr into str2 . " success
      concatenate tar_dir_name1 strr into str3 .         " failed
    FILE = STR1 .
    *start-of-selection.
    *&  Function For Retrieve Data From Excel
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        filename                      = FILE
        i_begin_col                   = col_start
        i_begin_row                   = row_start
        i_end_col                     = col_end
        i_end_row                     = row_end
      tables
        intern                        = excel_bdcdata
    EXCEPTIONS
       INCONSISTENT_PARAMETERS       = 1
       UPLOAD_OLE                    = 2
       OTHERS                        = 3.
      IF sy-subrc NE 0.
    WRITE : / 'File Error'.
    EXIT.
    ENDIF.
      loop at excel_bdcdata.
        translate excel_bdcdata to upper case .
        move excel_bdcdata-col to it_index.
        assign component it_index of  structure  wa_file to <fs> .
        move excel_bdcdata-value to <fs>.
        at end of row.
          append wa_file to it_file .
            clear wa_file.
        endat.
      endloop.
    sort it_file by key1. "pur_grp maktx plant  .
    it_header[] = it_file[].
    delete adjacent duplicates from it_header comparing key1 pur_grp maktx
    plant .
    data : h_item(5) type n .
    data : h_pack(10) type n .
    data : line_no(5) type n .
    data : ln_no(5) type n .
    loop at it_header into wa_header .
    ln_no = 1.
    h_item = h_item + 10.
    h_pack = h_pack + 1.
    wa_req_items-preq_item = h_item .
    wa_req_items-doc_type = 'BOM'.
    wa_req_items-pur_group = wa_header-pur_grp .
    wa_req_items-MATERIAL = wa_header-maktx .
    wa_req_items-plant = wa_header-plant .
    wa_req_items-pckg_no =  h_pack .
    wa_req_items-deliv_date = str6 .
    wa_req_items-item_cat = '0'.
    wa_req_items-acctasscat = 'P'.
    *wa_req_items-distrib = '2' .
    **wa_req_items-gr_ind = 'X'.
    wa_req_items-ir_ind = '2'.
    wa_req_items-purch_org = 'TISL' .
    wa_req_items-QUANTITY =  wa_header-s_qty.
    wa_req_items-PREQ_NAME =  wa_header-req.
    wa_req_items-SUPPL_PLNT = wa_header-supl.
    wa_req_items-trackingno = wa_header-trackno.
    append wa_req_items to req_items .
    clear wa_req_items.
    wa_req_acc_asg-preq_item = h_item .
    wa_req_acc_asg-g_l_acct = wa_file-gl .
    WA_req_acc_asg-wbs_elem  = wa_header-wbs .
    append wa_req_acc_asg to req_acc_asg .
    clear wa_req_acc_asg.
    h_pack = h_pack + 1  .
    endloop.
    clear ln_no .
    ***BREAK-POINT.
    *& BAPI FUNCTION
    call function 'BAPI_REQUISITION_CREATE'
    importing
       number                               = number
      tables
        requisition_items                   = req_items
       requisition_account_assignment       = req_acc_asg
       return                               = return .

    Can someone please give me sol........

  • Cannot display the screen of the macbook on TV. OS is Lion 10.7.2. Connection to the TV is over HDMI cable.  TV shows only the backgroud picture of Lion. Do you have any suggestions for help ?

    Cannot display the screen of my macbook on TV. OS is Lion 10.7.2. The Macbook is connected to the TV is over HDMI cable.  TV shows only the backgroud picture of the Lion OS and reacts even to mission control. Do you have any suggestions for help ?

    You have the display set in Extended Desktop mode. In System Preferences>Display on the MacBook screen there should be an Arrangement tab when you have the MacBook hooked up to the TV and both screens working. When you click the Arrangement tab do you see two monitors side by side? One of them will have a Menu Bar at the top. Just click on the Menu Bar and drag it to the second monitor. That will make the second monitor your main screen. You can now use your MacBook in Clamshell Mode with a wired or Bluetooth keyboard and mouse.  http://support.apple.com/kb/HT3131 When you disconnect from the TV your Menu Bar will automatically change back to the MacBook.
    Or if you want to work on the MacBook screen while showing it on a TV you can check the Mirror Display box on the lower left hand side of the Arrangement tab under the two monitors box.

  • How can I submit a suggestion for autocorrect changes in Brazilian Portuguese?, How can I submit a suggestion for autocorrect changes in Brazilian Portuguese?

    I know it might sound a little stupid, but there's an autocorrect change that EVERY iPhone owner in Brazil hates and it's, in my point of view, so easy to solve in a next software update.
    In Brazil we use a lot the word "bora" as a slang, meaning "let's go". It's not a real word, is a short for "vamos embora", but everyone uses it. the pronblem is all apple devices autocorrect it automatically from "bora" to "Borá", which the only meaning in Portuguese is "the name of the smallest municipality in Brazil (around 800 citizens)". So obviously, NOBODY will EVER be talking about "Borá" in their conversations. It would be very fullfilling to type "bora" and not even see the suggestion for a change, nor the autocorrection itself. I know it might sound stupid, but there are even Facebook topics talking about it, everybody already HATES the poor tiny village because of that, LOL...Hope someday it can be fixed by Apple.
    Tks!

    You can submit feedback at http://www.apple.com/feedback
    and you can turn off Autocorrect altogether.  Settings => General => Keyboard => Toggle off Auto-Correction.  This will obviously turn off all of the autocorrections.  I don't know of a way to edit the Auto-correct dictionary.

  • Problem for automatic reservation created for PM01 order in PM

    Hi,
    I have a problem. Generally from Maintenance Order type PM01 under Order Category 30, when we give some materials requirement, SAP automatically generate reservation for those materials and take the GL as Consumable Item (Actually it is determined from OBYC transaction with a combination of GBB (A/c Key) and VBR (A/c Modifier).
    But in my case, that GL has to be changed depending on what perpose we are using the material. But Manual reservation is not allowed for the order category 30 and no GL can be changed for automatic reservation.
    Can you suggest any way-out so that we can give our desired GL No. for the reservation for Maintenance order (say Order type PM01 under category 30 which is SAP internal).
    Thanks in advance,
    Satadal

    Hi Friend!
    Try exploring the sam while post the mat. document thro' MIGO using FI validations..OB28..
    Let leave the PM reservation.
    RAO

  • Nokia C3-01, suggestions for next S/W update

    I am using Nokia C3-01 from 2 weeks. It is nice phone with touch and type combination. I would like to add some suggestions for next software update.
    1.   Brightness control
    2.  When writing a text message, tapping # change only alphabet from capital to lower case, but missing numeric. I have to press 3-4 times to write numeric in text. Also have no 'option' to insert numeric. If I change other language (not English, which is automatic), then I can get numeric by tapping #. Nokia, please care it for next firmware update.
    Solved!
    Go to Solution.

    You can do a long press on the keys to get the numeric value instead of pressing it three to four times. This works for all Nokia since years, if they have keys  
    Or do a long press on the # key. This gives you the option to activate numeric input. Also a quite old feature for Nokia phones.

  • Suggestion for future release

    Where should I post suggestions for future releases of SQL Developer or/and Data Modeler?
    Please give me a link.
    Thanx,
    Chris
    One suggestion for Data Modeler:
    In the "Model Properties" of a relational model, there should be a "scripts" folder like in the "Table Properties".
    In this script I'd like to generate some global statements for the DDL generation,
    for example:
    before (=begin of generated script): set define off; alter session set nls_numeric_characters='.,'; nls-config
    after (=end of generated script): commit; (when table inserts are used and no ddl-statement is following; otherwise you have to use 'commit' in each table-script; After the last table create (ddl-) statement there is no implicit 'commit')
    I know, that I can edit the generated script to add my statements, but if you often generate code there is a good change to forget to change the script afterwards.

    Hi,
    You can submit any feature requests at Oracle SQL Developer Exchange - https://apex.oracle.com/pls/apex/f?p=43135:1:2266866887402592:::::

  • Change vendor evaluation with new scores for automatic criteria

    Hi,
    I would like to delete actual vendor evaluations and revaluate my vendors with new scores for the automatic criteria on time delivery.
    Using the program RMEVALDL doesn't work.
    Does somebody have a suggestion please ??
    Thanks in advance,
    Kind regards

    hi,
    Points scores for automatic subcriteria: The intervals for the automatic subcriteria used must be maintained, otherwise nonsensical scores may result. In addition to the F1 documentation, you should take account of SAP Note 51054. The limit values -99.9% and 99.9% must be maintained. Similarly, the invisible limit 0 must be observed.
    Variance             Score
    -99.9%               1
    +99.9%              100
    A variance of 0% brings the vendor 100 points, whereas a variance of -1% results in a score of 1 point.
    check the following link.
    http://wiki.sdn.sap.com/wiki/display/ERPSCM/KnowledgePaperVendor+Evaluation
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MMISVE/MMISVE.pdf
    regards
    sumit simran

Maybe you are looking for