With both ApplyMRU and ApplyMRD, does one commit before the other runs?

This is related to another thread at How to stop insert of new row in tabular form if it's also being deleted I wanted to ask this question separately, however, for broader understanding.
I have a tabular form configured so that if a user clicks on "Delete Checked Rows", it fires the ApplyMRU process and then the ApplyMRD process. (This is mainly so that other edits are not lost when deleting some rows -- see the other thread for more on this use case.)
Both processes run, as I can see edits and deletions happening when the page returns. But it appears as though the ApplyMRU process doesn't actually commit its changes to the session before ApplyMRD runs, because it won't operate on the same record. Is that true?
Here's why I think that:
1) User clicks "Add Another Row" to insert a new row.
2) User enters some information in that row.
3) User then checks that row (say they changed their mind and don't want to enter it after all), and clicks on "Delete Checked Names".
The new row gets inserted (when ApplyMRU fires), but not deleted (when ApplyMRD fires). Other checked rows, however, do delete. This reproduces in both ApEx 3.2 and in ApEx 4.0, with the new, client-side addRow() replacing the old implementation.
Is this expected behavior?

Nicolette - ah, I think you nailed it. The PK is being created in the trigger. So it's not in the form when it is submitted, but is created after ApplyMRU runs. There doesn't appear to be any way to return that information back to the session state, since it could span multiple rows.
It hadn't occurred to me that the delete would be using the PK, but of course, that now seems obvious in hindsight.
I've found a fix for this -- it seems a bit circuitous, and if anyone knows of a better way, I'd be interested in hearing it.
Here's what I did:
1) Create a validation that looks for rows that are checked (marked for deletion) AND do not have a PK set (just added to form), and override the value of some other, non-PK field to some dummy value. You can't override the PK field, or it results in a "Current version of data in database has changed" error. This also handles the case where some non-nullable field is null.
2) Add a process that runs after ApplyMRD (when MRD button is pressed), and deletes all records with this dummy value, as well as any auditing table entries with that dummy value, if applicable.
Ironically, this solution is almost identical to the one I described in the other thread, and I might not have even run into this issue, had I not mistakenly coded my validation to fire when the request is MUTLIROWDELETE. Oops. :)
Thanks for the help!

