How to make checkbox uneditable

I have a problem about how to make checkbox uneditable.
1. the checkbox DO not respond to user mouse click
2. and the text company with checkbox is not greyed.
setenable is not i wanted, because 2 is not satisfied
thanks in advanced.

If I understand the question, then my replies in this thread should help you out:
http://forum.java.sun.com/thread.jsp?forum=57&thread=122112

Similar Messages

  • 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

  • How to make checkbox to be pre-selected in ALV

    Hi all!
    I`m creating ALV report and I want to create checkbox in the first column of the row. So I have a field SEL(1) in my structure and I`ve made the fieldcat:
    gs_fcat-col_pos = 5.
      gs_fcat-coltext = 'Check'.
      gs_fcat-fieldname = 'SEL'.
      gs_fcat-tabname = 'GT_TREE9001'.
      gs_fcat-outputlen = 10.
      gs_fcat-checkbox = 'X'.
      gs_fcat-edit = 'X'.
    That works, checkbox is displayed.
    But now I need to make all the checkboxes to be checked for the first start of my program.
    I mean when user executes my report all the checkboxes must be checked by default.
    I have tried to do following:
    loop at gt_tree9001.
    gs_tree9001-sel = 'X'.
    modify gt_tree9001 from gs_tree9001.
    endloop.
    But it doesnt work, I now see checkbox and mark 'X' near but not the checked ckeckbox.
    Any help appreciated!

    Solved.
    My final code:
    data: lv_tree_size TYPE i,
                ls_layout_item TYPE lvc_s_laci,
                lt_layout_item TYPE lvc_t_laci,
                lv_ind TYPE LVC_INDEX.
          CLEAR ls_layout_item.
          ls_layout_item-fieldname = 'SEL'.
          ls_layout_item-class = cl_gui_column_tree=>item_class_checkbox.
          ls_layout_item-editable = 'X'.
          ls_layout_item-u_class = 'X'.
          ls_layout_item-u_editable = 'X'.
          ls_layout_item-u_chosen = 'X'.
          ls_layout_item-chosen = 'X'.
          append ls_layout_item to lt_layout_item.
    call method g_tree9001->set_table_for_first_display
          EXPORTING
            i_save              = 'A'
            is_variant          = ls_variant
          CHANGING
            it_sort             = gt_sort9001
            it_outtab           = gt_tree9001
            it_fieldcatalog     = gt_treefcat9001.
    DESCRIBE TABLE gt_tree9001 LINES lv_tree_size.
    DO lv_tree_size TIMES.
            CALL METHOD G_TREE9001->CHANGE_LAYOUT
              EXPORTING
                I_OUTTAB_INDEX = sy-index
                IT_ITEM_LAYOUT = lt_layout_item                .
    ENDDO.
    The main trick is in u_class, u_editable, u_chosen. These params say that layout should be changed. Only this way it will work.
    And some helpful links:
    ALV tree get selected checkbox
    Checkbox ALV Tree CL_GUI_ALV_TREE
    ALV TREE-Checkbox
    CL_GUI_ALV_TREE and Checkboxes
    Report BCALV_TREE_ITEMLAYOUT is also very helpful.

  • How to make checkbox option enable/disable

    Hello,
    i am newbie in coldfusion...i want to make an option answer after my first check box answer is true
    code :
    <tr>
        <td><table width="100%"  border="0">
      <tr>
    <tr>
        <td>Do you have a car? </td>
        <td><input name="car_type" type="checkbox" value="1">Yes<input name="car_type" type="checkbox" value="0">No</td>
    </tr>
    <tr>
        <td width="100%"></td>
        <td><strong>(Select your car type)</strong></td>
    </tr>
      <tr>
        <td></td>
        <td><input name="car_bmw" type="checkbox" value="1">
          BMW</td></tr>
       <tr><td></td>
        <td><input name="car_mercedes" type="checkbox" value="1">
          Mercedes</td></tr>
        <td></td>
        <td><input name="car_toyota" type="checkbox" value="1">
          Toyota</td>
         <td></td>
        <tr><td>
        </td><td>Others<input name="car_others" type="text" size="20" maxlength="100" /></td>   
      </tr>
      <tr>
    Thank u

    What have you tried? 
    This is a client-side interaction, not server-side, so it should be fairly straightforward to do in JavaScript (I'd recommend using jQuery as it will make things a bit easier).
    -Carl V.

  • How to make checkbox checked by default

    hi,
    i have created a checkbox and binded the 'Checked' property of the checkbox to a attribute of type WDY_BOOLEAN. I have set the attibute value to 'True' in my code. but this s not working. Pls can anybody tel me where i have went wrong ?
        DATA lo_nd_check_box TYPE REF TO if_wd_context_node.
         DATA lo_el_check_box TYPE REF TO if_wd_context_element.
         DATA ls_check_box TYPE wd_this->element_check_box.
         lo_nd_check_box = wd_context->get_child_node( name =
    wd_this->wdctx_check_box ).
         lo_el_check_box = lo_nd_check_box->get_element( ).
       get all declared attributes
         lo_el_check_box->set_attribute(
           EXPORTING
             name = 'text'
             value = 'true' ).
    thanks,
    aishwarya.

    Hi,
    Please try with the below code hope it helps.
                       DATA lo_nd_inp_sflight TYPE REF TO if_wd_context_node.
                       DATA lo_el_inp_sflight TYPE REF TO if_wd_context_element.
                       DATA ls_inp_sflight TYPE wd_this->element_inp_sflight.
                       DATA lv_chkgrp LIKE ls_inp_sflight-chkgrp.
                     navigate from <CONTEXT> to <INP_SFLIGHT> via lead selection
                       lo_nd_inp_sflight = wd_context->get_child_node( name = wd_this->wdctx_inp_sflight ).
                     get element via lead selection
                       lo_el_inp_sflight = lo_nd_inp_sflight->get_element(  ).
                     get single attribute
                       lo_el_inp_sflight->set_attribute(
                         EXPORTING
                           name =  `CHKGRP`
                           value = abap_true ).
    Regards,
    Basuvaraj.P

  • How to make an checkbox editable and uneditable within a single alv output.

    Hi,
    How to make an checkbox editable and uneditable within a single alv output depending on condition.
    I have used Reuse_alv_grid_display.
    In my output every checkbox is editable. i have used edit = 'X'.
    I want editable checkbox for correct value and uneditable checkbox for incorrect value in a single alv

    >
    Mukilansap wrote:
    > I want editable checkbox for correct value and uneditable checkbox for incorrect value in a single alv
    Use alv styles to achieve this, set the style for each record before displaying the ALV. Structure LVC_S_STYL.
    Take a look at the example BCALV_EDIT_02, it is OOPS based, but check how the style table is filled.
    regards,
    Advait

  • How to make row selection by checkbox in ADF table

    hello,
    using jdev11g TP4 , fusion web application
    when i drag my view object as ADF table into jsf page,
    i want to know how to make row selection by checkbox
    thanks
    greenApple
    Edited by: greenApple on Nov 10, 2008 11:33 AM

    Hi,
    the tree component has changed compared to 10.1.3. You no longer have a tableSelectmany component that renders as checkboxes. Instead you use the ctrl key and select the table rows
    Frank

  • How to make the Sourcelist checkbox in Material MasterPurch view- Mandatory

    Hi All,
    Can anyone please let me know how to make the Source list checkbox mandatory in Material Master.
    Ie for example if i am creating and ERSA Material, i want to make the source list option mandatory by default whenever i create an ERSA Material. I know the option to make the Source List mandatory at Plant Level.
    But i want to make source list mandatory at material. By default..it has to appear mandatory on the Material. I want to do this
    specially based on Material Type. Ie i want this to be mandatory only for specific material types i chose.
    Please suggest me the possible ways.
    Thanks
    Sridevi

    Hi, Get Source List Field sel. group from OMSR which is 16 by default change it to new field say 210, then goto OMS9 enter Field sel. group 210,  Check for field 'MARC-KORDB' & change it to mandatory for Field reference ERSA, if you cannot find there you need to create new field reference & assign it to ERSA in OMS2 &

  • How to lock a customer master and how to make a parameter checkbox as defau

    how to lock a customer master and how to make a parameter checkbox as default checked?

    The Account Groups is the one which maintains the field status for the customer master. In case you want to change the field status (i.e. changage the mandatory field to optional field) you need to maintain the same (i.e. changage the mandatory field to optional field) by navigating to the field status screen and then to the general data tab. Here you can change the status of the your field by selecting the 'OPTIONAL' radio button for the respective field and then save the transaction.
    Reward Points if useful.

  • CS4|5 Exporter - how to make slider with no checkbox?

    Hi all,
    I can't work out how to make a slider with no checkbox next to it.
    Also it is possible to make two fields next to each other?
         eg:
                   M: 15     N: 3
    Zac, it would be nice if you mentioned in the Docs that multi choice widgets are a Radio Button pair for < 3 otherwise it's a Drop Down box.

    Hi Rallymax,
    The slider + checkbox behavior was a problem with the first version of the exporter API in CS4, but in CS5 it has been fixed.  The problem was in how the exporter host layer interpreted the parameters specified via the Export Param Suite.  So when making presets for your exporter, it would make sense to use CS5, since CS4 has the problematic behavior.  I haven't tried this, but bringing those presets from CS5 back to CS4 may solve the problem in CS4.
    So far we haven't had any need or request for two editable fields side-by-side.
    Sure, I can add that detail to the docs.
    Regards,
    Zac

  • How to make a checkbox mandatory

    Hello,
    I created  a checkbox where I want the user to check that they have read and acknowledged a privacy statement.
    I am curious how I make the checkbox mandatory, as I dont see an option in the Object Pallete.
    Thanks in advance!
    Nik

    Write the following line code on initialize event of the CheckBox to make it mandatory.
    this.mandatory = 'error'
    Nith

  • How to make a checkbox tag functionable?

    i added a checkbox tag from insert menu......when i clicked on it......nothing happens.....i mean how to make it function like when i click on it .....it becomes checked.....and when i click it again it becomes unchecked.....the problem i face is nothing happens when i click on it....

    Checkbox is a form element.  Did you put it inside <form> tags? 
    <form action="form-processing-script.php">
    <label for="option1"> Option 1 </label>
    <input name="option1" type="checkbox" value="option1" />
    <label for="option2"> Option 2 </label>
    <input name="option2" type="checkbox" value="option2" />
    <label for="option3"> Option 3 </label>
    <input name="option3" type="checkbox" value="option3" />
    <p><input name="submit" type="submit" value="Submit" /> </p>
    </form>
    Option 1 Option 2 Option 3
    Nancy O.

  • How to make a CheckBox for a report parameter?

    Hi,
    How to make a CheckBox for a report parameter?
    thanx

    design ur parameters forms using forms and call ur report form there

  • How can I make checkbox same radio

    Hi all,
    I have a group check box with deferen name. How can I make checkbox same radio button (just check only one)
    Thanks
    HuyHH

    2 solutions:
    -use radio (hum sorry)
    -use a onCheck javascript event on every checkbox to de-check all others

  • HOW TO MAKE MATERIAL DESCRIPTION  FIELD IN SALES ORDER AS UNEDITABLE

    how to make the material description field as un editable in sales order , pls help me

    Through Transaction Variant <b>SHD0</b>
    Refer the thread
    /message/4083386#4083386 [original link is broken]
    Message was edited by:
            SHESAGIRI.G

Maybe you are looking for

  • How do run iPhoto from an external hard drive?

    I've moved my entire iPhoto library to an external hard drive and now can't remember how to open up iPhoto from that drive.

  • Playing videos from the iPhone 4s to a projector - best way...?

    Ok, I want to connect my iPhone 4S to a projector via a HDMI cable. I will be playing a sequence of videos from the iPhone, so need to be able to skip through them when they're done, but WITHOUT any icons showing on the projector screen (if that make

  • Best picture file format

    I generally don't do photo montages.  However, I agreed to do a 200 pic photo montage for a friend.  Scanned all pics and saved as jpegs - Exported to media encoder and it's taking forever to encode (going on 20 minutes now).  what is the best file f

  • Can't open pictures in elements 6.0 editor after 1 of january 2014

    Hi, I've bought PS Elements 6.0 for years ago. Last year I changed a computer and instal PS on the new computer with windows 7.  All was OK till 2014 Now whe I choose a picture to open in editor program stopped... I can't send new register - I see al

  • How do I connect my printer to my iPad ?

    Is there any way I can connect my iPad to my printer using wifi from another room?