Check Box Validation in Offline Form

Dear Experts,
I have a requirement in an offline form where I have six check boxes, and out of the six check boxes
user can only select any three.
Request you to please suggest how to achieve this.
Warm Regrads,
Upendra Agrawal

Thanks a ton Shaira.
Full points to you
Just wondering  what is the "Validation Script Message" for each UI.
warm regards,
Upendra Agrawal

Similar Messages

  • Event to use for Creation of a Check box on Warehouse master Form

    Hi experts
    I have created one check box on Warehouse Master form in AfterMENUClick Event. It works fine if I open the form on Menuclick . But If I open the Warehouse master form by Link button from any document, it does not show the check box. I also want to deactive the checkbox if once it checked. So, I do some coding in Data_Load event. It also works fine If I open the form by Menu click. But if I open the form by Link button it gives error " Invalid Item Id ". 
    So I want to know which event I should use to create the check box and which Event I Should use to Deactive the Check box

    Thanks Nagy for quick reply
    I use the following code for creation of check box
    <B1Listener(BoEventTypes.et_FORM_LOAD, False, New String() {"62"})> _
            Public Overridable Sub OnAfterFormLoad(ByVal pVal As ItemEvent)
                Dim ActionSuccess As Boolean = pVal.ActionSuccess
                Dim form As Form = B1Connections.theAppl.Forms.Item(pVal.FormUID)
                'ADD YOUR ACTION CODE HERE ...
                Dim oForm As Form
                Dim oMatrix As Matrix
                Dim oItem As Item
                Dim sysItem As Item
                Dim BinCheck As CheckBox
                Dim BinLabel As StaticText
                Dim cmbBinCode As ComboBox
                oForm = B1Connections.theAppl.Forms.ActiveForm
                oForm.PaneLevel = 1
                sysItem = oForm.Items.Item("2000002010") 'Excisable check box
                oItem = oForm.Items.Add("BinChk", BoFormItemTypes.it_CHECK_BOX)
                oItem.Left = sysItem.Left
                oItem.Top = sysItem.Top + 20
                BinCheck = oItem.Specific
                BinCheck.Caption = "Bin Enabled"
                BinCheck.DataBind.SetBound(True, "OWHS", "U_BinEnabled")
            End Sub
    It gives error on sysItem = oForm.Items.Item("2000002010") line Invalid Item Id
    Plz check and tell the problem
    Regards
    Gorge

  • Problem in check box validation

    Hi All
    I have designed a form in screen painter which contains the employee details.
    I have kept two check boxes MALE and FEMALE with itemuid as chmale and chfemale.
    I wont to do some validation.
    It is check box so I can check both of them,so I need to do validation
    My code
    Case SAPbouiCOM.BoEventTypes.et_CLICK
                                    Try
                                        Select Case pVal.ItemUID
                                            Case "chmale"
                                                oCheckFemale = oForm.Items.Item("chfemale").Specific
                                                If oCheckFemale.Checked = True Then
                                                    oCheckMale.Checked = True
                                                    oCheckFemale.Checked = False
                                                End If
                                            Case "chfemale"
                                                oCheckMale = oForm.Items.Item("chmale").Specific
                                                If oCheckMale.Checked = True Then
                                                   oCheckMale.Checked = False
                                                    oCheckFemale.Checked = True
                                                End If
                                        End Select
    This is not working.
    SAP hangs up for some time.

    Hi,
    You are missing with BubbleEvent=true;
    Below is My Code in C# and its working perfactly for the same requirement as yours.
    I have Done it on ItemClick BeforeAction
    oCheckBox1 = (SAPbouiCOM.CheckBox)oForm.Items.Item("4").Specific;
                    oCheckBox2 = (SAPbouiCOM.CheckBox)oForm.Items.Item("5").Specific;
                    if (pVal.ItemUID == "4" && oCheckBox1.Checked == false)
                        oCheckBox2.Checked = false;
                    if (pVal.ItemUID == "5" && oCheckBox2.Checked == false)
                        if (oCheckBox1.Checked == true)
                            oCheckBox1.Checked = false;

  • How can I add check boxes without using the form widget?

    I would like to use check boxes for our facets for our search engine.  You can see an example below.  Is there anyway to do this without using the form widget?
    PJM - Site Updates

    It is not possible to accomplish this with the Muse's Form Widgets. You may need to look for other online solutions and fetch the source code and add to the Muse page using the Insert HTML feature.
    Cheers,
    Vikas

  • How to use check box & dropdownlist in smart forms

    can anybdy explain(any examples) how i can use check box or drop down list in smart forms.is ther any provision like that

    Hi Ranjith,
    To use Check box in smartform do the following:
    Change the editor to 'PC Editor' and take the menu.
    in text editor of TEXT ELEMENTS..
    Insert -> Characters -> SAP Symbols
    in print preview u can't see these changes..
    for more details check this link..
    How to create checkbox in smartforms??
    Ashven

  • Check Box item in oracle forms

    Hello experts,               I am new in oracle forms. I am using oracle forms 11g,weblogic server 10.3.5,oracle database 11g at windows 7 platform. I have a simple data block from base table.there is a tabular form is selected, It has four rows(records). Now I have to make 4 check boxes adjacent to records in data block in another data block.Now I have to make functionality in which only those records should be inserted into database table for which corresponding (in front of the record) check box is checked. Thank you regards aaditya.

    Hi,
    Commit_Form built-in function commits all the available data base fields.  So you have to use separate insert into statement to complete your task.
    Like...
    for i in 1 .. 4
    loop
         first_record;
         if :chk_box='Y' then
              Insert into <table_name>  values(field1,field2,....);
         end if;
         next_record;
    end loop;

  • Multiple check boxes in an update form using php

    I have a database of the membership of a club. One field in the database is input by checking multiple check boxes. When the insert member record is submitted and multiple check boxes are selected, the information becomes an array of text separated by commas. When the user goes back to the update form, the check boxes are not showing checked in the appropriate fields. Please go to my test site where you will be able to see the code that I have created so far: http://www.usreboot.com/phphelp.php. You will find the php code for the update form in a pdf file located there. You will need a user name and password to look at the update record page. Here you go: user name: wyane, password: wayne. I have submitted this request in the past and have not found success so far. Thanks for your help, Wayne Rowlands

    I am so close. If a member has only one check box checked. I get the check box checked in the update form. Here is the updated code:
    If the member has a number of check boxes checked, none of the check boxes are checked. I am so close. Maybe you can figure out what I am missing.  Thanks, Wayne

  • Multiple check boxes in an update form

    I have a database of the membership of a club. One field in the database is input by checking multiple check boxes. When the insert member record is submitted and multiple check boxes are selected, the information becomes an array of text separated by commas. When the user goes back to the update form, the check boxes are not showing checked in the appropriate fields. Please go to my test site where you will be able to see the code that I have created so far: http://www.usreboot.com/phphelp.php. You will need a user name and password to look at the update record page. Here you go: user name: wyane, password: wayne. I have submitted this request in the past and have not found success so far. Thanks for your help, Wayne Rowlands

    Thanks for getting back with me. I do have two tables. One table is the "members" table where all the information for the members is stored. One of the columns is "currentClubPositions". The database has another table which is "positions" which has the list for the positions that a member of the club could serve on. Members of the club may be serving on a number of positions at once, therefore the check boxes. Also, the club is adding and deleting positions over time, so I wanted an easy way to add them and delete them without having to go into phpmyadmin to do this. I have created a form that updates the "positions" table. The check boxes that show up in the insert member record and update member record are dynamic so that when the table "positions" changes, the forms change dynamically as do the queries to sort the database change dynamicaly. When the check boxes are entered, I use the implode function to make the values an array of text separated by commas and that value is inserted in one field of the members table named "currentClubPosition". I am all ears to hear a better way. Take a look at the web pages (see the original post) that I have created and you will see how all this ties together. Thanks, Wayne Rowlands

  • Check box validation using Javascript

    Hi Everyone,
    I am using LiveCycle with my form that have multiple sections in the form that have questions that have a check box yes or  check box no next to it.  The user can either choose yes or no. Note: I am not using radio buttons.   I am looking for a Javascript function or code that when clicking a button I have set up as "regular" can check to see if a user selected either check boxes (yes) or check box (no) and validate that in that section the user has answered all question by selecting either yes or no.  Example; Section (1) has (5) questions with a yes or no check box next to each question.  I want to validate that the user selected 5 check boxes for this section (regardless if yes or no was answered for each)  if only 2 out od the 5 questions were answered with either yes or no.  I generate an error message. 
    I already have a function that searches the form and tells me how many manditory text fields have been left blank and throws an error.  I would like the check box function to be the same.  Any help would be appreciated.
    Thanks
    Jagan

    function validateCheckBox()
    if(document.TestJsp.BONUS.checked)
    return true;
    var len = document.TestJsp.BONUS.length;
    for(i = 0 ; i < len; i++)
    if(document.TestJsp.BONUS.checked)
    return true;
    return false;
    Sorry for the triple post. :=)

  • Checked box validation

    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.
    And How to move the cursor to the checked record if the focus or cursor is in an unchecked record.
    Thanks,

    One way would be to create a forms level variable (Global, Parameter item, Forms Package Specificaiton, etc) to record the record number of a checked record. Each time a user clicks a check box, you would check your variable to see if it is greater than 0. If its greater than zero then you know the user has already checked a check box and you know which record needs to be unchecked. Another option would be to just pop a message to the user to uncheck any checked records. I like the first option because it is more user friendly. Here is a code sample. I like using Forms Package spec variables because of they have a smaller memory footprint, but you can use a Block item, Parameter, Global, etc to record the record variable.
    /* Sample When-Checkbox-Changed trigger */
    DECLARE
       n_curr_record   NUMBER := 0;
    BEGIN
       IF ( Forms_Var.checked_record > 0 ) THEN
          n_curr_record := :system.trigger_record;
          /* Forms_VAR is a Forms Program Unit Package Specification */
          Go_Record(Forms_VAR.Checked_Record);
          :YOUR_BLOCK.YOUR_CHECKBOX_ITEM := 0;
          /* Assumes you are using 0 = unchecked and 1 = checked */
          Go_Record(n_curr_record);
          /* return to the current record */
       END IF;
    END;Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to Prepopulate check boxes in the process form

    Hi All,
    I need to prepopulate "Change Password at next login" in the AD Process Form. i.e. if some one select this check box in the user creation form and create a user, i need to prepopulate it in the AD process Form. Currently, it is not prepopulated. So, it is not updated on the Active Directory. I'm using AD Connector pack 9.1.1 .
    I need to prepopulate the "User must change the password at next logon" check box in the AD Process Form. I have done the prepopulate on text fields. They are working fine.
    But, stuck with this check box prepopulation.....
    Can anyone help me on this issue....
    Regards,
    Chaturanga
    Edited by: chaturanga on Sep 9, 2009 2:35 PM

    Even if you get the checkbox right it is not entirely clear that the connector will read the box correctly. It all depends on how the connector code was written.
    An alternative is to set the LDAP attribute through a custom connector. Email me if you want example code for this.
    Best regards
    -Martin

  • Use check box for report and form

    Hi Expert,
    I try to use check box to select multiple rows in a report and then click on a button to go to a form on another page to choose some values from the form and then do a mass update for records selected in reports.
    I read the "How to Work with Check Boxes" in 2 Day Developer guide, it works fine to select mutiple rows in report and do update with process in that report page.
    However, if I click on a button to go to another page which contains a form, seems the values stored in the package array are cleared and not passed to that page.
    Do you know how I could make this work?
    Thanks a lot,
    Jessie

    Hello Sakti,
    I am also in ECC6.0 & if i see the definition of the BAdI BADI_TAX1_XTXIT_SET, "Multiple Use" checkbox is checked! What are you trying to do - trying to create an implementation?
    @Prabhu: Although the BAdI is "multiple-use", but there is not filter applied to it. Next time do your checks properly before replying
    BR,
    Suhas

  • Check box validation

    Hello all,
    I need to perform validations on text field. I have two check boxes and by checking any one or both of them, a combination of text fields appear. I want to write four validations and one of them is shown below. I just have the basic idea, can anyone help me in writing it the correct way and what validation method(sql, item not null, regular exp, etc) to select?
    BEGIN
    IF(check box 1 is checked and check box 2 is unchecked) THEN
    :P3_TEXT_FIELD_1 := required;
    :P3_TEXT_FIELD_2 := required;
    :P3_TEXT_FIELD_3 := null;
    END IF;
    END;
    thanks,
    Toopran

    Hello,
    Thanks for the suggestion. I am having the validation of the type function returning error text and this is the actual code that I am using in my application.
    BEGIN
    IF :P11_WRITING_OBJ_FLAG IS NULL AND :P11_LAB_SCIENCE_FLAG IS NULL THEN
    :P11_NOTE_4 := NULL;
    :P11_NOTE_5 := NULL;
    :P11_NOTE_6 := NULL;
    :P11_NOTE_8 := NULL;
    IF :P11_NOTE_1 IS NULL THEN
    return 'enter a value in the text field';
    ELSE IF :P11_NOTE_2 IS NULL THEN
    return 'enter a value in the text field';
    ELSE IF :P11_NOTE_3 IS NULL THEN
    return 'enter a value in the text field';
    END IF;
    END IF;
    IF :P11_WRITING_OBJ_FLAG IS NOT NULL AND :P11_LAB_SCIENCE_FLAG IS NULL THEN
    :P11_NOTE_1 := NULL;
    :P11_NOTE_2 := NULL;
    :P11_NOTE_3 := NULL;
    :P11_NOTE_8 := NULL;
    IF :P11_NOTE_4 IS NULL THEN
    return 'enter a value in the text field';
    ELSE IF :P11_NOTE_5 IS NULL THEN
    return 'enter a value in the text field';
    ELSE IF :P11_NOTE_6 IS NULL THEN
    return 'enter a value in the text field';
    ELSE IF :P11_NOTE_7 IS NULL THEN
    return 'enter a value in the text field';
    END IF;
    END IF;
    IF :P11_WRITING_OBJ_FLAG IS NULL AND :P11_LAB_SCIENCE_FLAG IS NOT NULL THEN
    :P11_NOTE_4 := NULL;
    :P11_NOTE_5 := NULL;
    :P11_NOTE_6 := NULL;
    :P11_NOTE_7 := NULL;
    IF :P11_NOTE_1 IS NULL THEN
    return 'enter a value in the text field';
    ELSE IF :P11_NOTE_2 IS NULL THEN
    return 'enter a value in the text field';
    ELSE IF :P11_NOTE_3 IS NULL THEN
    return 'enter a value in the text field';
    ELSE IF :P11_NOTE_8 IS NULL THEN
    return 'enter a value in the text field';
    END IF;
    END IF;
    IF :P11_WRITING_OBJ_FLAG IS NOT NULL AND :P11_LAB_SCIENCE_FLAG IS NOT NULL THEN
    IF :P11_NOTE_1 IS NULL THEN
    return 'enter a value in the text field';
    ELSE IF :P11_NOTE_2 IS NULL THEN
    return 'enter a value in the text field';
    ELSE IF :P11_NOTE_3 IS NULL THEN
    return 'enter a value in the text field';
    ELSE IF :P11_NOTE_4 IS NULL THEN
    return 'enter a value in the text field';
    ELSE IF :P11_NOTE_5 IS NULL THEN
    return 'enter a value in the text field';
    ELSE IF :P11_NOTE_6 IS NULL THEN
    return 'enter a value in the text field';
    ELSE IF :P11_NOTE_7 IS NULL THEN
    return 'enter a value in the text field';
    ELSE IF :P11_NOTE_8 IS NULL THEN
    return 'enter a value in the text field';
    END IF;
    END IF;
    END;
    :P11_WRITING_OBJ_FLAG IS NULL and :P11_LAB_SCIENCE_FLAG are the check boxes and P11_NOTE_1 to P11_NOTE_8 are the 8 text fields that I want to validate based upon which box is checked.
    I am getting this error when I enter some values in the text field and click on SAVE button:
    ORA-06550: line 70, column 4: PLS-00103: Encountered the symbol ";" when expecting one of the following: if The symbol "if" was substituted for ";" to continue. ORA-06550: line 70, column 22: PLS-00103: Encountered the symbol ";" when expecting one of the following: if The symbol "if" was substituted for ";" to continue. ORA-06550: line 70, column 73: PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: begin case declare end exit for goto if loop mod null pragm
         Error      ERR-1024 Unable to run "function body returning text" validation.
    Please help.
    thanks,
    Toopran

  • Emtpy check box  validation in javascript

    Friends I want to validate check boxes thru javascript,but I can do it if only one checkbox is there,but my requirement is to tell the page that it is alright even if one checkbox out of many is checked.Please tell me how to do it.
    Thanks
    MS
    <SCRIPT>
    function onSave() {
    (document.TestJsp.BONUS.checked)?
    alert("The box is checked"):
    alert("The box is not checked")
    </SCRIPT>
    <TR>
    <TD>
    <INPUT TYPE="CHECKBOX" NAME ="BONUS" VALUE="1" >
    </TD>
    </TR>
    <TR>
    <TD>
    <INPUT TYPE="CHECKBOX" NAME ="BONUS" VALUE="2" >
    </TD>
    </TR>
    <TR>
    <TD>
    <INPUT TYPE="SUBMIT" NAME ="SUBMITBUTTON" VALUE="1" onClick="onSave()">
    </TD>
    </TR>

    function validateCheckBox()
    if(document.TestJsp.BONUS.checked)
    return true;
    var len = document.TestJsp.BONUS.length;
    for(i = 0 ; i < len; i++)
    if(document.TestJsp.BONUS.checked)
    return true;
    return false;
    Sorry for the triple post. :=)

  • How to create a field with combo or check box group in a form

    1 - i created a database table messages (sender_name , date , message_type , message_body)
    message type accept only COMPLAINT , SUGESSTION OR OPENION
    2 - I created a form which has a field called message_type
    3 - i want the message type appear in the runtime as a checkbox group or as combo box (with values COMPLAINT , SUGESSTION OR OPENION)
    PLEASE GUIDE ME STEP BY STEP TO DEVELOP IT
    Regards
    Mohamed Hammed

    Hi,
    You can create another table to hold the unique values COMPLAINT, SUGESSTION and OPINION. You can then dynamically query this table in a Dynamic Page & construct the HTML code within a function like this :-
    CREATE OR REPLACE FUNCTION FN_GET_RADIO_OPTIONS
    RETURN VARCHAR2
    AS
    ln_return_html VARCHAR2(32767);
    BEGIN
    FOR rec IN ( SELECT ROWNUM,MESSAGE_TYPE FROM SCOTT.MESSAGES_TYPES )
    LOOP
    ln_return_html := ln_return_html || '<INPUT TYPE=RADIO NAME=rd'||rec.ROWNUM||' VALUE='||rec.MESSAGE_TYPE||' />';
    END LOOP;
    RETURN ln_return_html;
    END;
    /You can then get something out of Dynamic Page like this :-
    <ORACLE>
    DECLARE
    ln_SQL VARCHAR2(32767);
    BEGIN
    ln_SQL:= FN_GET_RADIO_OPTIONS;
    HTP.P(ln_SQL);
    END;
    </ORACLE>Of course, you do the same in a million other ways - using Java, etc - this is just an example to give you an idea.
    Regards,
    Sandeep

Maybe you are looking for