Suppressing alert message when records exist

I have a block B - ret_print where the user can see the records entered from block A - ret_view. I want to add a message to a button in block A when there are no records to see in block B. I tried the code below with WHEN-BUTTON-PRESSED trigger in block A but get the alert even when there is a record to view in block B. How can I write this so that the alert does not show when records exist to view? Thanks!
if (:ret_print.card_no is null) then
alert_for_val('stop_alert', 'There Are
No Records To View.');
raise form_trigger_failure;
else
go_block('ret_print');
execute_query;
end if;

In the original post ret_print is block B.
My interpretation of the problem is that the form needs to know how many records will be retrieved by a query in block B before it actually does the query. One way to do this would be to do a SQL select and then do execute_query if records exist. Or you could turn the problem on its head as I did in my earlier post - use execute_query to see if records exist and override the default message if there are none found.

Similar Messages

  • Regarding the alert Message when i try to close the window

    Hi All,
    I am trying to give the alert message when the user tries to close the window.
    For this i have coded a jsp in which i have written
    <html>
    <head>Test in the Page Ajay</head>
    <body onUnload="alert('Test UnLoad')">
    </body>
    </html>
    and in the portalapp.xml i have given as jspnative.
    then if i try to unload the page the alert message is not executing.
    Plz help me out in this.
    Thanks
    Ajay

    Delete the iPod photo cache, as described here:
    http://support.apple.com/kb/ts1314

  • Need alert message when closing the file

    Hi friends,
    One of my friend has an forgetting habit, always forgets some important things to check before delivering the files. So thought of developing some scripts for him and did a couple. He was happy with that but still not upto the mark. The scripts I gave needs to click in the scripts panel. He still forgets to click the scripts in the rushing deadlines. This time I am thinking of something but I have no solution/answer. I'm planning to give an alert message box whenever he closes/exits the file. That is when he is done with the job and he says Ctrl+W or File-Close or Exit, he should see an alert message to check some things which are really imporatant. Writing scripts needs to click them, which he is missing in rush deadlines.
    So can we create anyscript which is attached to the system close command? or Edit the default system close command so that he will not miss anything? I know this is crazy but just want to help him.
    Your help is really appreciable!!

    in CS3 you can use Event Listener
    and example of AfterSave
    http://www.adobeforums.com/webx?128@@.59b4b8e6
    robin
    www.adobescripts.com

  • Display message when record is save in table

    Hello,
    How can i display message as "Record Save" when record successfully save into table.
    I have created a form and take one save button, when values fill up in the textboxes and SAVE button pressed record is successfully inserted in the table then
    but how can i display popup window that "Record is save".
    Thanks in advance.

    Hi,
    your page process can have a "success message" which will be displayed after this process has finished and the page is freshly displayed (if your branch doesn't filter the process success message).
    This would be the easiest way to display "Record is save", if you want to do this in a Popup (which is oldskool...) then you can add some javascript code to your process success message.
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • Alert message when battery is low?

    This is only a minor problem really, but it's irritating all the same. As well as getting the usual visual message when my battery's low, when another 2 or 3% has gone I also get an audio alert too (saying "Alert!" or "Attention!"). I've turned VoiceOver off, I have Speakable Items off and the "Announce when alerts are displayed" (in System Preferences --> Speech) box is unchecked. The battery being low is also the only thing I'm alerted to in this way.
    Any help would be appreciated in how to fix this.

    Is your cradle plugged in to AC power or a USB port? If the charge is very low on the phone, it needs to be plugged in to an AC power source to charge.

  • Error message when recording video

    Have QT 7 Pro and it sees my camera, I set up hit record and I see the audio bar moving but the screen is black. When I stop the recording I get this error message:
    *RECORDING FAILED BECAUSE NO DATA WAS RECEIVED*
    *Make sure that the media input source is turned on and playing.*
    Well the device is plugged in and turned on and the Mac sees it on the QT program because when I choose 'Movie Inspector' my camera is chosen as the source. Also the A/V settings are greyed out as to not be able to adjust.

    Check that your video drivers are up to date.

  • System Overload/Core Audio Error Message when recording/playback

    Well ive been experience this problem for a while now but ive read up on it and done some troubleshooting and think i may have found a solution.
    Well what happens is ill be recording say one track or 2 tracks in mono or stereo or playing back about 3 or 4 tracks and logic will stop everything and give me an error message which either says system overload or core audio overload or something. Well i figured i was overloading my cpu so what i tried doing was restarting my computer and then only operating logic as the only program. this worked temporarily sometimes but not in the long run. well i did research and came to this.
    apparently its too overbearing for my Powerbook processor to record in 24 bit/96 Khz which is kind of a bummer because it was one of my attractions to my i/o box that i could do that. also freezing tracks will help greatly apparently which i have yet to try but hope will work too.
    also i recently deleted about half of the stuff on my internal drive and put my 42.41 GB of music onto my external HD so now i have 54.6 GB on my internal HD which holds about 93 GB total. should this help me greatly? or will it only be a minute difference?
    well any more solutions/suggestions as to what i can do to better my situation? also am i correct as to why i think i get those error messages.
    ps: sorry for the uncapitalization, i got a bit lazy here
    thanks
    -Mike

    Mike,
    Bit depth is more important for recording quality than huge sample rates. If you're going to change your settings, I'd stick with 24 bit, but reduce sample rate to 48 kHz.
    When you say you've put all your music on the external drive, what exactly do you mean--your Logic files or your mp3/AAC files? Normally you would want to use an external drive to record onto from Logic. That way your internal HD can run the OS and Logic, while the external is free for all the fast recording tasks. (This assumes your external HD is pretty fast, and ideally is firewire.)
    Freezing works wonders, too, if you're processing tracks.
    -Eric

  • Report - Alert Message when Link with value 0 is clicked

    Hi,
    I have a report with many fields eg. Year , Count of High Priority Project , Count of Medium Priority Project , Count of Low Priority Project.
    I have used Column Attributes to link the report data to page 22.
    Now , some of the cells in the report have 0 . Is it possible that when user click on 0 the link does not take to page 22 , but show javascript alert window stating no data.
    Any help will be highly appreaciated.
    Regards,
    Shijesh

    Thanks Denes for the reply.
    I'm sorry that i was not able to explain my question clearly.
    Below is a bare minimum version of my report.
    [http://www.geocities.com/shijeshkumar/Untitled.png]
    I have a table say dummy_project with field Year , Priority ( it can have only any of these three value - High Medium and Low ) and Project_Status ( it can have only any of these three value - Red , Green and Yellow ) --- As you can see value of the field has been used as Column Lable ( eg. High , Low and Medium ) --
    now when user click on first cell which has value 1 -- It pass the High Column Lable , Priority (High value is in priority field of dummy project table) , and Year to Page 22.
    Since my original report contains 17 fields, it will be very difficult for me to include hyperlink in the query.
    Is there any other way to make my hyperlink conditional , when it has 0 value there should be no hyperlink ...
    If i use the method which is metioned in the link it will work as I want but the code will become to lenghty and hard to debug ( Condidering there are 17 column) and each column is derived using decode and case and other conditions....
    Edited by: Shijesh Kumar on Jan 16, 2009 5:13 AM

  • Whatever happened to the "clipping has occurred message" when recording?

    I'm sorry but I miss this message from Logic 7. Does it still exist in Logic 8?
    It's the one that says something like "xxx samples appear to be clipped"...
    Thanks,
    Ken

    Yes Ken,
    I believe is the one you quote.
    The clip detector will lit up until + 6dB (will be shown),
    probably from that value up the message will appears.
    I really can't tell much more as I never allow clipping that much.
    Peace,
    Jorge

  • Error Message When Recording

    Hello I am constantly getting an error when  I try to record in Adobe Audition CS5.5. It keeps saying the input and output device sample rates don't match. So I cannot record my voice. What do I do?

    You'll need to make sure that the sample rate for your input and output channels of your device match.
    1. Right-click on the speaker icon in the lower-right corner of your desktop and choose Recording Devices
    2. Right-click the Microphone (or desired input channel for the device) and choose Properties
    3. Click the Advanced tab and verify or change the Default Format option
    4. Click OK then click the Playback tab.  Right-click on your default or desired output channel and choose Properties
    5. Make sure the Default Format option matches what you selected for your recording channel.  (You'll notice in this screenshot, my playback device is configured for 48,000Hz while my microphone was configured for 44,100Hz.  These need to match.)
    6. In Audition, create a new session.  For best results, ensure your session sample rate matches the sample rates you selected for your decices.  Audition will attempt to convert the sample rate of your recording on-the-fly to match the session sample rate, but it's always recommended to work at a single, consistent sample rate to ensure no change to the audio signal takes place.

  • Strange "Database Alert" message when opening Mail

    For the last several days, each time I launch Mail, it retrieves mail and then up pops an alert:
    "inconsistencies in your sync information for bookmarks were detected and have been repaired."
    What is that all about?
    It's annoying. How can I fix it?

    I receive the same result with contacts

  • Alert Message When Data Load Fails

    Hi Friends,
    I have three process chains(p1,p2,p3)and all for transactional data loading(psa-ods-cube).suppose whenever data load fails,it sends message to my company mail id. is there any functionality to do like this.
    i am not much aware of RSPCM(Process Chain Monitor).if anyone knows. tell me how much does it support my requirement?
    thank in advance
    sam

    hi Sam,
    welcome to sdn ...
    you can add 'create message' by right click the process type, this will lead you to mail sending setting.
    see thread
    Getting Failed process chain info through email
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b0afcd90-0201-0010-b297-9184845346ca
    you may need to setup sapconnect for email, take a look
    http://help.sap.com/saphelp_webas620/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm
    http://help.sap.com/saphelp_webas620/helpdata/en/af/73563c1e734f0fe10000000a114084/content.htm
    hope this helps.

  • Display an alert message through javascript when report column item is null

    Hello,
    I have a report column item which is an select list item and now i want to display an alert message when value is null, I mean no value is selected, this alert message should be fired when update button is clicked.
    Can anyone please help me with this issue.
    Thanks,
    Orton

    You could try something like this:
    declare
      x        INTEGER;
      err_ct  INTEGER   := 0;
    begin
      x  := 5;  -- number of rows displayed
      for i in 1 ... x (
        IF wwv_flow.g_f08(i)) IS NULL THEN err_ct  := err_ct + 1;
        END IF;
      end loop;
      IF err_ct = 0 THEN
         RETURN NULL;
      ELSE
        RETURN 'Nice error message: you must supply a value.';
      END IF;This would be used with a PL/SQL validation: Function Returning Error Text.

  • Debit memo Condition record exists (removed manually) MWBO Italy

    Currently I am working on an Italian pricing issue.
    Pricing V/08
    Cond     Description            Fr. To. P  Req. Calc. BasT.                           
    LCIT     VAT license Italy      900     S  33   37 
    MWST     Output Tax                     S  10         904
    BOLL     Bollo in Fattura       900     S       903   26
    MWBO     Opt.tax Bollo in Fat   924     S  924  903   26
    The requirments, calculation type and are all based on SAP notes regarding the LCIT, BOLL. eg. 715399 and 593672
    The main requirement here is that 924 is only to activate the MWBO condition in the invoice.
    This means that for a normal order (TAN) item the LCIT, MWST and BOLL is shown. If we create a delivery - invoice, the pricing in the invoice shows LCIT, MWST, BOLL and MWBO. This is correct. MWBO is a tax condition.
    But if we create a debit memo request the behavior is different and would appreciate some insight.
    Debit memo request created, LCIT, MWST and BOLL is shown (as expected). MWBO not shown due to requirement, that's correct.
    But when I create a debit memo from this one, the LCIT, MWST, BOLL are shown. If I go into the pricing analysis then I see that the condition record for MWBO has been found but with message: Condition record exists (removed manually). Saving the document does not trigger it afterwards.
    I have looked on OSS (example note 859876) to determine the cause of not triggering it.
    We are not using the user exits for these conditons in example: user_exit_pricing_prepare_tkomp, user_exit_pricing_prepare_tkomk, mv45afzz or rv60afzz.
    The standard copy control of L2N to the invoice is set to D. If I change this for example to G (copy unchanged, redetermine taxes), then it works. But not sure if this causes disturbtion of the regular behavior of the L2N.
    In best case I would only do the G pricing type for the MWBO condition so I do not disturb the existing process. Any suggestions? I know there is RV61AFZA for manipulating the pricing type (in case you want to have user defined pricing type eg. Y). But this can not be handled per condition type, or is that possible?

    Routine 924 is a altered routine provided by SAP to suppress the condition in the order - not in the invoice.
    http://service.sap.com/sap/support/notes/715399
    quote:
    "In this case, the bollo should only be reported on billing documents, not on the
    order. However, pricing condition '24' delivered in the standard system
    only partially covers this requirement."
    The issue here is that it is triggered with normal order - delivery - invoice. But not with credit memo, it gives message that condition is removed manually. The L2N item category is set to D (copy pricing elements unchanged). When changing it to G (copy pricing elements unchanged - redetermine taxes), it works. But that has an effect on all standard usage of the L2N and I only want to actually fix it for that condition type.

  • Shipment cost :Cond. type FS00 - condition record exists (removed manualy)

    hey all ,
    my requirement is to charge for every container (packing material) in the shipment .
    i coped condition FS00 (container) and called it Z100 .
    the condition is defined with following parameters :
    cond.class : B - prices
    calc.type : S -number of shipping units
    calc base : C -handling units
    the condition opens in a pricing procedure under item category ZK01 which is defined the shipment header  as cost relevant.
    AND the problem :
    when i opens the shipment cost document the condition doesn't appears .
    in the analysis i get this message  :
    " condition record exists ( removed manually ) "
    when i add the condition manually and double click on him there is a field that
    specify that the condition is inactive because : " inactive due to calculation basis (shipping)
    after checking the relevant notes :
    i don't have a requirement in the procedure or the access to this condition .
    i didnt delete is manually
    so the above isn't the reasons that the condition isn't showing .
    other condition types ( old condition types ) is active in this procedure ( new procedure )
    does any body have an idea ?
    Best Regards
    ASA

    hey RP ,
    no exclusion and no formulas in this pricing procedure ?
    any other ideas ?
    i post this in an other forum and got this :
    Hi,
    There should not be two or more conditions with the condition class B in the
    same pricing procedure.If there are two coditionswith the condition class B
    in the same pricing procedure then it will invalidate all other conditions
    in the pricing procedure.Check if any other condition(other than Z100) has
    the same condition class. If yes use some other condition class for it.
    Regards
    Avinash Gyale
    is it make any sense ?

Maybe you are looking for

  • HP Windows 8 Recovery Failed (Used Recovery Discs)

    Hi. I not sure where to begin. System Info- HP Pavilion g6t-2200 Notebook Windows 8 (64bit) This is my sisters Computer. Her system was running slow so I was going to reinstall the OS using the Recovery Media I ordered for the system. Ive reinstalled

  • Quality Number Pad

    Does anyone know of a 'quality' number pad for use with a MacBook? There seem to be a few wireless number pads out there - but none of them match the Apple build quality / aesthetics. Given the increasing number of 'professionals' using Apple product

  • HOW TO: Make iMessage work

    Hello! I found 2 Error messages out there ... 1. Something with a Service Nuber ... just follow the instruction from this webpage: http://support.apple.com/kb/ht5419 2. Can't connect to the Server: Try if your Ports from 3000 to 4000 are closed using

  • I already imported favorites when downloaded but I can't find them, any advise?

    I was using internet explorer, chose to download mozilla firefox and it gave me the option to import favorites, passwords, etc. I have mozilla fox now but I can't find my favorites.

  • Friends receive different contact information (name/number) when coming from different apple devices (iPhone 4 & Macbook Air)

    Whenever I use iMessage on my iPhone 4 and send messages to my friends they receive the messages just fine and I can also view them in the iMessages app on my Macbook Air, however, whenever i reply to their response via my Macbook Air it doesn't seem