Checking whether checkbox is inactive

Hello!
My report outputs lines from DB to a list. In the list, there are lines with checkboxes. I mark a checkbox -> do an operation on the specified line -> return to the list. I make the checkbox in the line inactive through the following statement:
DATA markfield TYPE c.
DO lines TIMES.
        READ LINE sy-index FIELD VALUE markfield.
        MODIFY LINE sy-index FIELD VALUE markfield
                                           FIELD FORMAT markfield INPUT OFF.
ENDDO.
Now, I want to check if the checkbox (markfield variable) is inactive and change it to active. How the logical expression should look like in the condition of IF statement?
I had this idea:
DO lines TIMES.
        READ LINE sy-index FIELD VALUE markfield.
        IF FIELD VALUE markfield FIELD FORMAT markfield INPUT OFF
             MODIFY LINE sy-index FIELD VALUE markfield
                          FIELD FORMAT markfield INPUT OFF.
        ENDIF.
ENDDO.
or:
DO lines TIMES.
        READ LINE sy-index FIELD VALUE markfield.
        MODIFY LINE sy-index FIELD VALUE markfield
                      FIELD FORMAT markfield INPUT ON
                      WHERE ....... " what condition?
ENDDO.
Count on your help
Regards

check these useful tips
if checkbox = 1.   "  It is marked and inactive
                 = X     " it is marked and active
                 = 0     " it is not marked and inactive
                 = space " it is not marked and active
u can modify ur code accordingly

