CheckBoxes Validation

Hello,
I have to provide checkboxes validation. For this, I have few questions
1) How to group checkboxes together and in that able to select multiple options.
2) How to provide validation for the above checkbox group.
Can anyone help me in this regarding. Thanks in advance for your interest shown in solving this issue for me...................

Hai.
check it may help you.
TABLES:MARA.
DATA:BEGIN OF GT_MARA OCCURS 0,
MATNR LIKE MARA-MATNR,
END OF GT_MARA,
GV_CB,
GV_CBV,
GV_LINES TYPE I,
INDEX TYPE I,
SY_INDEX TYPE I,
GV_LINES1 TYPE I,
MATNR LIKE MARA-MATNR.
SELECT-OPTIONS:S_MATNR FOR MARA-MATNR.
SELECT
MATNR FROM MARA
INTO TABLE GT_MARA
WHERE MATNR IN S_MATNR.
IF SY-SUBRC = 0.
DESCRIBE TABLE GT_MARA LINES GV_LINES.
ENDIF.
LOOP AT GT_MARA.
WRITE:/ GV_CB AS CHECKBOX,
GT_MARA-MATNR.
ENDLOOP.
CLEAR GT_MARA.
WRITE:'Total num of records is ',GV_LINES.
SET PF-STATUS 'DEL'.
AT USER-COMMAND.
IF SY-UCOMM = 'DEL' OR SY-UCOMM = 'PICK'.
DO 50 TIMES.
SY_INDEX = SY-INDEX.
READ LINE SY_INDEX FIELD VALUE GV_CB
GT_MARA-MATNR INTO MATNR.
IF GV_CB = 'X'." AND MATNR IS NOT INITIAL.
LOOP AT GT_MARA." WHERE MATNR = MATNR.
DELETE GT_MARA.
CLEAR GT_MARA.
ENDLOOP.
delete gt_mara index sy_index.
ENDIF.
ENDDO.
DESCRIBE TABLE GT_MARA LINES GV_LINES1.
WRITE:'Total num of records is ',GV_LINES1.
CLEAR:GV_LINES .
LOOP AT GT_MARA.
WRITE:/ GT_MARA-MATNR.
ENDLOOP.
ENDIF.
regards.
sowjanya.b

