Why is my  CLEAR_BLOCK(no_validate) not committing to the database?

What I need is when the alert button 1 is selected fo to the detail block(ADM) and just delete everything for the current master id. When I click on the button it deletes for a split second and all the data comes back.Quite confused..
IF Id_Null(al_id) THEN
Message('Alert does not exist');
RAISE Form_Trigger_Failure;
ELSE
al_button := Show_Alert(al_id);
IF al_button = ALERT_BUTTON1 THEN
     :global.cl_blk := 'Y';
     go_block('ADM');
     CLEAR_BLOCK(no_validate);
     synchronize;
     go_item('adm.dci_name');
     execute_query;
else
          :global.cl_blk := 'N';
GO_ITEM('AM.MAPPING_LEVEL');
END IF;
END IF;

Why is my CLEAR_BLOCK(no_validate) not committing to the database?Better read the Clear_Block on-line help. I think you are mistaking the No_Validate parameter with the Do_Commit parameter.
The No_Validate parameter "*+Form Builder flushes the current block without validating the changes, committing the changes, or prompting the end user.+*"
With No_Validate, your changes are discarded, and NOT committed.

Similar Messages

  • TopLink cached object changed are not commited to the database

    Hello,
    I'm using TopLink 10 and I have a writing issue with a use case:
    1. I read an obect using TopLink that is in the IdentityMap
    2. Using JSF this object is edited throught a web form.
    3. I give the modified object to the data layer and try to modify inside a unit of work:
    UnitOfWork uow = session.acquireUnitOfWork();
    //laspEtapeDef comes from JSF and has been modfied previously
    LaspEtapeDef laspEtapeDefClone = uow.readObject( laspEtapeDef );
    //I update the clone field
    laspEtapeDefClone.setDescription(laspEtapeDef.getDescription());
    uow.commit();4. I use again the same object to display it once modified.
    The object is modified in the cache but the modified fields are never commited to the database. This code works only if I disable the cache.
    So, I've modified my JSF form to send the fields instead of modifying directly the object.
    My question: Is there a way to commit changes mades in an cached object?
    I've found the following section in the documentation, that explain the problem but doesn't gives the solution:
    http://docs.oracle.com/cd/E14571_01/web.1111/b32441/uowadv.htm#CACGDJJH
    Any idea?

    How are you reading in the object initially? The problem is likely that you are modifying an object from the session cache. When you then read in the object from the uow, it uses the object in the session cache as the back up. So there will not appear to be any changes to persist to the database.
    You will need to make a copy of the object for modification, or use the copy from the unitofwork to make the changes instead of working directly on the object in the session. Disabling the cache means there is no copy in the session cache to use as a back up, so the uow read has to build an object from the database.
    Best Regards,
    Chris

  • Trigger changes are not committing to the database

    I have 9iAS and 9i DB both on my laptop.
    I am having a problem in which a trigger run off a WHEN_BUTTON_PRESSED function is not committing the changes to the database. In the trigger I have:
    1 record insert into table A.
    1 record update to table B.
    1 record insert into table C.
    1 delete from table D.
    None of the data is related.
    I have tried various combinations of the below to get the changes to commit:
    POST;
    COMMIT_FORM;
    Exit_Form(NO_COMMIT, NO_ROLLBACK);
    MESSAGE('Got past COMMIT');
    COMMIT;
    CLEAR_FORM(NO_COMMIT);
    ENTER_QUERY;     
    I am getting varying amounts of "FRM: 40508 Oracle Error: Unable to INSERT record" statements. Even so, many times the form would act as if the changes had been properly applied. But when I did a separate DB verification, I would see that the changes are not being committed. Also, most of the time the changes would also be reflected in the calling form queries, but when I exit, all changes are rolled back no matter how many commit stmts are in the trigger.
    I have finally gotten the form to do what I want to do (the 4 steps noted above), but I had to add a FORMS_DDL('COMMIT'); stmt and I am still getting a FRM 40508, but at least the changes are appearing in the db.
    Any ideas on why so many troubles in getting the changes to commit??? I have spent a ton of hours trying "what ifs" to see what might work. Also, this trigger is the only real "code" in the forms.
    Kim

    Brett -
    You're probably right about the intention, but this is a place where people can come and share styles, ideas, and coding tricks, I don't understand why someone would say that. Additionally, I had a professor who was a complete momo that said that all the time (consequently, his lax attitude towards teaching crippled the IS program where I graduated and most likely will cause it to no longer be available). It's a personal peeve of mine, just to let you know where I was coming from.
    Secondly, the problem I'm having may have to do with what you said, however I can't be sure. To give a better description of my scenerio, I created a form that allows the user to load information about an employee by querying a SSN. Most of this information is for display only. Six fields are available to be updated and I wrote a DML UPDATE statement that I placed inside a WHEN-BUTTON-PRESSED trigger. However, these changes won't be written to the DB because Forms is attempting to write my entire datablock, instead of just following the specified DML statements. I'm at a loss as to why this would happen, but for simplicity's sake, I would listen to ideas of how to suppress this from happening so only my statements are used when updating the DB. If you can help, thank you, if not, then thank you for your time.
    Steve

  • Why GWt suggest box is not working in the latest versions of Firefox ? It was working only in Firefox 3 and not other versions. could you please assist in this regards.,

    Why GWt suggest box is not working in the latest versions of Firefox ?
    It was working only in Firefox 3 and not other versions. could you please assist in this regards.,

    jbren wrote:
    I repeatedly have problems with playback on my STB's. Go thru all the motions, inhouse agent, fix multi room dvr problems. Unplug unit, unplug dvr, etc. etc. etc.  The DVR'd show will play on the DVR but not on the STB's. What's up with that?
    Sorry to hear the auto fix suggested early did not fix your problem. So we can get more information from you, I have copied your post to our private support board. Please refer all correspondences to there from here on out. You can easily get to the private support one of two ways. In the email you signed up for the forums with, you will receive a link to click on. Make sure you are already signed into the forums before clicking on this link. Another way of getting there is by clicking on your username anywhere you see it in the forums. This brings you to your account profile. Scroll down to the section labeled "My Support Cases" . In there you will see the link to your case.
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • HT1212 I have no idea why suddenly my iPhone5 will not move past the Password screen; also, a voice describes each button I touch, and ends with "screen locked" (not "phone locked").

    I have no idea why my iPhone5 suddenly will not move past the PW screen; a "voice" identifies each button touched (the Slide button, for example) or the PW buttons, and then ends with "screen locked" (not phone locked).

    I believe you have Voice Over on:
    You have to tap, then double-tap to select the numbers to enter your passcode.
    Then:
    Press Home.
    Tap Settings. Then double-tap Settings.
    Tap General. Then double-tap General.
    Use three fingers on the screen to scroll to Accessibility.
    Tap Accessibility. Then double-tap Accessibility.
    Tap VoiceOver. Then double-tap VoiceOver.
    Tap "On" next to VoiceOver. Then double-tap "On" to turn it off.

  • Why Safari 6.0 will not auto complete the password ?

    Why Safari 6.0 will not auto complete the password ? even when the option is selected in autofill tab, and the user-password are listed in the password tab ?
    It used to work fine before I upgraded to mountain lion.
      Tks

    Same problem for me since upgrading to ML.  Safari remembers autofills for some passwords but not others.  For example my web mail password was no longer auto filled.  Checked in the keychain list and all the info was there. Therefore I deleted this and tried again - but Safari did not offer to remember the password.  Than ran an old script I had that is designed to "Removed autocomplete=off from 0 forms and from 2 form elements, and removed onsubmit from 0 forms. After you type your password and submit the form, the browser will offer to remember your password." Safari then offered to remember the password.  I accepted this and checked that the password was then saved in keychain - it was. However, next time I tried to access the email Safari once more did not auto complete.  Very frustrating, especially as some auto completes do work.  I hope apple sort this out soon.

  • Why my old emails are not showing on the blackberry

    Hi Guys,
    I have just bought Blackberry Curve 9360. Can somebody, please tell that why my old emails are not showing on the blackberry. May be it has not synchronized my whole mailbox.
    Kindly advise how can I do that.
    Regards... Murtaza

    Old emails, in what manner? As in previous to installing the account on this device?
    Did you use the Device Switch Wizard found in the BlackBerry Desktop Software?
    How did you move your old emails over from the old device to the new?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Why does my exported PDF not look like the original?

    When I export a PDF to excel, the excel document doesn't look like the original. Any idea why or how to make it an exact duplicate?

    No discussion mi adob france
    Acrobat Pro, PDF Pack, Export PDF & More | A...
    Acrobat
    Adobe Document Solutions make it simple to help you get more done every day, and lets you easily create, edit, send, an...
    Envoyé depuis Molto pour iPad
    Message transféré:
    De: Allamelle
    Envoyé: jeudi, février 12, 2015 10:53 AM
    À: [email protected]
    Objet: Re:  Why does my exported PDF not look like the original?
    Stop Mdr
    Envoyé depuis Molto pour iPad
    De: Test Screen Name
    Envoyé: jeudi, février 12, 2015 10:31 AM
    À: René Allamelle
    Objet:  Why does my exported PDF not look like the original?
    Why does my exported PDF not look like the original?
    created by Test Screen Name in Adobe Acrobat.com Services - View the full discussion
    "Vaguely like" is the best we can hope for and a minor miracle in itself. PDF was never meant to be converted.
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7187391#7187391 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7187391#7187391
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Adobe Acrobat.com Services by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • Why do my Reminders sometimes not alert after the set time?

    Why do my Reminders sometimes not alert after the set time?  I've tried re-starting repeatedly.  I've tried deleting older completed reminders (I only had 300).  Is there a fix for this? 

    You problem sounded rather odd, so I tried to duplicate it in iTunes 11 and I couldn't.
    I turned off copy to iTunes media folder when adding to library, then I moved a music track that was not in the iTunes media folder from folder A to folder B and right clicked on it and selected open with iTunes and it played fine. (I have to do it this way as iTunes is not my default player for MP3).
    However the consequences of doing this are that you end up with two copies of the track in the library database, the original which can no longer be found as it is not in its original location and the new entry pointing to the correct location which plays OK.
    So as far as I can tell, there must be something else going on as I can't dublicate your problem in iTunes 11
    You may find this program interesting
    iTunes Folder Watch
    http://albumbrowser.klarita.net/iTunesFolderWatch.html
    If you want an easy time with iTunes it really is easier to let iTunes manage your music in the iTunes media folder. Also it make life a lot easier if you want to move to a new disk or PC as iTunes can tolerate the iTunes media folder being moved as long as you tell it where it is.
    Added
    I realised that my last experment was not a purchased track.
    When I did it with a purchased track, iTunes recognises that it should be in the library database and brings the track up with an exclamation mark next to it. Strangely the track was added to the library with the correct loaction and would play on the secon try.
    Odd behaviour, maybe it is something to do with the icloud storage system as iTunes knows you purchased the track.

  • HT201210 why does it say im not connected to the internet when i plug my i phone in but i am connected to the internet. what do i do?

    why does it say im not connected to the internet when i plug my i phone in but i am connected to the internet. what do i do?

    no into my labtop i have internet but for some reason when i plug my iphone into it it saids update servers could not connect to the internet please check to make sure u have internet and i do.

  • Why is my texing keyboard not showing on the screen? I have the latest version sw of 6.0 on a 4S

    Why is my texing keyboard not showing on the screen? I have the latest version sw of 6.0 on a 4S

    Double tap Home button, delete Messages from the multitask-bar.
    Do a reset (Hold Sleep/Wake and Home buttons about 10 secs or more till Apple logo appears, ignore the Slide to Power Off that appears)
    Note: You will not lose any data.

  • Why will my I pad not update to the latest iOS version for uploading apps

    Why will my I pad not update to the latest version of ios for apps

    Hi 245 yorkland,
    If it is an iPad 1, then the highest it can go on iOS is 5.1.1
    Cheers,
    GB

  • Why are my Whatsapp photos not showing in the Camera Roll? I have checked all the settings and everything seems ok.

    Why are my Whatsapp photos not showing in the Camera Roll? I have checked all the settings and everything seems ok.

    Have you enabled "Save incoming Media"
    in your whastapp\Setting\Chat setting\Save Incoming Media?

  • Why is Ovi Maps 3 not available for the E63

    Hi!
    Why is Ovi Maps 3 not available for the E63 an 410.21... for the old OS 400....
    was OVI Maps available.
    I got an license for ovi and now it is not running ;-(
    Have any one an idea... thanks

    Currently there is something very seriously broken in the latest firmwares, Maps 3.0x SIS files or Nokia Maps Updater. Until Nokia gets their problems sorted out, the only way to restore Maps 3.x after factory reset or firmware update is to use a version meant for previous generation devices, like this one (thanks to the user ovikovi).
    Help spreading the knowledge — If you find my answer useful, please mark your question as Solved by selecting Accept this solution from the Options menu. Thank you!

  • Why will my iphone 5c not ring in the sleep mode?

    Why wiil my iphone 5c not ring in the sleep mode?

    I have an intermittent issue with my phone not ringing in sleep mode. The Apple store replaced my original 5c yesterday, and now my new phone has the same issue. DND is off, nor is the silent toggle switch set to silent. It is maddening as I have to keep waking my phone only to see calls and texts that I've missed. Anyone have a fix?  I'm powering down and on but not fully resolving. 

Maybe you are looking for

  • Editing new Event in Ical after loading leopard

    I loaded Leopard about a week ago and have been using my ical, with some newly learned skills,. However, last night when I added a new event, the window that used to pop up so I could input my data will not appear--double click and apple-E-- only giv

  • My ipad lost it's connection with my printer. How can I get it to reconnect with the printer?

    My iPad lost it's connection with my printer. How do I get it to reconnect?

  • Connect SAP R/3 to Portals

    Hi, Need help creating a connection to SAP R/3. Firstly, Can we use EP to connect to R/3 4.6C version ? I have the following paramters when I create a SAP system in 'System Landscape' in EP. I dont see an entry for client, host, user, app server etc.

  • Error message on websites with  audio

    Problem: When I visit a website that has audio (wave,midi)I get the following meassage:"QuickTime unavailable". Under that it reads:"QuickTime was not found.Error # 1289460 n\n\ please install QuickTime on this computer." It has an OK button. When I

  • Data transfers from SRM to R/3

    Hi, i have follwing questions? 1. How date transfer from SRM to R/3? 2. Why PO transfer throught RFC? why not IDoc? and why confirmation and invoices are transfer using IDOC?. 3. config document for EBP-SUS? Thanks Rams