How to validate that only one check box is checked in detail block

Hi All,
I am using oracle Forms 10G on windows.
I need help on how to validate that only one check box is checked in detail block. I have multiple records in the detail block and I have check boxes for each record in the detail block.
I have a button to select the values from the detail records where the check box is checked. But I want to make sure that only one record is check not more than one.
How do I validate this on a push button trigger?
Thanks

When I've done this kind of thing, I create a Form level variable of TYPE number and then add or subtract to this variable as I check and uncheck the checkboxes. If the value of the variable is 1, then you know that only one checkbox is selected. If the value is greater than 1, then you know the user has selected more than one check box. You could also add code to your When-Checkbox-Changed trigger to test the variable and instruct the user to un-check selected record before selecing a new record.
With respect to the Form level variable, you can use a GLOBAL, PARAMETER or Program Unit package specification. I prefer to use the PU Package Spec as this method has a smaller memory footprint. For example, in the Program Unit node of the object navigator create the following;
/* Form variables package spec */
PACKAGE Form_Vars IS
  CheckBox_Cnt     NUMBER := 0;
END;Now in your When-Checkbox-Changed trigger...
BEGIN
   IF ( Form_Vars.CheckBox_Cnt = 0 ) THEN
      Form_Vars.CheckBox_Cnt  := Form_Vars.CheckBox_Cnt  + 1;
   ELSE
      /* it's assumed the value is greater than 0 */
      Message('Please uncheck selec ted record before choosing a new record.');
      RAISE Form_Trigger_Failure;
   END IF;
END;Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.
Edited by: CraigB on Feb 3, 2011 10:15 AM