Similar Messages

  • How to check whether checkbox is checked or not and to get label if checked

    Hi,
    I've used checkboxgroup, and i'm populating it dynamically using attribute node & attribute value.. like this
    IPrivateTestView.IWelcomNode wNode =wdContext.nodeWelcom();
         IPrivateTestView.IWelcomElement wEl,wE2,wE3;
         wEl=wNode.createWelcomElement();
         wNode.addElement(wEl);
         wEl.setWelValue("Welcome Boards");
         wE2=wNode.createWelcomElement();
         wNode.addElement(wE2);
         wE2.setWelValue("Traditional Welcome");
         wE3=wNode.createWelcomElement();
         wNode.addElement(wE3);
         wE3.setWelValue("Photograph");
    now i want to check whether checkbox is checked and how many checkbox has been checked and then i want that label values of checked boxes.. so pls help me out. if possible give me some sample coding...

    CheckBoxGroup.texts -> Welcom.WelValue
    In controller method (e.g. action handler):
    IWelcomNode node = wdContext.nodeWelcom();
    for (int i = 0; i < node.size(); ++i)
      IWelcomElement e = node.getWelcomElementAt(i);
      if (node.isMultiSelected(i))
        String text = e.getWelValue();
        /* checkbox #i is selected and variable "text" contains the text */
    Armin

  • Check whether checkbox interaction has been clicked

    Can anyone tell me whether it is possible to use the checkbox widget from the advanced interactions in Captivate 7 as part of a quiz as detailed below.
    What I would like to do is have 18 checkboxes on my slide with a button which when pressed will trigger an action to check if the correct ones have been checked. If they have I'll show correct feedback, if not I'll show incorrect feedback.
    I guess in short I'd like to know if it's possible to update a variable based on whether the checkbox is selected e.g. '_var = 1' or not '_var = 0'.
    I had considered creating a bespoke activity using click boxes and advanced actions to achieve the desired results but the iPad can't handle more than five click boxes on an individual slide.
    Many thanks in advance.

    Hello,
    I'm not sure that iPad will be able to support that, since one is never sure but it can be done in Captivate. My blog post about using checkboxes/radiobuttons for custom questions is the most popular post I ever wrote, when i screen the number of visits: http://blog.lilybiri.com/widgets-and-custom-questions-part-1
    The radiobuttons and checkboxes interactions have an identical functionality but are guaranteed for HTML5 output.
    You will see that the associated variables are no booleans at all but will be empty when checkbox for that item is not chosen, or equal to the item when chosen. This means that you'll have to create a conditional action that checks for the correct entries like this:
    IF v_one is equal to 'This is first item text' AND
         v_two is equal to v_null      AND...   where v_null is an empty variable, or you can also
    Since this is a static interaction, you will need an event to trigger that action: you could use a button 'Submit' or a slide event.
    http://blog.lilybiri.com/using-captivate-widgets-some-tips
    Lilybiri

  • Check whether the checkbox in a form is checked or not using javascript

    when we click a check box (TBD) it should set the value of a field to a default value '1234'. If we uncheck the checkbox, it should set the field as Null.
    I have defined the checkbox as STATIC2:;1234 in form.
    I used the onClick event on the checkbox and called a function to update the column.
    Inside the function i am checking whether the check box is checked using
    if (document.getElementById('P4_TBD').checked=true)
    document.getElementById('P4_COL1).value='1234';
    else
    document.getElementById('P4_COL1).value=''; /* or $s("P4_COL1", "");
    it works only when check box is checked. If check box is unchecked it is not setting the field as Null.
    I checked document.getElementById('P4_TBD').checked=false instead of else clause. it is not working.
    Please help me on this issue.
    Thanks,
    Ravi

    When you are using checkboxes or option button, the ID for your button is using an index. If you create a group of 3 checkboxes with the ID = "MY_CHECKBOXES", APEX will create the following IDs for each of your options : MY_CHECKBOXES_0, MY_CHECKBOXES_1 and MY_CHECKBOXES_2. If you want to test if the first checkboxe is checked, you'll use document.getElementById('MY_CHECKBOXES_0').checked.
    I didn't test for a lone checkbox, but I expect your checkbox to be "TDB_0" not "TDB" who is the frame around your checkbox group.

  • How to check whether a checkbox is checked or not

    hi all,
            how should i check whether a checkbos is checked or not. if it is checked then a parameter should be made as enabled can i make it in report program..
    thanks and regards,
    yogesh

    HI
    PARAMETERS: P_CK AS CHECKBOX USER-COMMAND CHK,
                             P1 MODIF ID AAA,
                             P2 MODIF ID BBB.
    AT SELECTION-SCREEN OUTPUT.
        LOOP AT SCREEN.
           CASE SCREEN-GROUP1.
              WHEN  'AAA'.
                 IF P_CK = 'X'.
                    SCREEN-ACTIVE = 0.
                 ENDIF.
              WHEN 'BBB'.
                   IF P_CK = SPACE.
                    SCREEN-ACTIVE = 0.
                 ENDIF.           
             ENDCASE.
             modify screen. 
        ENDLOOP.
    Max

  • How to check whether a checkbox is checked

    This code:
          if (checkBoxCSharpShown.IsChecked)
            checkBoxCSharpShown.IsChecked = false;
    elicits:
    "Cannot implicitly convert type 'bool?' to 'bool'. An explicit conversion exists (are you missing a cast?)"
    How can I check whether the checkBox is checked?
    Delphi ancient/C# newbie

    So why is this so complicated? Why doesn't a check box have a true/false value? The answer is that a checkbox can (optionally and not by default) be a three-state control.
    When ThreeState is true, the checkbox has three states:
    Checked
    Not Checked
    Indeterminate
    They correspond to these tests:
    bool checked = IsChecked.HasValue && IsChecked.Value == true
    bool unchecked = IsChecked.HasValue && IsChecked.Value == false
    bool indeterminate = IsChecked.HasValue == false
    One of the ways a three-state checkbox is used is in a property dialog. If the user selects multiple items (all having some boolean property called 'Active'--for instance), what should the proprety dialog show for that selection if the value of Active is different among the selected items? Should it show True? That wouldn't work, they are not all True, same for False. So instead the property dialog would show Indeterminate, indicating that the collection of Active values is neither True, nor False.
    Now having said all of that I'll refer you to:
    CheckBox.Checked
    This is true or false. If the ThreeState property is True, Checked returns True for True or Indeterminate.

  • How to make checkbox field inactive in the output of ALV report.

    Dear All,
    I am having one ALV report in whose output there are checkboxes against each record. Example: the output columns of my ALV report are:
    Checkbox, Sales Document No, Billing Document No.
    Now, my requirement is that if for the Sales Document No there exists any Billing Document No in the output then the Checkbox should be inactive but if the Billing document coloumn is empty for a particular Sales Document No then only the Checkbox field should become active.
    Kindly guide me on how to make this checkbox field inactive.
    Waiting for your reply.
    Warm Regards,
    N.Jain

    Hello,
    Follow the below steps:
    1.Define as--> GS_STATUS TYPE SLIS_STATUS,
    2.check layout check box fieldname is not initial.
          then set the status according to your logical conditions
          GS_STATUS-FLG_CHECKBOXES_ACTIVE = 'X'
    Hope this would help you.
    Let me know your feedback.
    Regards,
    Raju

  • Need to Check whether the program is Active or not

    Is there any statement where i can check  whether the report program is Active or not.
    Using below statement i am  copying the entire Code in internal table it_source.Before copying in the source code in the  internal table  it_source.I need to check that program is Active or not if it is not active and i need to give a pop message and forceliy i need to Active it.
    read report wa_trdir-name into it_source.

    Hi Srini,
    i just checked the table REPOSRC for a program which was not activated, i got two entries for the program one as active and one as inactive ,as soon as i activated the program there was a single entry.
    so is it that we should check if we have any inactive entry in the table for the program?.
    Regards,
    gunjan

  • How can I check a checkbox status?

    I am writing an invoice which involve parts and labor for an auto shop.  A check box precedes each line.  If the checkbox is checked, then the line is for a part, which I will use to add parts and labor separately for tax and information purposes.
    Question:  Using Acrobat Professional 8, what Java code would check whether a checkbox named CB1 is checked or not?.
    Papaturro

    Post your question in the forum for Acrobat Scripting.

  • Dynamically checking off checkboxes

    Hi,
    I have a simple form with some checkboxes.  The user checks them off and the values get store in a db.
    I like to eat:
    Form page:
      <input type="Checkbox" name="fruit" value="apples">apples ....
    - apples
    - oranges
    - bananas
    - grapes
    So on the edit page if the user has checked off all, but oranges it should be displayed from the db like so:
    x apples
    - oranges
    x bananas
    x grapes
    I started by doing this, but it doesn't quit cut it.  Maybe merging the values of the form fields and the db fields into one list would work?
    <cfoutput query="getinfo">
             <cfif fruit EQ '#fruit#'>
             <input type="Checkbox" name="fruit" value="#fruit#" checked>x apples
             <cfelse>
             <input type="Checkbox" name="fruit" value="#fruit#" >apples
    </cfoutput>
    Any ideas would be much appreciated!

    Database table: fruitChoice
    userID apple orange banana grape
    x147d
    1
    0
    1
    1
    a065b
    0
    1
    1
    1
    t992w
    1
    0
    1
    0
    Query to fetch data from the database:
    <cfquery name="getInfo" datasource="myDSN">
    select apple,orange,banana,grape
    from fruitChoice
    where userID = '#session.userID#'
    </cfquery>
    Query to insert data into the database:
    <!--- I use the submit field, not a checkbox, to verify whether the form has been submitted. If you don't check a checkbox, x, then the variable form.x wont exist when the form is submitted --->
    <cfif isDefined("form.sbmt")>
    <cfset isAppleChosen=0>
    <cfset isOrangeChosen=0>
    <cfset isBananaChosen=0>
    <cfset isGrapeChosen=0>
    <cfif isDefined("form.apples")>
        <cfset isAppleChosen=1>
    </cfif>
    <cfif isDefined("form.oranges")>
        <cfset isOrangeChosen=1>
    </cfif>
    <cfif isDefined("form.bananas")>
        <cfset isBananaChosen=1>
    </cfif>
    <cfif isDefined("form.grapes")>
        <cfset isGrapeChosen=1>
    </cfif>
    <cfquery name="saveInfo" datasource="myDSN">
    insert into fruitChoice (userID,apple,orange,banana,grape)
    values ('#session.userID#',#isAppleChosen#,#isOrangeChosen#,#isBananaChosen#,#isGrapeChosen#)
    </cfquery>
    </cfif>
    And, finally, the form
    <form>
        <p>
        <cfif getinfo.apple EQ 1>
            <input type="Checkbox" name="apples" checked>apples
        <cfelse>
            <input type="Checkbox" name="apples">apples
        </cfif>
        </p>
        <p>
        <cfif getinfo.orange EQ 1>
            <input type="Checkbox" name="oranges" checked>oranges
        <cfelse>
            <input type="Checkbox" name="oranges">oranges
        </cfif>
        </p>
        <p>
        <cfif getinfo.banana EQ 1>
            <input type="Checkbox" name="bananas" checked>bananas
        <cfelse>
            <input type="Checkbox" name="bananas">bananas
        </cfif>
        </p>
        <p>
        <cfif getinfo.grape EQ 1>
            <input type="Checkbox" name="grapes" checked>grapes
        <cfelse>
            <input type="Checkbox" name="grapes">grapes
        </cfif>
        </p>
        <p>
        <input type="submit" name="sbmt" value="send">
        </p>
    </form>

  • Hi. Im currently living in New Zealand. Just bought an iphone 5s yesterday from a shop called Parallel Brand Imports in Auckland. When i came home i called apple to check whether my phone is locked or not and they said that its locked to US Verizon even t

    When i came home i called apple to check whether my phone is locked or not and they said that its locked to US Verizon even though when i checked on iphoneimei it said sim status unknown. I put my 2degrees (NZ carrier) in today and it worked fine. I got into the settings and turned off the automatically part of carrier and there were 3 options for me to choose 2degrees vodafone and telecom. Because of that, im quite confused abt whether my phone is locked or not since im from vietnam so i want to know if i can use vietnamese sim card when i go home. Thanks for your help@verizon

    Hi tranvietanh - I appreciate you contacting us all the way from New Zealand! I can confirm that the iPhone 5s and all of our other 4G LTE device are not SIM locked. As the carrier in New Zealand may not support the exact same frequencies and cellular bands that we use on our network, we are unable to support the device if using a 3rd party SIM.
    Thank you,
    YaleK_VZW
    Follow us on Twitter @VZWsupport

  • How to check whether an invoice has been paid or not?

    Hi,
        In FI, how should I check whether an invoice is paid fully and also whether it has any residual item?
    And how should I pay an invoice with some residue? Which transaction I should use and what are the steps to do that?
    Since I'm new to FI, any guidance will help me a lot...
    Thanks,
    Priya.

    Hi Priya,
    you create a posting with residual items as follows:
    <b>Incoming payment</b>
    1. Start transaction F-28
    2. Enter all required information and click on <i>Process open items</i>
    3. On the next screen click on the tab <i>Res. items</i>
    4. Make sure that only the items that you want to pay are highlighted ((Net amount appears in blue)
    5. For each line item enter the residual amount that is still to be paid (Example: you have one invoice over 100 USD and 80 USD are paid, you enter 20 USD, since this is your residual that still needs to be paid)
    6. Save
    <b>Outgoing payment</b>
    1. Start transaction F-53
    2-6. is identical to incoming payment
    Regards,
    Claus

  • How to check whether a file is present in the UNIX directory of app. server

    Hi,
            I am creating files in the UNIX directory in the application server using :
                       CONCATENATE '/sapmnt/RD1/interfaces/client670/'
                       p_fname '.CSV' INTO w_filename.
               OPEN DATASET w_filename FOR OUTPUT IN TEXT MODE.
              LOOP AT t_output1.
                      TRANSFER t_output1 TO w_filename.
              ENDLOOP.
             CLOSE DATASET w_filename.
    I am unable to check whether a file with the same name exists or not. How to check the duplicate state of the file.

    You can use the following fm
    RZL_READ_FILE
    or
    use OPEN DATASET FOR INPUT.

  • To check whether there is any format mismatch between columns of two tables

    Hi,
    I have got a table 'T' (Source table) with columns
    T_Lat Varchar2(50);
    T_Amt Varchar2(50);
    T_Cat Varchar2(50);
    (all these above columns have numeric data)
    Actually, Here I have taken only the columns having numeric data from table 'T'
    Now I have another table 'M'(Destination Table) with columns
    M_Lat number;
    M_AMt number;
    M_Cat number;
    Now my task is I have to do a prevalidation of the data in 'T' that whether all the data in those columns will suit for the destination table columns respectively (to check whether there is any format mismatch). This check should be done dynamically(as there are more than 50 columns in real).
    Note:- There is no unique mapping column for these two tables
    I think it can be done using arrays or plsql tables. But i dont have idea using them.
    Can any one help me in this regard.

    Why, What's wrong with these post and there responce?
    {message:id=10480898}
    {message:id=10472737}

  • TO check whether import is running

    Hi how to check
    whether import is running or not.I am using oracle 8.1.7 in solaris 8 .I used ps -ef | grep imp
    in os level its showing its running
    i am importing the indexes only no data,When i am checking the freespace in index tablespace its not reducing.i checked the transaction it showing 1 transaction running.
    How i confirm wheter import is running fine.The log also not updating ( i am using split and compress) after completing the job only i think it will update
    How i check whether this process is running
    with regards
    ramya

    Hello !
    You can try this:
    select substr(sql_text,instr(sql_text,'INTO "'),30) table_name,
    rows_processed,
    round((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60,1) minutes,
    trunc(rows_processed/((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60)) rows_per_min
    from sys.v_$sqlarea
    where sql_text like 'INSERT %INTO "%'
    and command_type = 2
    and open_versions > 0;
    Regards,
    Jean-Luc

Maybe you are looking for

  • Love App Tabs but have several that just show a white page as icon how do I get them to appear as a site logo?

    I love the new App Tabs but have several that when pinned just show a white page as the icon, so you have to mouse over them to figure out which one is which. Example is bankdirect.co.nz. Is there a way of getting the site logo to show up so you can

  • Beats Pill 2.0 No Longer Works on iPad 2

    My iPad 2 no longer connects to the Beats Pill.  Why did it all of sudden stop? I have an iPad 2 (IOS 7.1) and Beats Pill 2.0. It used to work on the iPad, but recently stopped.  It still works with my Windows Nokia phone, so I know the Beats Pill is

  • Apple Laserwriter 4/600 Won't Print using Lion 10.7.4

    Yesterday I bought a new MacBook Pro running 10.7.4 and discovered I cannot print to my Laserwriter 4/600 using Asantetalk connected to ethernet (which is connected via a router to my AirPort Extreme (round, white circa 2005). If I use one of my olde

  • Problem loading email address

    I have an email with a private domain, so am selecting "other" for type of email. Once typing in the email address and password, I get the error "Mail couldn't sign in. Please try again". I am using the correct details. Could someone advise please?

  • Alignment problem in IE and Firefox

    i am using this code for creating a table in my jsp, code is working fine for IE but in mozilla firefox its giving unnecessary spaces. i am not getting,why in firefox this problem is coming or which tag is not acceptable in firefox...... <table width