Validation of check boxes...help needed

Hi
I have a form in which i need to do a validation between several check boxes there are two categories fo check boxes i want a validation so that one category of the check boxes are checked at a instance
I am using the following code ..but i think the code is all wrong
DECLARE
l_concat VARCHAR2(6);
l_concat_1 VARCHAR2(6);
BEGIN
SELECT BULLAE_FLG||CHERRY_RED_FLG||CYANOTIC_FLG||FLUSHED_FLG||GREY_FLG||JAUNDICED_FLG ||MOTTLED_FLG ||PALE_FLG ||PINK_FLG ||PURPLE_FLG into l_concat FROM SKCOLOR;
select normal_flg into l_concat_1 from skcolor ;
IF l_concat IS NULL THEN
IF l_contact_1 IS NULL THEN
return false;
ELSE
RETURN TRUE;
END IF;
ELSE IF l_concat IS NOT NULL THEN
IF l_contact_1 IS NOT NULL THEN
     return false;
ELSE
     RETURN TRUE;
     END IF;
ELSE
RETURN TRUE;
END IF;
END;
any suggestions ....thanks in advance

HI,
Can you eloborate your problem still more clearly.
Morever i think you need to increase the size of the l_concat, you are concatenating more than 10 flags into a variable of just 6 which will throw an exception,

