Atleast on echeckbox should be checked

Hi,
User should check atleast one checkbox before any processing can start. It should pop-up message
"Please select atleast one client".
I have tried adding ELSE with Message("Please select atleast one client".) but it falls in loop and keep showing messages instead of letting me select any client.
PROCEDURE proc_bo_process
IS
     v_client_cnt             NUMBER;
     v_return_val             NUMBER:= NULL;
     i_log_group_source_code  VARCHAR2(150) := UPPER('ON_DEMAND_PROCESSING/BO_RELEASE.SQL');
     lv_log_group_source_id   client_log_group_sources.log_group_source_id%TYPE
                              := cmn_log_pkg.get_group_source_id(i_log_group_source_code);
BEGIN
      SELECT count(*)
        INTO v_client_cnt
        FROM client_log_group_sources
       WHERE log_group_source_id = lv_log_group_source_id;
     IF v_client_cnt !=0 THEN
    Message('Another Back Order Process is running,Please exit');
    Message(' ',no_acknowledge);
    ELSE
      go_block('Client');
        first_record;
     LOOP
          IF :Client.Select_Client ; = 'Y' THEN
             INSERT INTO client_log_group_sources
             VALUES (:client.client,lv_log_group_source_id,user,sysdate);
        ELSE
             Message('Please select atleast one Client');
            Message(' ',no_acknowledge);
        END IF;
        EXIT WHEN :system.last_record = 'TRUE';
        next_record;
    END LOOP;
      first_record;
    COMMIT;
     IF form_failure or SQLCODE != 0 THEN
        Message('Error saving records: '||SQLERRM);
        Message(' ',no_acknowledge);
     END IF;
/* some logic*/
      IF v_return_val =0 THEN
    Message('Successful processing');
    Message(' ',no_acknowledge);
                 ELSE
    Message('Process failed with return code 2');
    END IF;
END IF;  
END proc_bo_process; Thanks
Sandy

Might be something like this
  bFound BOOLEAN:=FALSE;
BEGIN
    go_block('Client');
    first_record;
    LOOP
      IF :Client.Select_Client ; = 'Y' THEN
        INSERT INTO client_log_group_sources VALUES (:client.client,lv_log_group_source_id,user,sysdate);
        bFound:=TRUE;
      END IF;
      EXIT WHEN :system.last_record = 'TRUE';
      next_record;
    END LOOP;
    first_record;
    IF NOT bFound THEN
      Message('Please select atleast one Client');
      Message(' ',no_acknowledge);
    ELSE
      COMMIT;
    ....

