Commit All or None.

Respected All,
I have a form with 3 Blocks.Say,
1-Master
2-First Detail
3-Second Detail
I want the user to do all the entries in Both Details , so that at the end i can validate all the entries which are interrelated,so can take decision to commit all or none.
The problem is that when i do Complete the the entries in " Second Detail " Block
for the First record of "First Detail" and then move to the Seond record of the "First Detail" ,without saving the record, the data of the "Second Detail" (for the first record of "First Detail") gets Clear.
I hope i explained ,If any confusion pls disucss.
Regards,
Muhammad Mohsin Zia

Al-Salamu Alikum Mohsen
then at the end will save all by a single commit. ------------------------------------------------------------------------
Key-commit Trigger will fire when u press the save button:
DECLARE
v_button NUMBER;
BEGIN
     COMMIT_FORM;
     CLEAR_MESSAGE;
     IF Form_Success THEN
     v_button:=SHOW_ALERT('ALERT_SAVE');
     END IF;
END ;
Hope it helps,
Regards,
Abdetu..

Similar Messages

  • Rollingback in JPA2, can I get an "all" or "none"?

    Hello -
    Sorry for multiple posting, this seems to be the right one now.
    Now, using JPA 2 and Eclipselink for the ORM management on NB7, I need to execute the following piece of code:
    My problem is that I don't think I am getting what I am promised from JPA 2 about transaction atomicity. So if I have a bunch of entities to be persisted or merged into the database, then I would have expected that if an error occurs in one statement, the whole lot is rolled back.
    Example: Suppose I want to add a new employee to an existing project. Suppose further that something goes wrong in the transaction that I am considering as all or none, and I simulate this by attempting to persist an already existing project (so I get a duplicate key type of exception). Here are sample snippets.
    // an EJB that does JPA persistence stuff
    @Stateless
    public class JPAManager implements Serializable {
    @PersistenceContext(unitName = "default")
    private EntityManager em;
    public void addEmpToProj(Employee e, Project p) {
    e.setProject(p);
    p.getEmployees().add(e);
    em.persist(e);
    em.persist(p)
    Now, the code in the caller looks like this:
    // A managed bean that calls the above JPAManager EJB every now and then
    @ManagedBean
    @ViewScoped
    public class CreateEntities implements Serializable {
    @EJB
    private JPAManager jpaManager;
    public void AddNewEmpToProg(Project p) {
    Employee e = new Employee();
    // e.setThis(), e.setThat(), ...
    boolean statusOk = true;
    try {
    jpaManager.addEmpToProj(e, p);
    } catch (Exception e) {
    statusOk = false;
    if (statusOk) {
    doThis();
    } else {
    doThat();
    Now, if both the project and the employee were new, all goes ok as expected. But if the project p already exists, then the employee is still persisted! And all that promise of rolling back the whole method's effect on the database is not granted. Some call this a feature, but, how does one disable that feature?
    I tried the above using a @Resource UserTransaction utx inside a managed bean (as opposed to inside an EJB) where the logic is tried between a utx.begin() and a utx.commit(), and the catch-clause contains the utx.rollback() but that didn't do it either.
    So, the question: how does one bundle a number of statements in a method such as addEmpToProj() for example to go all together, or rollback all together?
    Mohsen (hey, what happened to that tag that was there in the Sun days?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Multi-posted, at least twice more:
    JPA and rollingback
    JPA and rollingback
    This one is now locked.
    @O.P.
    It is bad forum etiquette to multi post.
    Where would you want your solution?
    How about every third word into each of the three threads?
    Why should anyone bother to provide an answer that you've already received elsewhere?
    In the future, do not do that, else you night just have every one of your crossposts summarily deleted because they contribute nothing to the forum knowledgebase.

  • I recently purchased Music Match, but all my non itunes music is on my ipad.  When i turn on music match in the settings screen on my ipad i get a message that says all my music will be erased.  How do I get music match to match what is there?

    I have all my music on my ipad and icloud.  I don't have itunes installed on a PC or MAC.  I recently purchased Music Match, but all my non itunes music is on my ipad.  When i turn on music match in the settings screen on my ipad i get a message that says all my music will be erased.  How do I get music match to match what is there rather than erase it? 

    Killerfinch wrote:
    My new yahoo account nestles comfortably in iCloud on the mine iPad.
    No, your Yahoo account is not in iCloud (which only handles iCloud mail), it is in Yahoo, and the Yahoo mail account is on your iPad.
    But the MacBook Pro will have none of it! I write this question now as I fear that I will be totally demented very soon and unable to formulate my thoughts clearly!
    Get the correct settings for your account from Yahoo and set it up manually.
    By the way, I also find the "password" issue problematical. It seems Apple want my Apple password rather than my eMail password. All very confusing.
    That would depend on what you are trying to do.

  • I want to be able to silence two out three email accounts I have linked to my iphone4s?  I can silence all or none....please help.

    I am trying to silence two of the three email accounts I have linked to my phone and can't seem to find a way. I can silence all or none?  I would be shocked if there was no solution to this problem?

    Don't think you can, it's all or nothing with email alerts.  You can make this suggestion to Apple here:
    http://www.apple.com/feedback/iphone.html.

  • TS3999 all my non-recurring appointments have been deleted from my iphone.  The are listed on my pc in outlook under icloud archives.  How do I get these appointments back on my phone

    All my non-recurring appointments have been deleted from my iphone.  They are stored in outlook 2010 under the archiveicloud calander.  How do I restore these appointments to my phone?  Thanks

    The pics are gone.  This is what a restore is.  You erased your iphone, reinstalled your software, then added back your settings from the date of the last backup.
    You should have imported your photos to your computer as you would with any digital pictures, before any restore or update.
    Sorry

  • I can browse the web but when I go to play video or you tube it will start stop over and over almost like it is buffering could this be the router all other non iPad devices work

    I can browse the web but when I go to play video or you tube it will start stop over and over almost like it is buffering could this be the router all other non iPad devices work

    How are you trying to play them, in the iTunes store or the Music and Videos apps ? Downloaded and synced music and videos should be in the Music and Videos apps, and you can stop content that is only in the cloud from showing in them via Settings > iTunes & App Store > Music and Videos 'off' (under the 'show all' heading).
    If you don't have your music and films/TV shows in those two apps then you should be able to download them into those apps via the Purchased tab in the iTunes store app.

  • Suddenly all my non-system apps disappear

    After I install some apps , they do not appear in the desktop. So I restart my iPhone. Now all the non-system disappear although they are 'open' in App Store. System is iOS 7.0.4, iPhone 5s

    Paulcb,
    Sorry about the delay getting back to you.  I stepped out.
    But right before I did, I managed to install a free app, which prompted me for my Apple ID, and after that all my non-Apple apps are running fine, again.
    Thanks for that helpful tip!
    Jim
    P.S.  I also think I have figured out WHY the problem arose in the first place.  And WHY when I first tried your suggestion (to install a free app - and this prompt the "re-authentication" of my Apple ID) it didn't work.
    I think it is explained by the fact that there momentarily wasn't a valid network link in place, and so the phone couldn't access the iTunes site and authenticate my ID.
    And I think the problem with the network link stemmed for the strange problem I saw with my Wi-Fi state.   Recall that I saw the STRANGE status (in the settings app) for Wi-Fi of :  "No WiFi".  I have NEVER seen that status before.  It doesn't mean "Not connected".  It means iOS doesn't even think the Marvell WiFi device exists.  Hmm. 
    Anyway, the workaround you suggested works fine.  Thanks.

  • How to use expression script to trip off all trailing non-numeric character

    Hi,
    I used JDev11.1.1.2.
    Now a field value like “7.5.3.10BQF”, “7.8.2.XFP”, and another dynamic LOV depends on this value to filter, so we want to trip off all trailing non-numeric characters (including whitespace and periods), for example to “7.5.3.10BQF”, we will filter LOV using "%7.5.3.10%",for "7.8.2.XFP", we will filter LOV using "%7.8.2%".
    But I don't know how to write groovy expression to implement this function.
    Any advice will be great help.
    thanks,
    zeroxin

    Hi,
    The third syntax you used is correct i.e.
    DW_CRF.PKG_LPS_CRF_LOAD_TRANS.sp_load_target(''LOAD_CRF'', ''LOAD_LOAN_TRAN'', CURRENT_TIMESTAMP, NULL);
    Alternatively you can use
    DW_CRF.PKG_LPS_CRF_LOAD_TRANS.sp_load_target(''LOAD_CRF'', ''LOAD_LOAN_TRAN'', CURRENT_TIMESTAMP, '''');
    all the other calls give syntax errors that are expected. The third call is giving an application error which you will need to look into (maybe starting at "DW_CRF.PKG_LPS_CRF_LOAD_TRANS", line 958). One thing that may help clarify things is if you were to switch to naming your parameters e.g. target_name=>''LOAD_CRF'' since that helps clarify exactly what parameter is called with which value.
    Hope this helps,
    Ravi.

  • Can i uninstall all the non 2014 versions of the software (Ex. Photoshop, Premiere ect.)? Wondering since i don't want to break any programs.

    Id like to know if i can uninstall all the non 2014 versions of adobe products. Id rather know before i try as i don't want to break some programs but i need to free up some pc space.

    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

  • All-or-None Download

    I'm pretty sure this issue has been raised before so I guess anyone can help me.
    I've noticed that iTunes-U tracks download in an 'all-or-none' fashion: either they download entirely or if the network slows down, you lose whatever content has been partially downloaded. This differs markedly from Podcasts, which iTunes is able to record partial tracks for later resumption of the download session. With most Podcasts, I can stop the download session and be able to continue later, but not with ITunes-U tracks; I have to start all over again from the beginning. I'd like to know how to fix this, or to know if I should tell the site-hosts about this (universities or educational institutions).
    Kind regards.

    Intractable,
    Kind of in a rush today, but I promised a rationale for why iTunes U is working as intended…why what you get is really more of a feature and less of a bug.
    Consider a site that is private and has content that should only be viewed by people who first authenticate to a portal website. For example, at your school, you might want to limit the content for a particular course to the people who are enrolled in it. If you could interrupt a download, and later restart it, then it would, conceivably, be possible to get access to content that you are no longer entitled to have. A public (non-iTunes U) podcast is different. People who podcast that way have absolutely no control over who may access content and for how long that access can persist. That is why such sessions do not time-out.
    iTunes U sessions have fixed durations in order to protect your content…the content that you want to keep private. The downside is, of course, that if you cannot get content after a fixed time, you will have to reestablish an authenticated iTunes U session. This is similar in concept to what a lot of banking websites do…if you let any web session go unattended for five minutes or so, the bank's website invalidates your web session so-as-to protect your account.

  • Lost all my non purchased music

    My old hard drive is no longer working so I have no back-up/ITunes.  In trying to get to my ipod_control folder I've lost all my non-purchased music.  Not sure how that happened.  The non-purchased music is not visible.  When looking at the IP Touch settings I see there there is only 58M out of 7G available which leads me to believe that the music is still on the IP Touch.  Where do I go from here?
    thanks in advance....

    Several things: What do you mean by "trying to get to my ipod_control folder"? Are you talking about accessing the file system of the iPhone itself? FWIW, this is a very bad idea and can end up hosing your phone permanently.
    There are several utilities out there that will allow you to (try) and extract the music from your phone. Google is your friend on this one. With the exception of purchased media, media sync is one way. Computer>iPhone. There is no sanctioned method of getting other media files off of the iPhone and onto a computer.
    As far as another back-up scheme goes, the iPhone is NOT a backup device. You can't back up after the fact. Keeping a backup of the data on your computer, including your iTunes library, is the sane thing to do and basic common sense is to back up your data BEFORE you lose it, not afterward.

  • Hi All. I reluctantly upgraded to IOS 7 last night and now cannot access my home WIFI, all other non Apple devices are fine. I have reset, it will not allow me to 'forget this network', doesnt show the option. I have turned on and off

    Hi All, I reluctantly upgraded to IOS 7.1.1 on my IPAD last night , reluctant as every upgrade which promises fixes which dont impact me causes problems that do , which I fix via this community. Today I can no longer access my WIFI at home, my non Apple devices all work fine.I have tried all the online suggestions I can find for this, reset facgtory settings, it will not allow me to 'forget this network', I try to reconnect and it asks for my password which I know is correct and it says it cannot access my network. It can access an unsecured one I believe, but that is not ideal. Any fresh suggestions would be really welcome, please. Many thanks

    Thanks so much for your reply, yes I did and that has not worked either . A friend has suggested re installing upgrade, so may try that .

  • How to COMMIT all open transactions?

    Hi,
    I have 10.2.0.4 on Windows.
    I need to run a critical month-end DataPump export of 1 schema. Easy enough. The system will be in-use by the end users when this runs. Not many maybe 10 users will be connected and it is not a very large db - 10 GB.
    My concern is that there may be a few uncommitted transactions hanging around that may not be written to the dump file. If I run COMMIT; that only commits for my session, right? How can I force all open transactions for all users to be committed just before I run the DP export?
    -OR- is DataPump so sophisticated that it will auto. commit them first?
    Thanks for your ideas. John

    user629010 wrote:
    Thanks, Justin.
    This is a 24 hour system so I don't want to interrupt the users unless there is no other option.
    Yes the RMAN backups are complete but I just need the export for purposes of refreshing my reporting database at each month-end. So I will use impdp to do the import. This is the way we have been doing it for awhile.
    We only recently became aware of some out-of-balance issues (money) and we thought uncommitted transactions may be partly responsible.
    I know the application code controls when the commit takes place but, in general, is this something you would be concerned with?
    Another question if I may: how can I see how many open transactions there are at a given time?
    Thanks, JohnIf you think about what constitutes a "transaction" (and financial balances are the textbook example of such) then you realize that it is absolutely the responsibility of the transaction to decide when to commit. An outside process (like an evil DBA) can safely force a rollback of an incomplete transaction (say, by killing the session), but to force a COMMIT? Suppose the session had only updated 2 of 4 tables that needed to be updated to consitute a complete transaction and guarantee your account balances? How do you suppose your "force" will know what the other two table updates are?
    Maybe you could explain in more detail how you intend to use this export, particularly in relation to where it was you found the out of balance issues..

  • Master/Detail - master in table,details in pop-up per row, commit all at 1

    Somewhat similar to the table as master with a clickable row to another page w/ the details, I'm trying the following:
    Master (Parent) - View Object based on multitable view, therefore, not updateable. This is presented in a table control.
    Column pushbutton (bound to setCurrentRowWithKeyValue and showPopUpBehavior) opens a pop-up where a detail (child) table is presented in a table(grid). In addition, I'd like the option to be able to save all changes at once - meaning user can click on row 1, enter values in pop-up, then row 2, enter values in pop-up for that row, etc.. then commit after.
    Detail is linked to master via view link.
    Pop-up opens, then comes back w/ blank table. Then closes soon after. In jdeveloper, log says:
    SEVERE: The original view root was not set.Ideas? possible?
    jdeveloper 11.1.1.1.0 / ADF RC

    In researching this problem before my post I searched the OTN discussion groups for "Currency String" and nothing of relevance came up. I posted my question and after Frank got involved, in an attempt to review my post, I searched for "CurrencyString" and the following post came up: currencyString in JSP-page based on a sql-only ViewObject
    This post contained the solution that fixed my problem. Now I can move forward with my ADF development. Thanks Frank and Duncan Mills, I will never again forget the importance of key attributes.

  • How to Hide "Select All | Select None" options for tableSelectMany?

    I don't want to display this - is there a way to hide or not render these options? thanks

    Hi Gaurav,
    I have added detail region in Advanced table components and if i use standard Multiselection feature the select column will be displayed first in the table but here the framework by default displays select all and select none links.
    I though of adding a data column in advance table and add a item of type MessageCheckbox but since i have detail region the custom select column is displaying next to detail column but they want to display select column in the beginning.
    Hope ur clear of the requirement.
    Thanks
    Babu

Maybe you are looking for

  • My itunes won't play my tv show that used to play?

    i am trying to watch season 5 of 90210 and it was working perfectly fine earlier today. but when my computer died and i turned it back on it said that it couldn't play it because it has to be played on a computer that supports HD or something like th

  • HT3226 How can I safely clean my Macbook Pro's keyboard?

    I see that there is a bit of dust under my keys and I would like to clean it off, but I do not know how to do it safely - meaning without damaging my Macbook. I would appreciate any help. Thank you.

  • What's the best Firewire Audio/ midi interface for LE

    Am looking for an interface that is clean, has 8 audio inputs combined with MIDI interface. What are the best options?

  • Line Graph will be broken on the different lines issue

    Hi, While I create a line graph which Horizontal Axis is date, if just has one line then the line is a continuous line from start date to end date, but if have more than 2 lines and if these lines do not have values on one same date then these lines

  • PowerPC Applications Won't Open

    When I go to open a PowerPC application it won't open. I used to be able to open them but recently I can't. Is it possible that Rosseta was removed by accident, if so how can I fix this? Thanks for your help!!! MacBookPro Intel Core 2 Duo   Mac OS X