Similar Messages

  • I am using Mail 5.3 with two separate gmail addresses. One is personal the other is business. When I send emails from the business address, any auto-replies I get COME TO THE PERSONAL INBOX. I imagine that this is a setting? Please help!

    I am using Mail 5.3 with two separate gmail addresses.
    One is personal the other is business.
    When I send emails from the BUSINESS address, any auto-replies/out of office notices I get come to my PERSONAL INBOX.
    I imagine that this is a setting? Please help!

    Edit the SMTP server list. Add a new one for the business account. Put the correct password and information for it. Give it a description so you will know which server is which. Mke sure the correct server is highlighted in the account selected and check the box to use only that server for that account. Do that for the other account also.

  • Load one scene before the other

    I have two scenes, one acts as a preloader.  It contains a flv video that should play before the other scene is loaded.  I'm having a hard time trying to figure out how to specify this logic on the timeline.
    For example, I want scene 1 to play until frame 20 and scene 2 to start at scene 21.  How can this be accomplished?

    I do have the scenes set up in that order, however they do not play one after the other.  It just jumps to the main scene.
    I reviewed the tutorial and it is great, however my preloader contains a flv video.  I want this short video to play to the end before the second (main) scene is loaded.

  • Why do I have cc and cc2014 both in my list of apps in creative cloud? Can I delete the older and keep the newer or does one depend on the other?

    I have a list of both CC and CC2014 in all my programs on my Creative Cloud 'dashboard'.
    Do I need to keep them all, do they depend on each other, or can I delete the CC and just keep 2014?
    PS: I have never yet found the CSS panel where you can choose different settings in Dreamweaver CC and CC2014 - it looks entirely different from CS6. Can you tell me where to locate that or is it gone?

    http://blogs.adobe.com/jkost/2014/06/installing-the-2014-release-of-creative-cloud.html
    This messages says (at least some) CC 2014 programs use NEW plugins https://forums.adobe.com/thread/1499663
    -so do not uninstall the older CC programs if you use plugins in your programs until you are sure you have plugins that work in CC2014
    If you are sure you don't need the old CC programs
    -http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall
    -read reply #3 about the ORDER of uninstalling & installing https://forums.adobe.com/thread/1242671
    For program specific questions you need to ask in that forum
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Can i upgrade my laptop's graphic card? and how does this upgrading affect the other functions?

    is it possible to upgrade my HP Split 13-m111TU x2 PC's graphic card? how does one go about this upgrading process? does it affect the other functions and features of the laptop? 

    Hi:
    The graphics adapter in your model cannot be upgraded.

  • When i have 2 firefox widows open and i close one of them the other window asks if i am sure abt closing it too

    I upgraded to firefox 4 and that started since then
    when i happen to have 2 window open and i close 1 the other main one i have open with tabs ask me if i was sure i want to quit it too
    and it asks 2 times

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Recent update on PS elements 12, I can no longer drag and drop from one photo to the other.

    Hello I hope someone can help, I am using Adobe photoshop elements 12, I am using a PC with windows 8.1.
    any ways I recently was prompted that I had a update for PE12, as i always do i followed the exact instructions after the restart as prompted. I was no longer able to drag on photo to another photo, i like to use a blank page design a background and then choose a couple photos to collage or group together on one photo but now i cant drag the selected/croped or even a whole picture any one else have this probleum i am on chat with an adobe professional but even they seem stumped, maybe someone can help.

    It's a bug introduced with the 12.1 update when your images are in Tabbed view. Dragging from one to another doesn't shift focus to the second image so you can't drop it. Switch to Tiled view (Windows> Images> Tile) and drag & drop will work.
    If Tile is greyed out you need to switch on Floating Documents.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • Colors get desaturated when picked and transferred from one file to the other! Why?

    I used the color picker tool to choose colors from one file and fill it in another file. The color shows as desaturated when the other file is active. Both files are on the exact same settings, but I don't know what is happening. I reset the tools. But nothing.

    Are you sure that mode (RGB, CMYK, etc) and assigned color profiles is the same on both files?
    May be you turn on Proof Privew (Ctrl-Y) on one of the files.
    PS. my english is poor )

  • Windows will not let me remove a bad version of the Firefox program so I can install a good one. I have an infected/malfunctioning Firefox. I have scanned with both Malbytes and SAS. I cannot remove the program so I can add a good version.

    I received a trojan malware. I first scanned with Malwarebytes. Then downloaded the Super Antispyware Portable Scanner and scanned with it. I want to remove the once infected Firefox and install a new one, but when I click "Remove" in the Add/Remove program, it will not proceed.
    How do I remove the once infected Firefox so I can install a new one?

    Take a look at:
    http://kb.mozillazine.org/Uninstalling_firefox
    but you must delete the malware too.
    thank you

  • XSLT List View Web part with Inline Editing changing value for one field changes the other lookup field

    Hi
    It's a bit of a weird one. In an XSLT List View web part when Inline editing is enabled if I change the date column, it changes the lookup field column as well. This behavior only occurs if the lookup list has more than 20 entries. Below 20 and we are
    OK.
    Let me explain by example:
    MileStones List - Having more than 20 items
    Tasks List - having a lookup to the Title field from MileStones list. Also having a due date field.
    Simple web part page with one XSLT List View web part for Tasks having inline editing enabled.
    When I edit the first record's due date and press enter (which saves the changes and moves onto next record) and change the due date on second record without even touching the MileStone field. Press enter to commit changes and you see the milestone changing
    on first record!
    The wierd thing is that if the MileStone list has less than 20 items all works as expected.
    Any pointers will be appreciated
    Thanks

    Hi,
    This is a known limitation when working with complex fields like Lookup field.
    A workaround is that we can avoid using the inline edit feature when there are
    complex fields in a list.
    You can take a look at this KB from Microsoft Support to get more details:
    http://support.microsoft.com/kb/2600186/en-us
    A similar thread for your reference:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/3d369611-ee79-4b5c-86bb-c0f3878cd746/standard-list-view-with-inline-editing-lookup-column-copies-preceding-or-following-items-related?forum=sharepointgeneralprevious
    Thanks
    Patrick Liang
    TechNet Community Support

  • HT5527 If I have both Mac OSX for laptop and desktop, and iPhones/iPads with OS 5 and later, does a single purchase on one of them cover all of them?

    If I have both Mac OSX for laptop and desktop, and iPhones/iPads with OS 5 and later, does a single purchase to expand iCloud on one of the devices apply to all of them?

    Yes, it's icloud's storage you will be expanding.  All devices logged into an account will be able to use that storage.

  • In Creative Cloud, does the $9.99/month Individual Photography plan come with BOTH Lightroom and Photoshop CC?

    In Creative Cloud, does the $9.99/month Individual Photography plan come with BOTH Lightroom and Photoshop CC?  It is not very clear on the home page.  It shows both and mentions both, but doesn't specifically say BOTH come with the monthly $9.99/month plan.  Can somebody clarify?

    Special Photography Plan
    http://helpx.adobe.com/photoshop/kb/differences-photoshop-creative-cloud-photography.html

  • I have recently bought a second I phone4 and have the same apple ID on both of them, strangely I noticed the messages sent from one phone appearing the other one along with any pictures I sent from one of my Iphones. Is it possible to see the same msgs.

    I have recently bought a second I phone4 and have the same apple ID on both of them, strangely I noticed the messages sent from one phone appearing the other one along with any pictures I sent from one of my Iphones. Is it possible to see the same msgs.

    You need to setup different Receive At addresses for iMessage.
    If you don't want the same pics on each, turn off PhotoStream.
    User Guide

  • I have both Reader 10.1.8 and 9 on my I-mac.  Shouldn't 9 be deleted and how does one do it?

    I have both Reader 10.1.8 and 9 on my I-mac.  Shouldn't 9 be deleted and how does one do it?  I keep ignoring messages to update 9 to 9.55 as I've already got 10.1.8.

    Use AppZapper to remove 9 and all associated files (it's a free trial).

  • Device with both RS232 and TCPIP

    Gurus,
    I'm writing a driver for a new instrument I designed.  It has an RS232 port and an internal RS232<>Wifi module from Roving Networks.  I wrote the RS232 vi's using VISA.  Now I'm trying to figure the best way to handle both types of comms within one vi.  So far I added my TCP address into MAX, it shows up in the list of VISA's.  
    I put in a boolean switch on the panel (select TCPIP or RS232) and a CASE in the code to switch between initializing RS232/TCPIP.  Looks sloppy though...  It keeps crashing on a VISA READ ("lost comms"?) even though the init works fines with no errors, but I'll try to debug that..
    I'm a HW guy creating drivers, don't know all the "fun" stuff you guys do 
    1 - What is the best practive way to implement a dual-comms driver?
    2 - Does any PC I install this driver on have to have MAX on it (to configure the TCPIP socket?
    3 - Can anyone share an init / write & get data vi's please who has done this?  My device only has 4 values to read/write, so very simple.
    Thanks!!!!
    Streve

    You can format the VISA resource name directly allowing you to communicate using VISA using either the RS-232 or TCP connection. The piece of your code that will need to care about this is the initialization. Everything down stream will simply use VISA read or write. If you don't know the exact size of the returned data or you don't have a delimiter for your messages a method to read unknown sizes of data is to read a single byte. This read will use a longer timeout. Once a single character is read read chunks of data (some reasonable size) but use a much shorter timeout. The logic here is that there will be a break between messages. The shorter timeout should be less than the expected interval between messages.
    Since you will be using both serial and TCP communications don't use the Bytes At Port method in VISA. This only applies to the serial connection and therefore your general read/write VIs will have to have logic to differentient behavior based on the connection type. You should avoid doing this and limit that to the initialization only.
    I have implemented several variotions of a generic communication interface library. The most recent is LVOOP. I am not at liberty to post these however. But it is very doable.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Maybe you are looking for

  • Can't edit video information in iTunes

    Title says it all .... The file is NOT locked however it doesn't say I am the owner of it which is puzzling. Any suggestions? Thanks

  • How to switch between apps in mission control shortcut key

    I open two apps in my macbook, how can i select the app without clicking on it?.I know that f3 > mission control and then click, but i want to switch between apps with keyboard shortcut.Thanks in advance for your help.( I am runnig lion).

  • Sinit, a small static sysv-style init with services

    So yeah, one more init implementation. Because no way my systems will be running systemd. https://github.com/arsv/sinit (tarball) Key features: * Runlevels for process management * Starting and stopping individual processes manually: "telinit stop ht

  • Air 3.7 (android)  javascript issue in stagewebview

    Hi I have simple javascript code runing in stagewebview: //  javascript atob() is used for  base64 decoding. var serializeObject = JSON.parse(atob("eyJjYWxsQmFjayI6IltTV1ZDYWxsQmFja11pbml0SlMiLCJtZXRob2QiOiJpbml0SlMiLCJh cmd1bWVudHMiOltdfQ==")); aler

  • Auto Update Prompt

    We're using Windows 7 in Server 2008 AD. We keep getting the update prompt. I have GPO set up with mms.cfg to be sent to user's machine, with these settings in it: AutoUpdateDisable=0 SilentAutoUpdateEnable=1 AutoUpdateInterval=0 I want to auto updat