Similar Messages

  • I get two tabs with my identical home page every time I open Firefox. How do I "unpin" one of them so that only one tab is populated when I open Firefox?

    When I installed Firefox I inadvertently responded "yes" when asked if I wanted to "pin" my home page to the browser. l also designated that page (my Juno page) as my home page. So now whenever I open Firefox, two tabs appear with my identical home page. How do I fix it so that only one tab appears when I open Firefox?

    Its not my home page, Like I said, I hae my home page also come up in a different tab (google) I also get the welcome to FF4 on a seperate tab. My home page is set to google. But I dont want the welcome screen to pop up

  • TS3988 It seams that i have another Apple ID, how can i use only one for everything?

    It seams that i have another Apple ID, how can i use only one for everything?

    http://support.apple.com/kb/HT5622?viewlocale=en_US
    -The specific point:
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.
    If you are wondering how using multiple Apple IDs relate to iCloud, see Apple IDs and iCloud.

  • How can I delete only one part of my xml file?

    Hello,
    I stored more than 100 users in only one xmltype column. For instance
    Create table agro(users XMLTYPE);
    ... and I inserted all users inside
    INSERT INTO agro values(XMLTYPE
    ('<?xml version="1.0" encoding="ISO-8859-1"?>
    <authentication><users><user>
    <name>cocoon</name>
    <password>cocoon</password>
    <role>admin</role>
    <title>Mr.</title>
    <firstname>Walter</firstname>
    <lastname>Cocoon</lastname>
    <company />
    <street />
    <zipcode />
    <city />
    <country>DE</country>
    <phone />
    <fax />
    <email />
    <bankid />
    <bankname />
    <accountid />
    </user>
    ... another user, etc.
    </users></authentication>'));
    Now I tried to delete only one part of this file. For example all persons with the name"cocoon".
    I used for this target the following statement:
    DELETE FROM agro agro
    WHERE agro.users.extract('authentication/users/user/text()').getStringVal()= 'cocoon';
    When I execute this statement, Oracle DB delete all users and not only with the name "Cocoon".
    How can I delete only one part of my xml file?
    Kind Regards
    M R

    This the expected behavoir. You uploaded a document containing multiple users and then asked XML DB to delete any documnet that contained a user with the name in question. The problem here is that you are creating a mega document that contains an aggregation of user documents but then trying to work with individual user documents. This is a bad idea.
    In general XML does not understand the concept of a collection of documents. It can only operate on one document at a time. Hence the tendancy to aggregate individual documents into a single larger document. Once you have an XML database, you can perform operations on collections of document, as easily as you can perform operations on individual documents, so the need to aggregate the individual documents together disappears.
    If you store each user document as a seperate document then your delete will work as expected.

  • How to validate that Virsa RTA BAPI S have been transported to backend ?

    Hi all,
    As part of post installation tasks, pre-implumentation guide for SAP GRC AC says steps to validate.I have following doubts regarding that checklist.
    1.How to validate that Virsa RTA BAPI S have been transported to backend systems.?
    2.how to confirm that VIRSA AE/RE  RTA  transports were successfully imported with no errors?
    3.how to confirm that AE/RE BAPI exist in the system.?
    4.how to check whether RFC user account is created or not?
    Thanks,
    Joseph.

    Hello Joseph,
    Firstly Basis team do ot transport BAPI's related to GRC product.
    This is add on product. They first install base component through SAINT and then through SPAM, support pack are installed.
    You can go to spam and check as mentioned by Jasmine and if you don't have access to SPAM, then please go to Menu
    System -> Status, click on the magnifying glass and check for component VIRSANH.
    Basically what GRC delivers for connecting to Backend systems are not BAPI's, they are RFC's.
    And all these start with name /VIRSA/.........
    Regards,
    Surpreet

  • Help--How can I open only one java program at one time?

    How can I open only one java program(same program) in Windows at one time?

    In Java 1.5, you can use the JVM's own monitoring APIs to examine what other JVMs are running on the system, and what applications they're running.
    It's general and powerful, but complex. The socket/file/whatever approach is cleaner, and probably more suited to your usage.
    Don't bother trying to use the Windows task manager for this sort of thing. You have to write messy native code, and it isn't reliable after all that anyway.

  • Why is it when I plug in any headphone that only one works?

    Why is it when I plug in any headphones that only one works?

    the song is in mono or only one track
    one of your headphones is broken
    there's something wrong internally in your iPod.
    Try different songs to see if all of them only play on one side. also try apps to see if the sound is on one side or both.
    Try a different set of headphones/ear buds to see if they sound different
    if neither of the above fixes it then you may want to have Apple check out the device and see if the jack is broken

  • HT204053 i RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    I RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    Welcome to the Apple community.
    iTunes and iCloud and different accounts, you will need to delete both accounts from your device before adding the new details in their place.
    For iCloud go to settings > iCloud, scroll down and hit the delete button. You can then sign back in using your correct details. For iTunes go to settings >store, tap your account ID and then sign out, you can then sign back in using your correct Apple ID.

  • How i can have only one Apple ID for everything my computer and tab and iphone?

    How I can have only one Apple ID for evrything, my computer Iphone

    Thats how the majority of people use iCloud. All you need to do is sign into the same account on all of your devices.

  • How can I see only one album by an artist?

    How can I see only one album by an artist, in the album view?

    Hi ladybugjlt,
    Thanks for visiting Apple Support Communities.
    See the "syncing manually" section of this article for help:
    iTunes: Syncing media content to iPod
    http://support.apple.com/kb/ht1351
    Regards,
    Jeremy

  • How do you send an email to a specific person based on if a particular check box is checked?

    How do you send an email to a specific person based on if a particular check box is checked?

    Try the LiveCycle Designer forum.

  • How do you show only one caller's video display wi...

    How do you show only one caller's video output with four people sharing a video call? i.e. the call originator wants to show a DVD video on a TV screen and the other callers want to view the video on full screen not just one fourth of their screen.

    Thought I'd try this just in case they are stripping out attachments.
    Gary Grow
    6457 Audubon Sq Dr N
    Mobile, AL 36695
    Email: [email protected]
    Cell: (251) 422-8817
    The American Creed by William Tyler Paige
    I believe in the United States of America as a government of the people, by the people, for the people; whose just powers are derived from the consent of the governed, a democracy in a republic, a sovereign Nation of many sovereign States; a perfect union, one and inseparable; established upon those principles of freedom, equality, justice and humanity for which American patriots sacrificed their lives and fortunes. I therefore believe it is my duty to my country to love it, to support its Constitution, to obey its laws, to respect its flag, and to defend it against all enemies.

  • How can I buy only one month service of indesign cc from online shop?

    How can I buy only one month service of indesign cc from online shop? it seems only allow to buy one year package service. PLA HELP !

    http://www.adobe.com/products/catalog/software._sl_id-contentfilter_sl_catalog_sl_software _sl_allsoftware.html#
    Click on Join, then from plan select: Month to month

  • How can I transfer only one song from itunes to my iphone?

    How can I transfer only one song from itunes to my iphone without sync ( the whole library)?

    Untick every thing you dont want to transfer, tick only the ones you do want to transfer.

  • Very slight blue cast on epson r1900 when match print color check box is checked

    Ok, so this problem has been bugging me for some time now and I know other people have it too, because I can see it some of the screen shots. 
    I am running CS3 and and epson r1900.  Using the latest drivers, and latest ICM epson paper profiles downloaded again just yesterday.  So what happen is when I go to print a photo, whenever I check the match print color box, the proof instantly assume a very light blue cast which prints on the paper as well.
    Let me tell you what I know it is not.
    1.  It is not double color management- ICM is disabled on the epson print manager side
    2.  It is not a badly calibrate monitor, My spyder 2 is working just fine.
    I am wondering if its some type of gamut compression inherint the the ICC profile, but if that were the case, if I converted my photo into the icc's color space, it just take on the blue cast, but it does not it.  The blue cast appears only after the match printer colors check box is checked.  Even if I add additional whitespace to the picture, that what space, which when you think about it, should just be paper white, get printed again with the light blue cast.  In checking and unchecking that above mentioned box, I can see that other features within the photo are being affected or shifted as well.  If I use a different icc profile, say, the Kodak Professional Paper profile or a red river paper profile, there is no Blue Cast period when the box is check or unchecked, so it seems to be something related to epson profiles, and Photoshop.
    I have removed the printer and reinstalled with all the latested drivers available at epson website, as well as removed all my old epson paper iCC profiles and reinstalled them from that latest available from epson as well.
    I can see on some epson printing tutorials avaiable on the web, this blue cast in the screen shots.  Like here- http://www.gballard.net/psd/printing_epson_photoshop_cs3.html
    compare the the preview print area , the the white in the in input box for print size and you can see there is a cast.
    So is this normal?
    thanks
    Patrick

    Patrick,
    ICC profiles include white point information.  When you check  the match print color box, Photoshop trys to show a quick soft proof of your image there in the print dialog.  The blue cast is Photoshop trying to simulate the white point in the profile - which happens to be the shade of the paper.  Some papers have more of a pronounced blue or yellow shade, and this shows up in the soft proof.
    In reality you will not see nearly the level of shift on a print as you do in the Photoshop print dialog.  That soft proof is not really super accurate.
    To summarize it is indeed the paper ICC profile that is causing the effect.  Different profiles will all show slightly different variations in the white point under these circumstances.
    Drew Hendrix
    Red River Paper
    www.redriverpaper.com

Maybe you are looking for

  • Complaint wth ref. to invoice in CRM - Copy control not taken into account!

    Hi all, We are facing problems when replicating return orders (business object Complaint)  with reference to invoices in ERP. The copy control in ERP is not taken into account. Does anyone know if it is possible to check the copy control when replica

  • Bought and downloaded album, and it skips.....

    I recently downloaded a whole CD, The One and Only Maynard Ferguson. That day, I was going to be on the road in a friend's car that did not have an iPod connection, so I burned a CD for us to listen to. Many of the tracks skipped. She told me it was

  • Transaction Handling in webservice based partnerlink

    What is the transaction handling mechanism for parnerlink which calls webservice (not native BPEL/ESB)? REgards priyadarshi

  • JWSDP 2.0 Webservices client Error

    Hi, I have generated a client stubs for RPC/Encoded style webservices using wscompile tool of JWSDP 2.0. But when i run the client, i get following error no serializer is registered for (class [Lcom.test.mywebservices.service.TemplateVariable;, {http

  • Which  is  jar file   the corresponding OCFCardAccessor Class?

    hello, when I complied my java file. I have following error: can't file the OCFCardAccessor.Class CardRequest cr = new CardRequest(CardRequest.NEWCARD, null,OCFCardAccessor.class); I already include the all jar file in the project,I find the jar file