Similar Messages

  • Problem with checkbox validation

    actually i have a series of check boxes in jsp. on selecting any one check box and pressing delete it should go to a servlet and delete that value in database... i have 2 buttons in jsp..one is delete and other is add.
    my jspcode:
    <jsp:useBean id="userdetails" class="bean.Userbean" scope="session" />
    <script language = "javascript">
         function invoke(btn)
              if(btn == 0)
                   if(document.subforums.subforum_title.checked)
                        document.subforums.action="/design/jsp/moderator/confirmdelete.jsp";
                        document.subforums.submit();
                        return (true);
                   var len = document.subforums.subforum_title.length;
                   for(i = 0 ; i < len; i++)
                        if(document.subforums.subforum_title.checked)
                             document.subforums.action="/design/jsp/moderator/confirmdelete.jsp";
                             document.subforums.submit();
                             return (true);
                        else
                             alert("please select any topic");
                             return (false);
              if(btn == 1)
                   document.subforums.action="/design/jsp/NewQuestion.jsp";
                   document.subforums.submit();
                   return (true);
    </script>
    <html>
    <head>
    <title> questions</title>
    <%@ page import="java.util.*" %>
    <%@ page import="java.io.*" %>
         <form name="subforums" method="post">
         <body bgcolor="b2dfee">
    <table>
    <tr>
              <td>
                   <center><font color="white"> this domain has <jsp:getProperty name="userdetails" property="subfCount"/> sub domains </font> </center>
              </td>
              <td>
                   <P ALIGN="right"<b><input type="submit" value="add a new topic" onclick="return invoke(1)"></p>
    tr>
              <td></td>
              <td>
                   <P ALIGN="right"<b><input type="submit" value="delete topic(s)" onclick="return invoke(0)"></p>     
              </td>
         </tr>
              </td>
         </tr>
    <%
                   ArrayList arr =new ArrayList();
                   if(request.getAttribute("subforumlist")!=null)
                        arr=(ArrayList)request.getAttribute("subforumlist");
                   String subforname;
                   for( int i = 0; i < arr.size(); i=i++)
                        subforname=(String)arr.get(i);
                        userdetails.setSubforname(subforname);
                        %>
              <tr>
                   <td valign=top width=100>
                   <input type="checkbox" name=subforum_title value =<%= subforname %>><%=subforname%>
                   </td>
              </tr>
              <%
              %>
              </table>
    </body>
    </html>
    my problem is even if i select the checkboxes also, i get only the alert message printed...and its not entering the next page. hope am clear... plz help me...
    Edited by: bad_programmer on Mar 25, 2008 10:25 PM

    As mentioned above, the textbox would not get validated if it was empty.
    Maybe I could create a function attached to the "required" attribute of the textfield's tag that was dependent on if the checkbox was checked or not?
    Is this the best way? Surely there are better ways to do validation across components.

  • Need code for this checkbox validation

    There are 3 checkboxes on my form cb1,cb2,cb3.I need the code for the below validations..
    if I check the checkbox cb1 then cb2,cb3 should be disabled(grayed, should not allow to
    check). when i unchecked cb1 all 3 boxes should be enabled and then if i check cb2
    then cb1,cb3 should be disabled.
    At any point of time only one checkbox should be checked and
    remaining 2 will be disabled/grayed.
    hope its clear.
    thanks in advance
    Devender

    Hello,
    You can enable/disable your check box items with the:
    Set_Item_Property( 'item_name', ENABLED, PROPERTY_TRUE | PROPERTY_FALSE ) Built-in.
    If Checkbox_Checked( 'chk1' ) Then
       Set_Item_Property( 'chk2', ENABLED, PROPERTY_FALSE ) ;
       Set_Item_Property( 'chk3', ENABLED, PROPERTY_FALSE ) ;
    End if ;
    ...Francois

  • Error when using WETextArea and WESubmitButton

    <p>Hi again,</p><p> </p><p>I think I may have found a issue.</p><p> </p><p>if you have a form that has only a WETextArea and a WESubmitbutton that is submitting back to the same report  ( with or with out database connection) I get a error message when I click the submit button of &#39;Getform&#39; not defined.</p><p> </p><p>I have replicated this in a stand alone report with no database connection just with a parameter and the 2 we elements that is posting back to the same report. </p><p>I found this while attempting to set up  a screen to allow users to input data to the database using the WETextarea.</p><p> </p><p>Jon Roberts</p><p><a href="http://www.programmervault.com" title="www.programmervault.com">www.programmervault.com</a><br /></p><p><a href="http://www.dsi-bi.com" title="Decision Systems Inc">Decision Systems Inc </a> </p>

    hey AJ,
    unfortunately you are completely out of luck on this one as Text Area does not have a max length property associated with it. http://www.w3.org/TR/REC-html32.html
    just kidding...this is a good idea (keep them coming) and pretty quick and easy to do...so...here's some code below to give you a validation method for WETextArea.
    1) go to your Admin folder in webElements 2.1 and open up the WEValidator and replace its code with
    // WEValidator 2.1 last revision March 8, 2007, JWiseman
    Function (stringvar ElementName, stringvar Validate, stringvar Message)
    stringvar output;
    if validate > "" then
    validate:= lowercase(validate);
    if validate ="empty" then output :=
    'if(isEmpty(getform.' + ElementName + '))' +Â
    '{ ' +
    'alert("' + Message + '"); ' +
    'getform.' + ElementName + '.focus();' +
    'return;' +
    if validate in ["numeric", "number"] then output :=
    'if(isEmpty(getform.' + ElementName + '))' +Â
    '{ ' +
    'alert("' + Message + '"); ' +
    'getform.' + ElementName + '.focus();' +
    'return false; ' +
    '}' +
    'if (!isNumeric(getform.' + ElementName + '.value)) ' +
    '{ ' +
    'alert("' + Message + '"); ' +
    'getform.' + ElementName + '.focus(); ' +
    'return false;' +
    if validate in ["email", "e-mail", "email"] then output :=
    'if(isEmpty(getform.' + ElementName + '))' +Â
    '{ ' +
    'alert("' + Message + '"); ' +
    'getform.' + ElementName + '.focus();' +
    'return false; ' +
    '}' +
    'if (!isValidEmail(getform.' + ElementName + '.value)) ' +
    '{ ' +
    'alert("' + Message + '"); ' +
    'getform.' + ElementName + '.focus(); ' +
    'return false;' +
    if validate = "date" then output :=
    'if(isEmpty(getform.' + ElementName + '))' +Â
    '{ ' +
    'alert("' + Message + '"); ' +
    'getform.' + ElementName + '.focus();' +
    'return false; ' +
    '}' +
    'if (!isDate(getform.' + ElementName + '.value)) ' +
    '{ ' +
    'alert("' + Message + '"); ' +
    'getform.' + ElementName + '.focus(); ' +
    'return false;' +
    if validate = "integer" then output :=
    'if(isEmpty(getform.' + ElementName + '))' +Â
    '{ ' +
    'alert("' + Message + '"); ' +
    'getform.' + ElementName + '.focus();' +
    'return false; ' +
    '}' +
    'if (!isInteger(getform.' + ElementName + '.value)) ' +
    '{ ' +
    'alert("' + Message + '"); ' +
    'getform.' + ElementName + '.focus(); ' +
    'return false;' +
    if validate in ["check", "checked", "select", "selected"] then output :=
    'if(!isButtonChecked(getform.' + ElementName + '))' +Â
    '{ ' +
    'alert("' + Message + '"); ' +
    'return; ' +
    if validate[1 to 6] = "value=" then
    (validate:= validate[7 to length(validate)];output :=
    &#39;if(isCertainValue(getform.&#39; + ElementName + &#39;,"&#39;validate&#39;"))&#39; + 
    '{ ' +
    'alert("' + Message + '"); ' +
    'getform.' + ElementName + '.focus();' +
    'return;' +
    if validate[1 to 7] = "length>" then
    (validate:= validate[8 to length(validate)];output :=
    &#39;if(isMaxLength(getform.&#39; + ElementName + &#39;,&#39;validate&#39;))&#39; +
    '{ ' +
    'alert("' + Message + '"); ' +
    'getform.' + ElementName + '.focus();' +
    'return;' +
    "<!validator " + output  + "><!|||>"
    ) else "";
    2) now open WEFunctionLibrary and replace its code with
    // WEFunctionLibrary 2.1 last revision March 8, 2007, JWiseman
    Function ()
    // functions for select all, clear all, reverse all buttons and links
    &#39;function selectAll(cbList,bSelect) {&#39; <br />&#39;for (var i=0; i<cbList.length; i+)&#39; +
    'cbList.selected = cbList.checked = bSelect&#39; <br />&#39;}&#39; <br />
    &#39;function reverseAll(cbList) {&#39; <br />&#39;for (var i=0; i<cbList.length; i+){&#39; +
    'cbList.checked = !(cbList.checked);' +
    'cbList.selected = !(cbList.selected)&#39; <br />&#39;}}&#39; <br />
    // VALIDATION FUNCTIONS
    // function for numeric (float) input validation
    'function isNumeric(sText){' +
    &#39;var ValidChars = "0123456789.";var IsNumber=true;var Char;&#39; <br />&#39;for (i = 0; i < sText.length && IsNumber == true; i+) &#39; +
    '{Char = sText.charAt(i); ' +
    'if (ValidChars.indexOf(Char) == -1) ' +
    '{IsNumber = false;}}return IsNumber;Â ' +
    +
    // function for integer input validation
    'function isInteger(sTextB){' +
    &#39;var ValidCharsB = "0123456789";var IsNumberB=true;var CharB;&#39; <br />&#39;for (i = 0; i < sTextB.length && IsNumberB == true; i+) &#39; +
    '{CharB = sTextB.charAt(i); ' +
    'if (ValidCharsB.indexOf(CharB)
    == -1) ' +
    '{IsNumberB = false;}}return IsNumberB;Â ' +
    +
    // function for non-null input validation
    'function isEmpty(aTextField) {' +
    'if ((aTextField.value.length==0) ||' +
    '(aTextField.value==null)) {' +
    &#39;return true;}else {return false;}&#39; <br />&#39;}&#39; <br />Â
    // function for email input validation
    'function isValidEmail(str){' +
    'return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);&#39; <br />&#39;}&#39; <br />
    // function for date input validation
    'function isDate(str){' +
    'var dateVar = new Date(str);' +
    'if(isNaN(dateVar.valueOf()) ||' +
    '(dateVar.valueOf() ==0))' +
    'return false;' +
    &#39;else {return true;}&#39; <br />&#39;}&#39;<br />
    // function for radio button and checkbox validation
    'function isButtonChecked(aSelection) {' +
    &#39;var checkcount = -1;&#39; <br />&#39;for (var i=0; i < aSelection.length; i+) {&#39; +
    'Â Â if (aSelection.checked) {checkcount = i; i = aSelection.length;}' +
    'Â Â }' +
    'if (checkcount > -1) return aSelection[checkcount].value;' +
    &#39;else return false;&#39; <br />&#39;}&#39;<br />
    // function for inappropriate value input validation
    'function isCertainValue(aTextField, vTextField) {' +
    'if (aTextField.value==vTextField){' +
    &#39;return true;}else {return false;}&#39; <br />&#39;}&#39; <br />
    // function for maximum input length validation
    'function isMaxLength(aTextField, mLength) {' +
    'if (aTextField.value.length>mLength){' +
    'return true;}else {return false;}' +
    3) do not add these to your repository quite yet as you'll want to test this to see if there's no nasty bugs or side affects.
    4) in your WETextArea function you'll have a validation for maximum length, so your code will look something like
    WETextArea ("tb", {?tb}, "1in", "2in", "", "length>16", "there are way too many characters here")
    NOTE: this is for maximum length only and this will not do a minimum length at this time...should that need arise in the future i can create a validation for "length

  • Overriding a javascript delivered function but then calling the original

    I have a tabular form (updateable report) and am on Apex 3.2.
    On this particular form, I have the updateable report set to "partial page refresh = yes". When doing so, it appears to want to call a javascript function called $a_report to paginate from one set of rows to another. I have my pagination set to select-list with row ranges.
    Before repagination continues, I would like to do some validation (specifically, see if the user selected any of the checkbox row selectors) and warn them via Javascript's "confirm" box that continuing will make them lose their selections.
    I have no issue so far in determining if at least one checkbox is checked and no problem popping up the confirmation box. However, the real issue is that I want to pop up the confirm box and then continue only if the user says they want to continue.
    Apex generates this report with the select-list and links to paginate by calling a function in Javascript called "$a_report". Since this is in the library, I cannot really get to it; it's a "black box" to me at runtime. So ideally what I'd like to do is create a local (on my page) javascript function of the same name (since I can't change what the select-list for pagination calls) accepting the same four parameters, do my checkbox validation and warning, and then effectively call the $a_report in the library to do the pagination if the user wants to continue.
    As it is right now I got a copy of the code for the function and put it local on my page and then added in my own logic, but of course this means that if $a_report changes in future versions, my local copy might break and would have to be updated. Ideally, I would like to somehow create a locally-named function called $a_report, do my validation and ask for confirmation, and if the user chooses "OK" to continue, call the library one in sort of a "super" or "parent" way to do the pagination.
    Is this possible with javascript to create some sort of OOP-like inheritance or some sort of sense of scope so that I can have a local copy and then call the one in the library?
    Thanks!

    Hi Kramis,
    Let's start with a simple example
    class OriginalClass
      public void doSomething( )
      System.out.println("This is the Original class's doSomething( ) ");
    class InheritedClass extends OriginalClass
      public void doSomething( )
      super.doSonething( );//Watch here you are calling the original method that was declared in OriginalClass
      //Now you are adding some codes of your choice
      System.out.println("This is Inherited class's doSomething( ) ");
    Explanation :
    When you create an object of type InheritedClass and you call the method doSomething( ) then the original method gets executed first and later the rest of the code written in the InheritedClass 's doSomething( ) method gets executed.I hope this works for you. If you do not want the original to be executed just remove the super.doSomething( ) call.

  • Hr Administrator processing of leave request

    Hi Experts,
    We are implementing the leave request using WF WS12300111.
    We have a requirement in which we need to customize at TS12300104 which is for the HR Administrator to process in case the status change is not effected.
    The work item should come to the HR Admin. There should be 3 action buttons in the work item : Approve, Reject, Raise to another team.
    When we click on the "Raise to another team" button,  there should be a pop-up that appears in which the HR Admin can enter his comments. When he enters his comments, the WF should trigger an email notification that sends the comments that the HR Admin had entered in the pop up. Also they would be requiring a checkbox in the form just below the pop up if which checked will send the above comments entered in the pop up to another team. If this is not checked, the email notification is sent to the team to which it was initially supposed to send to. The control of the WF should return back to the same step once this is done.
    Could you please guide us as to how this could be achieved.
    Cheers,
    Belinda Clarke

    Hello Raj,
    Thanks a lot for your answer.
    What you are essentially implying is that first we call the 'CATSXT_SIMPLE_TEXT_EDIOTR'  followed by the 'POPUP_TO_CONFIRM'. We can utilize the CH_TEXT parameter of the 'CATSXT_SIMPLE_TEXT_EDIOTR'  to get the comments and pass the same to the email notification.
    I will discuss the same with the Users and ask them their opinion.
    Just in case we need to design a module pool screen with a text box and checkbox....is that going to be complex? I am sorry. I am not a technical person and dont have much idea about the same as our ABAP person is on leave.
    How can we then use the comments of the text box and checkbox validation inside the module pool inside our workflow.
    Thanks a lot for all the help rendered.
    Cheers,
    Belinda Clarke

  • Can't create item extending controller

    Hi everybody, I need your help.
    I need to put a checkbox validation in OIE Details Page > Expense Details. I tried to do it using Personalization, but Create Item icon is disabled. So I'm trying to do it extending the controller but I'm stuck in this point.
    I'm woriking on R11i. I think I have to extend "DetailDataInputCO". I used this code but the item doesn't appear.
    public class xxDetailDataInputCO extends DetailDataInputCO
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAMessageCheckBoxBean ccidbean = (OAMessageCheckBoxBean)pageContext.getWebBeanFactory().createWebBean(pageContext, OAWebBeanConstants.MESSAGE_CHECKBOX_BEAN, null, "xxValidation");
    ccidbean.setID("xxValidation");
    ccidbean.setUINodeName("xxValidation");
    ccidbean.setText("I confirm that all aspects of my time entries are accurate.");
    ccidbean.setPrompt("Test");
    Please, tell me what I'm doing wrong.
    Thanks in advance.

    Hi,
    I checked the Region, even I didnt see the "Create Item" image (not only enabled, the image itself not there).
    So you want to add a checkbox under "Flow Layout: Expense Details".(flowLayout id="DetailFields" )
    <your code start>
    OAHeaderBean hb = (OAHeaderBean)webBean.findChildRecursive("XXXID");
    //Second Create a bean to that
    //add Index to the Header Region
    hb.addIndexedChild(ccidbean);
    <your code ends>
    Instead of add the item to yoru custom Header Bean,
    Can you get the handle of the flowlayout with the id "DetailFields" and then add to that (There is a way to add it in a particular position also).
    import oracle.apps.fnd.framework.webui.beans.layout.OAFlowLayoutBean;
    OAFlowLayoutBean detailsFlowLayout = (OAFlowLayoutBean) webBean.findChildRecursive("DetailFields");
    if(detailsFlowLayout !=null)
    detailsFlowLayout.addIndexedChild(ccidbean);
    // You can use addIndexedChild(int childIndex, UINode child) to add it in a particular index.
    Thanks,
    With regards,
    Kali.
    OSSI.

  • Name prefix reservation invalid

    Hi All,
    I've created a name prefix reservation on my sld to be used in nem DC created by NWDS with success. After that I decided to change the nomenclarure so I've deleted the name prefix and created it again. Since the recreation any name prefix is created but the checkbox valid is't checked making it unusable in NWDS.
    With some further tests I've detected that this only happens when I create a name prefix reservation with purpose "used in generator".
    Any ideis what the cause is ?
    I'm using Netweaver CE 7.1 EHP1 (SP3).
    Thanks in advance.
    Edited by: Luis Pereira on Feb 10, 2011 11:18 AM

    Hi Luis,
    could you please rephrase your question for better understanding ?
    Thank you!
    Regards,
    Ervin

  • Form notification of work incapacity HR_NL_AAO_GAK

    We use the form 'notification of work incapacity' when a employee for
    long term ill or pregnant is. With this form a employer gets a
    compensation from the UWV. The form 'notification of work incapacity'
    is not up to date with the form from UWV nowadays.
    Can somebody help us?
    Thanks in advance.
    With kind regards,
    Roland

    Hello Raj,
    Thanks a lot for your answer.
    What you are essentially implying is that first we call the 'CATSXT_SIMPLE_TEXT_EDIOTR'  followed by the 'POPUP_TO_CONFIRM'. We can utilize the CH_TEXT parameter of the 'CATSXT_SIMPLE_TEXT_EDIOTR'  to get the comments and pass the same to the email notification.
    I will discuss the same with the Users and ask them their opinion.
    Just in case we need to design a module pool screen with a text box and checkbox....is that going to be complex? I am sorry. I am not a technical person and dont have much idea about the same as our ABAP person is on leave.
    How can we then use the comments of the text box and checkbox validation inside the module pool inside our workflow.
    Thanks a lot for all the help rendered.
    Cheers,
    Belinda Clarke

  • Tabular form validation(Checkbox) is not working for Interactive report

    Hi,
    I am using the oracle apex 4.0 and oracle 11g.
    I have written a below select query on interactive report as
    select
    apex_item.checkbox(1,RESIDD)||apex_item.hidden(2,RESIDD) row_selector,
    apex_item.text(3,RESNUM) as resnum
    from "PDRRES"
    and written the validation to display the error message( Function returning error text ) as
    DECLARE
    vRow BINARY_INTEGER;
    BEGIN
    -- apex_application.g_print_success_message := NULL;
    FOR i IN 1 .. apex_application.g_f01.COUNT
    LOOP
    vRow := apex_application.g_f01(i);
    apex_application.g_print_success_message := apex_application.g_f01(i)||'-'|| apex_application.g_f03(vRow) ;
    END LOOP;
    END;
    Output : No data found error message
    As far as it work for sql report with above logic because apex built in row selector
    but it fails in case of interactive report for some reason.
    Please suggest.

    Saroj Nayak wrote:
    Hi,
    I am using the oracle apex 4.0 and oracle 11g.
    I have written a below select query on interactive report as
    select
    apex_item.checkbox(1,RESIDD)||apex_item.hidden(2,RESIDD) row_selector,
    apex_item.text(3,RESNUM) as resnum
    from "PDRRES"
    and written the validation to display the error message( Function returning error text ) as
    DECLARE
    vRow BINARY_INTEGER;
    BEGIN
    -- apex_application.g_print_success_message := NULL;
    FOR i IN 1 .. apex_application.g_f01.COUNT
    LOOP
    vRow := apex_application.g_f01(i);
    apex_application.g_print_success_message := apex_application.g_f01(i)||'-'|| apex_application.g_f03(vRow) ;
    END LOOP;
    END;
    Output : No data found error message
    As far as it work for sql report with above logic because apex built in row selector
    but it fails in case of interactive report for some reason.
    Please suggest.NO DATA FOUND usually occurs when an i mplicit select does not find anything. It can also occur when referencing a collection element that has not been defined.
    You have 2 collectinons in the code you posted, apex_application.g_f01() and apex_applciation.g_f03. Since you are looping therough the COUNT attribute of g_f01 its reference ("I") is probably okay and the value store in vRow is probably not right. You can check this by using RAISE_APPLICTION_ERROR to see the value something like
    raise_application_error(-20000,'vRow="'||vRo2||'"');Remember that working with checkboxes is tricky. If the box is not checked nothing will be sent. You may need to define a default value when no value is submitted.

  • Validation in checkboxes (beginner)

    I have a form where user needs to tick a checkbox role. It works fine.
    But I need to make a validation with an error message if user doesn't tick any checkbox. In a few words user must at least tick a check box.
    My idea is a loop through the checkboxes. If at least one checkbox is ticked then it exists or else displays an error.
    I am a beginner on this subject so any help is appreciated and I hope I have explained myself well.

    Hello,
    You could loop through the records like the following:
    Firts_record;
    Loop
      if :blk.chkbox = 'O' Then
         return ;
      end if ;
      exit_when :system.last_record = 'TRUE' ;
      next_record ;
    End loop ;
    -- no box checked, raise an error
    Message(...);
    Raise form_trigger_failure ;But I'm sure another solution based on a calculated item would be more elegant...
    Francois

  • Validating Checkbox

    Hi all,
           I need to add  two checkboxes as parameters , these two checkboxes refer to the fields in prps table . These fields in PRPS table  are as well checkboxes.
      Therez  a Tcode CJ20n ,   i enter a project  number  and i go to  1st level WBS element and customer enhancement tab,  I have twofields ZZLIMC and ZZLIMF   these are check boxes .
    Therez is  a report which has a selection screen with  select options  as project number, month, year etc. 
    as checkboxes.
    I need to add two more parameters ZZLIMC  and ZZLIMF for this report as checkboxes,  so when user selects either one checkbox  or two checkboxes ,  for Eg:  If user checks ZZLIMC, the  report should validate only those  project numbers with the field ZZLIMC checked ( ie  equal to'X'  ) Because in the selection screen  of the report i have chosen  ZZLIMC.
    How do i proceed , please  let me know.
    regards,
    Dan

    for the two check boxes ,
    put the code in a perform to be validated .
    hi there.
    depending on the check box selection ,
    give the appropriate perform .
    put the perform in ,
       if check box is not initial
                       perform1.
                       else.
                       perform2.  
                       endif.
    proceed this way.
    vijay.

  • Checkbox error "The Entered Value is Not on the List of Valid Values".

    Hi All,
    I have a check box attribute inside a node which is bounded to a field of type CHAR 1. I have given the property and value for the attribute as follows:
    Attribute Name     ZCHECK
    Type assignment     Type
    Type                          ZTABLE-ZCHECK
    Read-only                         0
    Default Value     
    Null Value                           0
    Input Help Mode     Automatic
    Determined Input Help     ZCHECK
    Type of Input Help     Fixed values for domains
    Formatting     
    Compression     Default Value
    I have created an onToggle Event for it.
    Now when i execute my component i do the following.
    First i click on a button called 'EDIT'. Now the check box comes to edit mode. Now when i click on the checkbox i get the following error. "The Entered Value is Not on the List of Valid Values".
    When i try to debug, there is no problem in the 'INIT' method. The error is throw even before going inside the onToggle Event for check box.
    Please explain how to over come this.

    Hi,
    Check your field ZTABLE-ZCHECK, if it is of type CHAR1 then only possible values for checkbox should be 'X' and ' '.
    May be your domain has some other values in Fixed Value List.
    its better to bind checkbox with attribute of type boolean
    Also, the input help for attribute bound to checkbox doesn't makes any logic.
    Regards
    Manas Dua
    Edited by: Manas Dua on Feb 26, 2010 3:11 PM

  • Default Item Master Valid Checkbox

    Hi Experts,
    Is it possible to default the Valid checkbox (as checked) for all new items in the item master?
    Thanks,
    Jane

    Hello Jane,
    i dont think it is possible to make it default as checked since the valid tick box has a special function that Determines the validity period of an item master data.
    hope this may help u.
    Fidel

  • Checkbox or Radio Group - Valid Message

    Is there any code for or any way to get a valid checkbox or
    radio button to have a valid message to work properly in a form for
    validation
    thanks

    What? Are you getting errors? Can we see your code?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "jnutella101" <[email protected]> wrote in
    message
    news:gljijs$r89$[email protected]..
    > Is there any code for or any way to get a valid checkbox
    or radio button
    > to have a valid message to work properly in a form for
    validation
    >
    > thanks

Maybe you are looking for

  • Is it possible to limit order items on a custom form?

    I am hoping to sell 15 indivdual items through a custom online form.  I do not want to sell the same item twice.  I see how to list out the individual items for visitors to choose from when they complete the form.  Is it possible for the form to upda

  • Can I tell Premiere NOT to drop frames for 25fps 24 fps?

    I've got some 25 fps clips (which have undergone PAL speedup from the original 24 fps), excerpts from which are in a 24 fps sequence.  I want to tell Premiere to forget about dropping one frame each second (which is what it does to conform 25 fps to

  • Why doesnt my roboform work withfoxfire 4

    I just downloaded firefox 4 . I made it my default browser.when I go to one of my websites that require a password roboform doesnt work

  • Weblogic 10.3 for Solaris x86

    Where is it available to download ?

  • Dynamic Group pull from static group

    We've been restructuring our distribution groups to utilize dynamic groups for some areas.  We're finding this minimizes the amount of confusion and management we have to perform on the groups. What I'd like to know is if it is possible to create a d