Similar Messages

  • Need Check Box Help using Acrobat Multiple Fields

    I am trying to get the check marks on this form to act as individual units that can be tabbed through (going down left column, then to right column). I used the "Place Multiple Fields" command to get all the check boxes in. Now, when I do my preview test run, if one box is checked more than one gets checked off someplace else in the form. I want them each work as their own unit and not be associated wiht the other boxes. Do I have to draw each one of these in individually to get this to work the way I want it to work? I am guessing that can't be true. This is a computer after all.I am betting it is an adjustment I need to make to the "Place Mulitple Field"  command when I put them in???? I know this one will be a simple answer witha simple soultion. I'm tap dancing all around it and just can't get it. The visual shoudl expalin it all. Thank you.
    I check on one box in the left column and it also checks other boxes in the right column or elsewhere.

    You need to give each separate check box a unique name. If check boxes have the same name and export value, they will behave that way. If several check boxes have the same name but unique export values, they will behave as a group, where only one in the group can be selected, very similar to how a radio button group normally would behave.

  • Validation of check boxes

    in one of my alv  has two rows, one column is check box, i have to validate at least one check box should be selected, could any one pls let me know  how to solve this issue
    Thanks
    Vijaya

    Hi Vijaya,
    Once you read the values into internal table using GET_STATIC_ATTRIBUTES_TABLE then use the below code
    LT_NODE->GET_STATIC_ATTRIBUTES_TABLES(IMPORTING TABLE = IT_TABLE ).
    Then READ TABLE IT_TABLE into WA_TABLE where CHECKBOX = 'X'. This could result you either true or false. If true proceed as you like.
    Loop on Internal table just to see if CHECKBOX is checked or not would be a performance problem rather than that just use READ statement.
    Regards,
    Rafi

  • Validation and Substitutions - Urgent Help needed

    Hello everyone,
    I need your help about this. This is the first time i am going to create a validation for document no. line items.
    The scenario is this:
    1. I need to check if the FI document that is to be posted contains line items where BSEG-LOKKT falls within the range of “0099990000-0099999999”. For each matching line item, I need to check if the credit line items balances with the debit line items. If TRUE then the validation will EXIT succesfully.
    2. If an FI document contains line items where BSEG-LOKKT falls within the range of “0099990000-0099999999”, but the sum of the debit line items and the credit line items is not equal to zero, validation will prevent thre user from posting the document. Error message will be raised.
    3. If FI document document does not contain line items with BSEG-LOKKT ranging from “0099990000-0099999999”, validation will exit successfully because there are no appropriate alternative accts to be verified.
    This validation will only apply to one company code.
    Please provide me with the step-by-step creation of the validation.
    Points will be rewarded for helpful answers.
    Thanks in advance.
    Bay

    look tcode ob28, validation exit and <a href="http://help.sap.com/saphelp_47x200/helpdata/en/5b/d231e143c611d182b30000e829fbfe/frameset.htm">here</a>
    A.

  • Not a valid Photoshop document (urgent help needed))

    I am using Photoshop CS5. Suddenly I am not able to open any of my .psd documents. I get a box that tells me "This is not a valid Phoroshop document." I don't know what has happened.
    Is my application corrupt? Should I reinstall it?
    Is the problem with the preferences file? Should I delete it? If so, how do I do that?
    I am a web designer and now I cannot access my files and work on them. This is a really desperate situation!! I appreciate any insights someone can give me!
    Thank you.

    Thank you for your response. I did find the keyboard shortcut and that was so easy. Why can't Adobe tell that? By the way, I am ready to give up on my Mac. I have 10 library folders and every day a new one pops up - I have no idea where all this stuff comes from to cause my computer to be so unorganized and the folks at my user group don't seem to understand why I am so frustrated. I am ready to buy a new PC. And none of these library folders have a preference file for Photoshop.
    Well, that is all I have for this discussion and thank you for letting me vent (as if you even wanted me to!).

  • IF CHECK BOX IS CHECKED

    I have a check box and need the next field (the date) to be
    filled out if the check box is filled out.
    i have four pages, a search page, a results page, a details
    (update) page and a update validation page. just not sure where or
    what to put in to make it go. stolen bike information is entered on
    the details (update) page.
    so now where and how do i make the stolen date required if
    the check box is selected?....lol. also if the box after that can
    be required if the first two are...lol
    As of right now they are updating the information if filled
    out but if i select the check box it does it without me filling out
    the date or report number.
    thanks in advance for any help you can give me...

    If you're going to make a field be required based on a client
    side event (checking a check box), then you have to use javascript.
    Since the stolen date field may be omitted if the checkbox is
    left empty, you wont want the date field to be required.
    Once the user attempts to submit the form, you will need a
    function to run to validate if the date field has been entered
    corresponding to the field with the checkbox. If the date field has
    not been filled out, then dont submit the form and throw an alert..
    If a value exists for the date field while the checkbox is checked,
    then submit the form.
    If you're unfamiliar with js, then you will have to run all
    of your validation on the server side, and notify the user of the
    errors after they have submitted the form.

  • Multiple checked boxes fill in common text field

    I am attempting to create a form that has various criteria that are checked off (check boxes) and need to populate a common text field within the same form. Presently with action items I am able to design the form so that when only one item is checked it shows up on in the text field at a time not multiples  Any suggestions would help.
    Thank you

    1) In the Binding tab of your checkboxes you can put the On Value to whatever you want to populate the common text field with and the Off Value blank.
    2) Assuming all your check boxes names are CheckBox under the same subform use this script in the calculate event of your common text field:
    var aChkList=[];
    var vChecks = CheckBox.all;
    for (var a=0;a<vChecks.length;a++){
    if (!vChecks.item(a).isNull){
      aChkList.push(vChecks.item(a).rawValue);
    this.rawValue=aChkList.join(", ");
    Kyle

  • Check box in alv grid

    Hi Gurus,
    I developed one alv(grid) report. the grid having first three columns are with check boxes. Now my requirement  is if I tick or on tick those check boxes I need to track which records check boxes are modiried.
    But I canot tracking the  modified records . after ticking or unticking those check boxs values are not modified in intrnal table.
    plese help this is very urgent.
    Regards,
    Shashikumar.G

    Hi Kiran,
    I displayed internal table with check boxes that is ok.
    after displaying the internal table if i tick or un tick the records  those are not modified in internal table but I need to track the records which are modified.
    please give me repply urgently.
    Regards,
    Shashikumar.G

  • Check box or radio button to control image opacity and text field. javascript

    This is a little over head and skill set so I am reaching out to you fine people.
    I am using Adobe acrobat pro x
    I have radio buttons now but I can switch to check box if needed.
    What I need the Java script to do is...
    If Yes is checked then a text field labeled comments appears and an image labeled box changes the opacity to 100%.
    If No is checked then it does the opposite. Text field disappears and image goes to 0% opacity.

    This is the Adobe Reader forum.  You are more likely to receive a helpful answer if you ask in the appropriate Acrobat forum (e.g. Acrobat SDK).

  • Dynamic check box status android app

    Hello All,
                   I desperately need your help. I have created dynamically created check boxes depending on my selection for my android app using the following code snippet.
    for(var i:int=0 ; i<data.PromptText.length; i++)
                                                       chk = new CheckBox();
                                                       chk.label= data.PromptText.getItemAt(i);
                                                       chk.name=data.ResponsePromptID.getItemAt(i);
                                                       chk.addEventListener(MouseEvent.CLICK,ClickEvent);
                                                       chk.width = 1000;
                                                       chk.height = 50;
                                                       addElement(chk);
    Now after click on each check box, I need to check which check box of the list of check boxes created ?
    Please help me, this is driving me nuts.

    Hi,
    I see you have "addElement" rather than "addChild", so this is Flex, right?
    So there is an easier way to do that in any case, I think.
    For example, you could use CheckBox to create a custom renderer and then use your PromptText IList as dataProvider to a list, something like this:
    1. Your item renderer
    [code]
    <?xml version="1.0" encoding="utf-8"?>
    <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                                            xmlns:s="library://ns.adobe.com/flex/spark"
                                            xmlns:mx="library://ns.adobe.com/flex/mx"
                                            autoDrawBackground="true"
                                             width="100%" mouseDown="itemrenderer1_mouseDownHandler(event)"
                                            >
    <fx:Script>
              <![CDATA[
                         * Override selected to provide bindable property
                         * as ItemRenderer.selected is not flagged as bindable.
                        override public function set selected(value:Boolean):void {
                                  super.selected = value;
                                  cbSelect = value;
                        [Bindable] protected var cbSelect:Boolean = false;
                         * Override to set ctrlKey and so to leverage Adobe's existing
                         * click to toggle functionality.
                        protected function itemrenderer1_mouseDownHandler(event:MouseEvent):void
                                  // ctrlKey is used by the component to toggle multiple selection
                                  // behaviour but, for checkbox, we want to treat all as a multiple
                                  // selection toggle, so set it to true.
                                  event.ctrlKey = true;
              ]]>
    </fx:Script>
              <!--
              Use CheckBox with selection tied to render selection
              and mouseEnabled=false to prevent conflicts with CheckBox
              own interactivity.
              -->
              <s:CheckBox label="{data}" selected="{cbSelect}"
                                             top="4" bottom="4" left="4" right="4"
                                            mouseEnabled="false" mouseChildren="false"
                                            />
    </s:ItemRenderer>
    [/code]
    2. The application that uses the item renderer:
    [code]
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                                     layout="{vl}">
              <fx:Script>
                        <![CDATA[
                                  import flashx.textLayout.formats.VerticalAlign;
                                  import mx.collections.ArrayCollection;
                                  import mx.collections.Sort;
                                  import spark.components.CheckBox;
                                  import spark.events.IndexChangeEvent;
                                  import spark.layouts.VerticalLayout;
                                  private var promptBuilder:int = 0;
                                  private var idBuilder:int = 0;
                                  [Bindable] protected var PromptText:ArrayCollection = new ArrayCollection(
                                            ["Prompt text 1...","Second Prompt text...","Third prompt as text...","Prompt...","Prompt...","Prompt..."]
                                  [Bindable] protected var ResponsePromptID:ArrayCollection = new ArrayCollection(
                                            [++idBuilder,++idBuilder,++idBuilder,++idBuilder,++idBuilder,++idBuilder]
                                   * Change handler called whenever an item is selected or deselected.
                                  protected function list1_changeHandler(event:IndexChangeEvent):void
                                            displayCurrentSelection();
                                   * Simple demonstration of interrogating list to find what is and is
                                   * not selected.
                                  protected function displayCurrentSelection():void {
                                            var s:String = "STATUS OF LIST AT "+(new Date).toTimeString();
                                            // selectedIndices returns a list of the data indices of any selected items.
                                            var vs:Vector.<int> = listDisplay.selectedIndices;
                                            if(!vs.length) {
                                                      // If zero length, nothing selected
                                                      s += "\n(No selection.)";
                                            } else {
                                                      // If length, then we have work to do.
                                                      // 1. Indices populated in order of clicking, but we want them
                                                      // in order of display, so sort.
                                                      vs = vs.sort(sortOnInt);
                                                      // 2. Now loop through to see what is and isn't there.
                                                      for(var i:int=0;i<vs.length;i++) {
                                                                // Index is position in the data set that was selected
                                                                // This should match the parallel array of ids.
                                                                var index:int = vs[i];
                                                                s += "\nID:"+ResponsePromptID.getItemAt(index)+" = "+PromptText.getItemAt(index);
                                            // Populate the display variable.
                                            currentSelection = s;
                                            // Simple sort function.
                                            function sortOnInt(a:int,b:int):int {
                                                      return a>b ? 1 : -1;
                                  [Bindable] protected var currentSelection:String;
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
                        <s:VerticalLayout id="vl" paddingBottom="10" paddingTop="10" paddingLeft="10" paddingRight="10" />
              </fx:Declarations>
              <s:Label text="Click to toggle item selection" fontWeight="bold" />
              <s:List id="listDisplay"
                                  layout="{new VerticalLayout}" width="100%"
                                  labelField="label" dataProvider="{PromptText}"
                                  itemRenderer="CBItemRenderer"
                                  allowMultipleSelection="true"
                                  change="list1_changeHandler(event)"
                                  />
              <s:Label text="{currentSelection}" width="100%" />
    </s:Application>
    [/code]

  • Check box as a non database item

    Hi.,
    I am using jdev 11.1.5
    My scenario:
    I need to use checkbox in my af:table which is a non database item
    if i check that check box i need to select the current row in that table
    ex:
    yr        period     type
    2010    2            AJ    [checkbox]
    2010    3            AJ    [checkbox]If I check the 2nd period check box then the value of
    Row row= vo.getcrrent();
    row.getAttribute("period");  //   this value must be 2
    check box must be a non-database item
    how can i do this

    is this what you want?
    Row row= vo.getcrrent();
    row.getAttribute("period");  //   this value must be 2
    int index =vo.getRangeIndexOf(row); //Get the index of the given row relative to the beginning of the range. http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e10653/oracle/jbo/RowIterator.html#getRangeIndexOf%28oracle.jbo.Row%29

  • Handling Check box in  BDC program

    Hi Folks,
              I am developng a BDC for a transaction. The BDC has to pass four tabs in that transaction. Everything is working, but in the fourth tab, there is check box which need to be checked. But when the BDC program enters that tab..it throwing a error message saying 'No field with that name in this screen'. there are still some more check boxes in that tab. Is there any specific way to handle the check boxes...is there anything to add as extension for that check box field..pls suggest me...
             Thanks,
              Shyam.

    hi,
    check the screen field name.. like 'GLACCOUNT_SCREEN_CCODE-WAERS'
    which field it is throwing error?? which transaction??
    thanks,
    vijay.R

  • Check the check-box using script

    Hi
    I have a requirement where from script i need to check the  check box.
    Based on if a condition is true , when i execute the script , the check box field needs to be auto-checked .
    Appreciate the help

    Hi,
    Access the field and set it to true. If it is a standard field it should have its getter and setter, you should use that. In case of an extension field do this :
    doc.getExtensionField("FIELD_NAME").set(true);
    Thanks
    Devesh

  • Hundreds of fields to be populated on the basis of various check box selection

    Hi,
    I have a requirement I have to display 593 fields on the basis of user's checkbox selection. There are 8 checkboxes and multiple checkbox combinations which is not mentioned. I need to consider all possible selection and populate values accordingly. If user selects any 2 or 3 or 7 checkboxes, I need to display the inner join of (respective tables)of  all the selected checkboxes. please suggest me the best possible way that will take least amount of time. Do i need to populated all 593 fields multiple times as per the user selection? please help

    Hi..
    You need to create structures only during the Run time.
    Based upon the check box, we need to create a dynamic internal table or structures at run time.
    Runtime Type Services (RTTS) - ABAP Development - SCN Wiki
    SAP Cafe Corner!: Advanced ABAP Programming
    Please check these link. Still if you have any issues. Please let me know.
    SKR

  • Need help writing formula to count checked boxes

    This is probably a no brainer for you experts but I am making a spreadsheet for scoring a test and I have put in check boxes. Beside in the adjacent cells to the cells with check boxes I have placed the values that correspond to those check boxes. I want to be able to format a cell to do several things.
    First I need to link the adjacent values to the check box cell that it corresponds to.
    Then I need to format a cell to
    1. Count the number of boxes that have been checked.
    2. Display the values that are linked to cells if the total is 10 or under
    3. Display text that relates to the values that are linked to the cells.
    Your help is greatly appreciated.
    Shane

    The Pickler wrote:
    In answer to your first question. Each question is multiple choice and my layout is chosen to mimick the test itself for easy scoring.
    So I take this to mean that it is only valid to have one check per row.
    Second, if there are more than 10 I want it left blank.
    Right now, it is simpler to have this behave the the other way, in that it eliminates a complicating special case.
    So here's a screen shot of what I have on this:
    !http://img227.imageshack.us/img227/6263/questionairesummarywo1.png!
    Let me discuss this and explain some of the changes I made to your initial attempt.
    (1) Since I presumed one check per row, you can see in the "Responses" table I switched over to this type of data entry. This has several advantages and, most importantly, was key in clarifying my thoughts downstream. It does not permit the invalid multi-check per row and can be more readily entered via keyboard. The use of A,B,C,D for the choices is arbitrary; they could be 1,2,3,4 or any other distinct set of 4. If you ever want to simultaneously evaluate several questionnaires this can be accommodated better by adding additional columns to this table.
    (2) The references associated with each question's choices are encoded in the "Key" table. This table can be squirreled away on another sheet dedicated to questionnaire configuration and remain out of harm's way while entering response data. The column headings must correspond with the answer designations used in the "Responses" table.
    (3) The "Tally" table is purely for the computation of the "Summary". It allows both the number of each type of reference to be computed and the listing of the references. Since it is purely computational, it should be hidden away on another sheet.
    (4) The "Descriptions" table is where the association of references and the statements is expressed. Since, like the "Key" table, it is likely edited infrequently, this too should be squirreled away on the questionnaire configuration sheet.
    (5) Finally, the "Summary" table display the counts of each reference type and zero to ten of the references and associated statements. Currently, this shows as many as the first 10 because, as stated above, it avoids a complicating special case and is displayed elegantly via this filtered table (which avoid displaying the unused reference rows). The count is always the total count, even if it is exceeds ten.
    Third, since I don't know the first thing about writing formula's I guess I need to have you hold my hand through this process or teach me some basics. Please.....if your kind and willing enough to do so.
    As there are more than a couple of formulas here, the least time consuming way to explain them is simply to upload this Numbers document to a place you (or anyone else who is interested) can download it. Explore it for yourself and feel free to ask any questions you have about it or how to modify it to better suite your needs.
    You will find that the file contains three sheets. What is presented here resides solely on the third sheet. The first two sheets can safely be ignored/deleted, but I have left them in as they represent two earlier attempts (the first only partial, the second, more complete) at a solution. Some may find them interesting, perhaps containing good techniques for other problems.
    [Questionnaire Summary Numbers Document|http://www.mediafire.com/?1125t9nm9xm|Click to download a zip archive]
    This will take you to a page that will allow you to download the file directly (I apologize for any of this free hosting site's advertisements that you might find offensive). Click on the link in the yellow region on the mid-left part of the page. If all goes well, the zip will download and automatically unarchive into the Numbers document "QuestionnaireSummary.numbers". Let me know if you have trouble.

Maybe you are looking for

  • How do I move a movie off my iPod touch?

    I need help on how to move a movie off my iPod and onto my iTunes account.  I have the new iTunes where there is no left side bar, and I don't know how to use it.  My computer (Dell) runs iTunes extremely slow as well.  Currently the movie i want to

  • Error when Connecting to Remote Host

    Hi, I am not sure if this post belongs here or in the network section, if I need to repost this in the networks section please let me know! The problem is when I use an applet to connect to a remote host I get an error.I am am pasting the error below

  • BC partition: 55gb total, 15gb used, showing only 25gb free..?

    Hey all, I'm not sure if this is normal but thought I would ask. I've done every kind of disk usage measurement tool I can think of (du, windows file sizes, osx file sizes.. etc).. all say that I am using 15gb of space on my 55gb bootcamp partition..

  • Imports - Mail 2.1 from Entourage 10.1.6

    I can import all my email (from Entourage to Mail) that is not in a folder and the email folders but cannot import the email inside the folders. Does anyone know how to do this?

  • Cloning hard drive

    Downloaded SuperDuper disc-cloning program but am getting a "Not compatible" with my system, message. Am running 10.2.8. Is a earlier version compatible with 10.2.8 available? As a download? Want to back up hard drive before loading and running my ne