Similar Messages

  • What a horrible way to treat customers. I was due for updates on my phones and thought I should maybe check some other prices but have been with Verizon for 20 yrs so ended up there. I got 2 new IPhones 5s and the wife couldn't decide what she wanted so s

    What a horrible way to treat customers. I was due for updates on my phones and thought I should maybe check some other prices but have been with Verizon for 20 yrs so ended up there. I got 2 new IPhones 5s and the wife couldn’t decide what she wanted so she stayed with old phone but this locked me into a new 2 yr contract . Within a wk one of the new iPhones started turning on and of like 10 –15 times a day. Wk 2 it turned off and would not turn on again . It was my sons who was in college at the time so we talked and he took it in to a Verizon store where he was told I need to come in since the account was in my name. He was away from home , Verizon could see on account it was his phone they said it was not abused, they could not even turn it on , they sold me the phone give him another phone maybe even a loaner till he gets another. So now I need to go to store and explain to 3 different people this is my phone and my son has it and I need a new one. what a waste of time after about 2 hrs and talking to different people and yes they said there were notes on his account from other person he had talked to from different store. So I finally walk out with a receipt in hand and being told I would have a new phone in a couple days. As I sat in my vehicle thinking this is stupid I looked at my receipt and noticed it said droid on it so back into Verizon I went. The salesman said that’s what your son has on his account. My son had activated a friends old phone so he has one since VERIZON REFUSED to give him one. Another hr 3 people and yes they can see he had a new iPhone and notes on it from other store. Sometimes sorry just doesn't do it. I was now late for a appointment . Now I walk out and have been told I will get a new iPhone in the mail in about 2 wk Yes 2 wks   again I bought it there just give me a new one and you send old one back. I will also get a new droid that I have to send back because they said they cant cancel it  . In about 3 days I get the Droid and sent it back Verizon mistake and a waste of my time . After waiting over 2 wks and not receiving a new iPhone back to Verizon I went . I am now bitter at Verizon after doing 20 yrs of business with them. 3 people 1 hr later I was told it got delivered to my post office . I got the tracking num called the post office and they say o yes that was the droid. Go back in to Verizon another hr of explaining I walk out being told I will get a new iPhone in a couple of days, We’ll see . Once again I got the phone in your store just give me a new one . Do you realize how much of my time you have wasted ? do you care? O what is Your Policy ? How many Billion did you make last year ? I am Locked into a new 2 yr contract . Why don’t you just release me ? After 20 yrs do you think I will ever renew my contract ?

    Simple process. If an iPhone go to the Apple Store and not Verizon
    the phone from Verizon will be a refurbished device and not new unless under the 14 day worry free guarantee
    good luck

  • All of my apps are in iTunes AND on my iPod Touch. in iTunes it the checkbox next to sync apps is UNchecked. should i check the box and have to reorganize all my apps or leave it "un-synced"?

    all of my apps are in iTunes AND on my iPod Touch. in iTunes, under my iPod, the checkbox next to 'sync apps' (in the Apps page under my iPod) is Unchecked. if I check it, all my apps will be all over the place and I will waste hours trying to get it back to the way it was. I don't really have a reason to check the box but I don't know. should I check the box and have to reorganize all my apps or leave it "un-synced"?
    by "un-synced" I mean how it is on my iPod and iTunes at the same time but its not synced
    this happened b/c I had to make a new user acct on my only [Windows 7] computer and when i clicked transfer purchases, this happened.
    any help would be greatly appreciated
    And as you can see ( besides my problem here) i am out of dropbox space. it would be nice if you can click http://db.tt/TQiPs59V to make an acct to give me and you more space

    You should ALWAYS make sure that everything is on your computer and backed up, most especially before any update. The iphone is designed to be synced to your computer regularly.
    If you have failed to do this, then you need to redownload:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • By clicking on  a button all the check boxes i have should be checked

    Hi all,
    Im having a button 'SELECT ALL', by clicking on that all the check boxes i have in my view should be checked.
    Help me out with procedure and the sample code.
    Thanks & Regards,
    Suresh

    Hi Sureshkumar,
    1. Create a value attribute named <b>select</b> of type boolean.
    2. Bind the <b>checked property</b> of all the checkboxes to this attribute.
    3. Create an action called <b>click</b> and bind it to <b>OnAction</b> event of the button(whose click will check all the checkboxes) and write this code in that action.
    <b>wdContext.currentContextElement().setSelect(true);</b>
    Warm Regards,
    Murtuza

  • How to set password for a zip file and should be checked when reading that

    Hi friends,
    how to set password for a zip file and should be checked when reading that file???
    thanks.
    Praveen Reddy.J

    Heyy man, i think, u did not get my problem.
    all i have to do is:
    i have to create a zip file, and we should secure it with password when creating. and whenever the user wants to open that zip file he should provide correct passowrd otherwise he could not read that file. So, we should check for that also.
    Tanks for reply.

  • What iPod settings should be checked to automatically sync

    Hello,
    At iTunes what iPod settings should be checked to have iTunes automatically add the latest songs. I played around with them that I can't remember how they were before I messed with them. To be clearer - I mean where you can see that long status bar that tells you how full your iPod is and there are 4 boxes to checked or not checked.
    Thank you,
    Nick M.

    Thank you for your reply,
    Yes, that's the section - what I want to know is which of the 4 boxes there should be checked in the Options section for normal operation?
    Right now I have checked:
    Open iTunes when this iPod is attached
    Sync only checked songs
    (unchecked Manually manage music)
    Enable disk use
    With these settings I have to now eject the iPod after syncing.
    I know this isn't a major problem - still, it would be nice to solve it.
    Thank you,
    Nick M.

  • How do i reset safari and what items should I check or delete?

    How do I reset safari and what items should I check or delete

    Reset Safari. OS X 10.8 Mountain Lion/ Safari 6
    Click Safari in the menu bar.
    From the drop down select "Reset Safari".
    Check the box beside each item you want to reset.
    No need to check the box beside "Remove saved names and passwords".
    Click "Reset".
    For more info:  http://support.apple.com/kb/PH11914
    Best.

  • I am trying to import songs from a CD but it takes more than 15 minutes per song. What should I check?

    I am trying to import songs from a CD but it takes more than 15 minutes per song. What should I check?

    Do you have error correction turned on?  (iTunes preferences - General - Import settings.)  If so, it will take much longer to copy audio CD's.

  • Workflow Daemon is stuck in E sourcing CLM and documents are not flowing to approvers.which place should i check for this issue related information i have already checked default traces and Logs

    Hi Guys,
    We have a situation in our landscape where workflow daemon service is stuck  and we have to restart the Esourcing system.
    Could you please help here where should i check the cause of the issue.
    i have already checked the Default traces and Esourcing traces.
    Could you help in identifying the cause.
    Regards
    Tarun

    Hi Tarun,
    Open the Document for e.g. Contract Document, on the Document Tab there is an option for Phase Information open that page this will give you all the information related to the phase and where it is stuck, with which user it is pending etc.
    Now since the workflow is stuck, either you can restart the Demon Registration via background Task Status. or else Cancel the Workflow so it can be restarted. by doing the below steps.
    1) goto Setup
    2) open Workflow Definition Under Workflow.
    3) now choose the phase at which your Workflow is stuck.
    4) open that phase.
    5) under Reports Tab there is option for " Current Workflow Processes"
    6) open the Current Workflow Processes
    7) search the document which is stuck
    8) click on the "X" mark  = Cancel the workflow process option
    9) it will take you to the workflow cancel wizard screen. give the comment why you need to cancel this and click on Finish
    10 ) once the Workflow is canceled the phase will go to the Requester review phase and form here you will have to manully move to the next phase. so the workflow can be restarted. once done refresh it.
    11) before doing this take Approval from the customer.
    If the above does not work and still there is an issue then please check the Pre- Phase script.
    Let me know if this works.
    Thanks
    kanchan

  • MEMASSSA error u201Cunlimited indicator should be checked in lineu201D u201Cif fixed qt

    Hi  All,
    When mass update of scheduling agreement line items is done through Tcode MEMASSSA,  
    the error u201Cunlimited indicator should be checked in lineu201D u201Cif fixed qty indicator is uncheckedu201D arises and ABAP dump results.
    unlimited indicator has already been checked and  fixed qty indicator also has  been unchecked  already in that SA line item before doing MEMASSSA ( ie mass update of Scheduling agreement).
    However when any mass update of SA  line items like checking delivery completed indicator is being done , the following error is displayed:
    u201Cunlimited indicator should be checked in that SA line item number if fixed qty indicator is uncheckedu201D
    Message log is
    Notification ME664 change ELIKZ could not be effected.
    If mass update is  tried again ,ABAP dump results.
    Kindly explain why this error occurs and suggest the solution.
    Thanks & Regards,
    Hari

    Hi,
    Make sure that the field is set to "optional" in the corresponding field selecion keys. If you do not know exactly which keys you should check in the customizing, please read the blog:
    /people/arminda.jack/blog/2010/02/08/are-you-having-problems-with-fields-that-are-not-ready-for-input-in-mm
    If the field is set to optional in all keys, i would recommend to enter a ticket at SAP.
    Best Regards,
    Arminda Jack

  • Cant find creative cloud on my account under downloads?? where should i check??

    cant find creative cloud on my account under downloads?? where should i check??

    https://www.adobe.com/account.html for your Adobe orders page is the only link I have
    Adobe contact information - http://helpx.adobe.com/contact.html may help

  • What should I check first before impdp the dump file?

    I get a packaged Oracle 10.5 data pump exported file to import it into a new environment and set a new database.
    I don't know the details in the dump file.
    What should I check in advance before start to impdp the dump file?

    jetq wrote:
    I get a packaged Oracle 10.5 data pump exported file to import it into a new environment and set a new database.What is Oracle 10.5 ? Do you mean 10.2.0.5 ?
    I don't know the details in the dump file.That's rather strange, what are you suppose to do then ?
    What should I check in advance before start to impdp the dump file?First, try to generate a sqlfile within the impdp option sqlfile=, it won't import anything but will generate all the ddl the import will try to fire.
    Nicolas.

  • From where does exachk reads the list of stoage nodes that should be checked ?

    exachk automatic tries to check a storage node thats closed. From where does exachk reads the list of stoage nodes that should be checked ?

    Great! you found it and thanks for sharing the location. 
    Did you find it thought script or Google? 

  • What should i check if i buy a macbook pro from someone?

    i wanna buy a bran new apple macbook pro, which is 17inch and released in 2011. one of my friends tell me that he has a friend works in bestbuy as a sales maneger, so he is able to sell me a bran new macbook pro with case(he said just like i buy it in apple), the expense is 1100...is that possible??? what should i check???

    Mister.5 wrote:
    i wanna buy a bran new apple macbook pro, which is 17inch and released in 2011. one of my friends tell me that he has a friend works in bestbuy as a sales maneger, so he is able to sell me a bran new macbook pro with case(he said just like i buy it in apple), the expense is 1100...is that possible??? what should i check???
    First off you can't get a brand new latest issue Mac any less expensive than perhaps 10% or so off the price you see at the Apple Store online.
    Use this site as a clue.
    http://www.appleinsider.com/mac_price_guide/
    If your getting a new latest Mac in a sealed box at a lot less than the above link prices without tax, then it's likely stolen.
    Now it could be a Early 2011 model Mac, Apple is now on the Late 2011 model Mac's with slight upgrades, so if it's a Early 2011 Mac, then yes you might be able to get it cheaper as a closeout, make sure you buy it at the store with a receipt and everything so it's a legitimate transaction.
    If your getting it in a opened box (used), you can check the serial (apple menu> about this mac > more info) here
    http://www.appleserialnumberinfo.com/Desktop/index.php
    Main thing is to cover your behind, if you buy stolen merchandise then it's taken away and you lose it and your money, not to mention possibly going to jail if you knew it was stolen.

  • Which area of the code should be checked with FND_NO_TRANSACTION_ID error?

    Customer has created their OAF pages in JDeveloper and in the beginning of this week,
    when they clicked on a menu which normally will open their custom OAF page,
    it opened with the following FND_NO_TRANSACTION_ID error, and is wondering
    what they should check for in their custom code.
    In FND_NEW_MESSAGES, this error's description is "A transactionid has not been specified in the URL".
    Found that EBS code with FND_NO_TRANSACTION_ID has only the following 2 files:
    OAJSPHelper.java OAPageContextImpl.java
    What does this message usually points to? Any advise is greatly appreciated.
    The error is as below:
    Exception Details.     
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_NO_TRANSACTION_ID.     
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java(Compiled Code))     
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java(Compiled Code))     
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java(Compiled Code))     
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java(Inlined Compiled Code))     
    at oa_html._OA._jspService(_OA.java(Compiled Code))     
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java(Compiled Code))     
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java(Compiled Code))     
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java(Compiled Code))     
    at oracle.jsp.JspServlet.internalService(JspServlet.java(Compiled Code))     
    at oracle.jsp.JspServlet.service(JspServlet.java(Compiled Code))     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     
    at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java(Inlined Compiled Code))     
    at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java(Compiled Code))     
    at oa_html._RF._jspService(_RF.java:102)     
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java(Compiled Code))     
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java(Compiled Code))     
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java(Compiled Code))     
    at oracle.jsp.JspServlet.internalService(JspServlet.java(Compiled Code))     
    at oracle.jsp.JspServlet.service(JspServlet.java(Compiled Code))     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java(Compiled Code))     
    at org.apache.jserv.JServConnection.run(JServConnection.java(Compiled Code))     
    at java.lang.Thread.run(Thread.java(Compiled Code))     
    ## Detail 0 ##     
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_NO_TRANSACTION_ID.     
    at oracle.apps.fnd.framework.webui.OAJSPHelper.getTransactionId(OAJSPHelper.java(Compiled Code))     
    at oracle.apps.fnd.framework.webui.OAPageBean.releaseCachedApplicationModules(OAPageBean.java(Compiled Code))     
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java(Compiled Code))     
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java(Compiled Code))     
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java(Inlined Compiled Code))     
    at oa_html._OA._jspService(_OA.java(Compiled Code))     
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java(Compiled Code))     
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java(Compiled Code))     
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java(Compiled Code))     
    at oracle.jsp.JspServlet.internalService(JspServlet.java(Compiled Code))     
    at oracle.jsp.JspServlet.service(JspServlet.java(Compiled Code))     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     
    at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java(Inlined Compiled Code))     
    at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java(Compiled Code))     
    at oa_html._RF._jspService(_RF.java:102)     
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java(Compiled Code))     
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java(Compiled Code))     
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java(Compiled Code))     
    at oracle.jsp.JspServlet.internalService(JspServlet.java(Compiled Code))     
    at oracle.jsp.JspServlet.service(JspServlet.java(Compiled Code))     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java(Compiled Code))     
    at org.apache.jserv.JServConnection.run(JServConnection.java(Compiled Code))     
    at java.lang.Thread.run(Thread.java(Compiled Code))     
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_NO_TRANSACTION_ID.     
    at oracle.apps.fnd.framework.webui.OAJSPHelper.getTransactionId(OAJSPHelper.java(Compiled Code))     
    at oracle.apps.fnd.framework.webui.OAPageBean.releaseCachedApplicationModules(OAPageBean.java(Compiled Code))     
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java(Compiled Code))     
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java(Compiled Code))     
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java(Inlined Compiled Code))     
    at oa_html._OA._jspService(_OA.java(Compiled Code))     
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java(Compiled Code))     
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java(Compiled Code))     
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java(Compiled Code))     
    at oracle.jsp.JspServlet.internalService(JspServlet.java(Compiled Code))     
    at oracle.jsp.JspServlet.service(JspServlet.java(Compiled Code))     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     
    at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java(Inlined Compiled Code))     
    at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java(Compiled Code))     
    at oa_html._RF._jspService(_RF.java:102)     
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java(Compiled Code))     
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java(Compiled Code))     
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java(Compiled Code))     
    at oracle.jsp.JspServlet.internalService(JspServlet.java(Compiled Code))     
    at oracle.jsp.JspServlet.service(JspServlet.java(Compiled Code))     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java(Compiled Code))     
    at org.apache.jserv.JServConnection.run(JServConnection.java(Compiled Code))     
    at java.lang.Thread.run(Thread.java(Compiled Code))     
    Thanks.

    An acronym and two words for you:
    OA
    Framework
    Forum

Maybe you are looking for

  • Trying to set up Firefox Sync and it says my email address is already in use, but won't let me sign in.

    I'm trying to Sync Firefox between my new Android phone with my Macbook Air. It tells me I need to create an account, but says my email address is already in use. So I try to put in the codes in the three boxes, and it leads me back to set up a new a

  • Mini 110-1110st bios passaport pleas

    mini 110-1110st seri no CNU9408RL0  thank you

  • Deploying TCS v2 in a Managed Environment

    I wondered if anyone had successfully deployed TCS in a Managed Enterprise Environment using an Enterprise Management Tool such as SCCM or Radia? In our environment all Applications should be packaged for deployment so that they can be fully managed

  • Special characters in URLs

    I've used punctuation in the titles of some of my blog entries (e.g., "Bob's Birthday"). iWeb is including that punctuation in the URLs it generates for the entries. When I publish, I don't have any problem viewing the site and all the links are fine

  • How to convert BlobDomain to Blob ?

    Hi all! I have created row in VO with field of BlobDomain type according to "File Upload and Download" in Developer guide. I want to save this row in database now. I created CallableStatement and tried to set values in the insert query. This code wor