How tdo you disable a check box

Hi
I'm been trying to dynamically disable (grey out) a check box using
SET_ITEM_PROPERTY('checkbox name', ENABLED, PROPERTY_FALSE);
This is not working and when I display the value of ENABLED using GET_ITEM_PROPERTY it shows TRUE.
Can anyone tell me how to dynamically grey out a check box?

Dear Friend,
Whatever u have written is perfectly all right. Only thing can be checked is, do you have 2 items with same name if 2 different blocks. if so then provide name of block in Set_item_property statement. This technique works.
Regards,
Manish Trivedi
Software Developer
India
[email protected]

Similar Messages

  • How can I disable a check box in one screen?

    Hi,
    I need to disable a check box in the screen 1106 on the program of the transaction F110. I can do that with a user exit or what I can use to do that?
    Thanks!

    you have two options :
    user exit  , check if there is one for this transction
    i attach program below .
    field exit  :
    Within the CMOD transaction type PRFB in the transaction window.
    PRFB is the ok-code to bring up the field exits.
    You can also use Program RSMODPRF to create field exits.
    hope its help u .
    program for user exut  :
    *& Report  ZUSEREXIT                                                   *
    report zuserexit no standard page heading .
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
      select single * from tadir where pgmid = 'R3TR'
                                   and object = 'PROG'
                                   and obj_name = tstc-pgmna.
      move : tadir-devclass to v_devclass.
      if sy-subrc ne 0.
        select single * from trdir where name = tstc-pgmna.
        if trdir-subc eq 'F'.
          select single * from tfdir where pname = tstc-pgmna.
          select single * from enlfdir where funcname =
                                              tfdir-funcname.
          select single * from tadir where pgmid = 'R3TR'
                                    and object = 'FUGR'
                                    and obj_name eq enlfdir-area.
          move : tadir-devclass to v_devclass.
        endif.
      endif.
      select * from tadir into table jtab where pgmid = 'R3TR'
                            and object = 'SMOD'
                            and devclass = v_devclass.
      select single * from tstct where sprsl eq sy-langu and
                                       tcode eq p_tcode.
      format color col_positive intensified off.
      write:/(19) 'Transaction Code - ',
           20(20) p_tcode,
           45(50) tstct-ttext.
      skip.
      if not jtab[] is initial.
        write:/(95) sy-uline.
        format color col_heading intensified on.
        write:/1 sy-vline,
               2 'Exit Name',
              21 sy-vline ,
              22 'Description',
              95 sy-vline.
        write:/(95) sy-uline.
        loop at jtab.
          select single * from modsapt where sprsl = sy-langu and
                                             name = jtab-obj_name.
          format color col_normal intensified off.
          write:/1 sy-vline,
                 2 jtab-obj_name hotspot on,
                21 sy-vline ,
                22 modsapt-modtext,
                95 sy-vline.
        endloop.
        write:/(95) sy-uline.
        describe table jtab.
        skip.
        format color col_total intensified on.
        write:/ 'No of Exits:' , sy-tfill.
      else.
        format color col_negative intensified on.
        write:/(95) 'No User Exit exists'.
      endif.
    else.
      format color col_negative intensified on.
      write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    at line-selection.
      get cursor field field1.
      check field1(4) eq 'JTAB'.
      set parameter id 'MON' field sy-lisel+1(10).
      call transaction 'SMOD' and skip first   screen.

  • How do you get different check box fields to display based upon a list box selection?

    I am a relative newbie with LifeCycle Designer ES using v.8.2.1 to create interactive forms to replace manual hardcopies.  I am working on a form that has a few pull down list boxes.  I want different check box fields to display based upon the selection of an item from one of the pull down lists.
    Any guidance on the best way to accomplish this would be greatly appreciated.

    Hi,
    Here is a sample with script in the change event of the dropdown. You may want to clear previous checkbox choices once the subform is hidden.
    It is good to group objects in a subform - that way you only need to hide the subform and not each object in turn.
    Good luck,
    Niall

  • How do you disable automatic checking of email in Mail.app when lid is closed ?

    In Mail.app my settings dictate that email will only be downloaded manually when I want it to be downloaded. However, if I close the lid of my Macbook Pro Retina with Mail.app running, it will download mail automatically for me.
    Surely it should respect the settings of Mail.app and if I want it to be downloaded manually, then it should never download email automatically when the lid is closed ? Is there a way around this, or someway to disable it aside from having to close down mail everytime I shut the lid ?

    It sounds like your machine is using "Power Nap".
    Yes? No?
    Mountain Lion: About Power Nap
    If this is in fact the case, I agree it should respect your email settings, but I guess it doesn't, based upon your description.
    Apple - Mac OS X - Feedback
    You can turn power nap off in System Preferences, Energy Saver.
    charlie

  • How tdo you disable 'pairing' beep

    Does anybody know how to switch off (ar at least reduce the volume) of the 'beep' signal when your i-phone 4 has been paired successfully.  I have a Bury System 8 car kit and everytime the phone pairs with it I get an incrediby loud beep.  Have tried switching the car audio system off, placing i-phone in mute and reducing i-phone and car audio system volume levels without success.  Give unsuspecting passengers quite a shock!
    Thanks

    The phone isn't causing it, the in car system is. Consult the manual for your system.

  • Using Javascript to disable a check box

    Friends,
    I am stuck on what should be a simple requirement and I am hoping you can help.
    I need to disable a form region checkbox if a field on the same form region has anything entered.
    What I have done so far is:
    1) On the item that determines whether the check box should be disabled I have added a call to my Javascript function "onChange="disableDefaultDisplay();" in the "HTML Form Element Attributes"
    2) My javascript funcion is: (this is the basic version, all I am trying to do is disable the check box at this point)
    function disableDefaultDisplay()
    alert("Start of the function");
    var defaultDisplay = document.getElementById("P13_DEFAULT_DISPLAY");
    *defaultDisplay.enabled = false;*
    alert("End of the function");
    Using a combination of firebug and the alert messages I can see that function is called at the correct time (i.e. when the user changes and then leaves the field) and that the values of the variable, defaultDate are set but my attempts to disable the checkbox have yet to work!
    When I look at the type of the checkbox (through the source of the page or firebug) I see the checkbox has the following "fieldset#P13_DEFAULT_DISPLAY.checkbox_group" Do I need to do anything different to disable this type of object?
    Any help would be very much appreciated!

    Hi Andy,
    I was returning to this thread to update it with how I resolved it, so thanks for the detailed response.
    In a nutshell, the solution I used was a loop through the field set(of which there is only one item in it) and disabling it.
    Where you say:
    Secondly, checkboxes are, as you have seen, wrapped within a fieldset tag. The fieldset tag has an ID of the page item name. Each checkbox within that tag has its own ID value, which will be the fieldset ID plus "_n" (where n is a sequential number starting from 0) - thus, the first checkbox will be, for example, "P1_CHECKBOX_0", the second will be "P1_CHECKBOX_1" and so on.From my searching for a solution I had expected to see something like that. But the source for the item I was trying to disable is shown below and I can't see any numbers after it.
    Do you know why? Is it because it is the only item?
    <fieldset id="P13_DEFAULT_DISPLAY" class="checkbox_group">
    <input type="checkbox" name="p_v18" value="Y" id="P13_DEFAULT_DISPLAY" /></fieldset>
    Regards
    Ian
    Edited by: IanC2 on Feb 8, 2009 8:07 PM
    Edited by: IanC2 on Feb 8, 2009 8:08 PM

  • How to get the "delete" check box back?

    Hi Guys,
    I just used the "Migrate to Interactive Report" feature. After doing so, the check box is gone that is used to indicate rows to delete. A copy of the region is marked as "disabled" and the check box is still there, but it's not in the newly created region. Without that check box, my page has no way to delete rows. How do I add the check box to the new Interactive Report region? I'd rather not re-create the page from scratch.
    Thanks,
    Kim
    P.S. I'm using Apex 4.1 and Oracle 11g xe - all running on Windows 7.

    How about something like this? Instead of a check box add a new column with a delete image, you can use something like delete.gif (#IMAGE_PREFIX#delete.gif). The downside is that will be deleting one at a time, but in my experience this may not be an issue.
    Add a hidden item to hold the ID of the row your want to delete. We'll call it P1_ID.
    The new column with the delete image will need to "branch" to a URL and use this code (ALL in one single line)
    apex.confirm("Are you sure you want to delete?", {
      request:"DELETE_ROW",
      set:{"P1_ID":#ID#}
      });Then add a page process that fires when the request is DELETE_ROW
    Would probably look something like this:
    delete from some_table where id = :P1_ID;
    A similar technique can be used for checkboxes, but it's a little more advanced as you need to loop through the selections.
    Oh and add the column to the IR you don't really need to select anything. Or better yet, you could re-use the ID column of the report if you have one as your delete column. The #ID# on the code above needs to be the name of your column. So if your column is EMPNO the above would be #EMPNO# instead of #ID#.
    Hope this helps.
    -Jorge

  • Disable individual check boxes in ALV

    Hi all,
    My requirement is that I have one check box against each row. User clicks on the check box then that row is selected and on clicking the push button, bapi is called.
    If result of bapi is success, I want to disable the check box for that particular row/rows. Can you please tell me how I can achieve that? I know how to disbale all the check boxes in the list but I dont know how to disable the individual check boxes.
    Thanks and regards,
    Ridhima

    For that you need to play with the EDITABLE feature of the ALV at the field level.
    Declare a field STYLE type LVC_T_STYL as a part of your internal table. Now, for each row, append the fields of that row to the STYLE column specifying whether it has to be editable or not. You can use the attributes cl_gui_alv_grid=>mc_style_enabled and cl_gui_alv_grid=>mc_style_disabled for this.
    You can look at these threads
    https://forums.sdn.sap.com/click.jspa?searchID=524737&messageID=473177
    https://forums.sdn.sap.com/click.jspa?searchID=524737&messageID=2469829
    https://forums.sdn.sap.com/click.jspa?searchID=524737&messageID=1947071
    Regards,
    Ravi
    Note - Please mark all the helpful answers
    Message was edited by:
            Ravikumar Allampallam

  • How do you disable iPod Auto Update with iTunes?

    How do you disable iPod Auto Update with iTunes? I know there is a key press combo that will do it but I forget which keys. Anyone?
    Intel Piii   Windows XP Pro  

    Keep iTunes from automatically updating your iPod
    Another Easier Alternative:
    While connecting the iPod to the computer, hold down the Shift + Ctrl keys in Windows (CMD + Option keys on a Mac). This will stop the iPod from auto-syncing with iTunes. The iPod will then appear in the iTunes source list. Wait until you are sure the iPod has mounted, and that it will not auto-sync and then you can release the keys. This action may take between 3 and 25 seconds depending on your computer.
    You can then ‘right-click‘ on the iPod icon in iTunes’ source column and select iPod Options, then check the box that says “Manually manage songs and playlists”. You can now manage your library without losing any songs on the iPod.
    Note: If connecting to a different computer than the ‘iPod’s Home Computer’, iTunes will ask you if you want to update your iPod and give you an opportunity to opt out. This will not happen if you connect to the ‘Home’ computer – iTunes will auto-sync without warning!. Best to know the difference.

  • Preventing disabling of check box - item okay in MIGO

    Dear all,
    In the MIGO transaction - during goods receipt for subcontractor material, when the item (incoming) is checked as item okay - automatically the child material (Material sent to subcontractor) is also activated thereby to enable 543 movement.
    Unfortunately some of the users are disabling the check box (for the material sent to the subcontractor). This prevents depletion of stock from the subcontractor but inflates the stock of the incoming material.
    Is there any way - either by authorisation check to prevent users disabling the check box or other methods?
    Experts suggestion is required in this regard.
    Thanks in advance.
    Regards,
    M.M

    Hi Magesh,
    it is possible. use Badi enhancement
    MB_MIGO_BADI goto
    IF_EX_MB_MIGO_BADI~POST_DOCUMENT
    tell your abaper to put the logic like
    parent ID and subcomponent ID need to select
    if either of two is not selected
    then error message will prompt not to save the GR doc since subcomponent is unselected.
    reference field EKPO check PSTYP
    hope this help you.
    regards,
    Maia
    Edited by: Maia on Apr 18, 2008 3:07 PM

  • Disabling a Check box

    In my BSP View am using two check box.
    I want to disable one check box when the other one gets checked and vice versa.
    Right now am doing with some logics and with server side events.I want to do this in the client side.
    In <b>Java script</b> how i can code this in my BSP page where the checkbox is created with the help of htmlb.
    Kindly help me in this regards.

    Hi,
    put this in your documentHead:
    <script language="javascript">
         function uncheckyes(){
          document.form_id.yes.disabled='TRUE';
          </script>
    <script language="javascript">
         function uncheckno(){
          document.form_id.no.disabled='TRUE';
          </script>
    and this in your layout (documentBody):
           <htmlb:checkboxGroup columnCount = "2"
                                         id          = "expense" >
                      <htmlb:checkbox text          = "Yes"
                                      id            = "yes"
                                      onClientClick = "javascript:uncheckno()" >
                      </htmlb:checkbox>
                      <htmlb:checkbox text          = "no"
                                      id            = "no"
                                      onClientClick = "javascript:uncheckyes()" >
                      </htmlb:checkbox>
                    </htmlb:checkboxGroup>
    grtz
    Koen

  • Disable a check box

    Hello Experts ,
    Need help to disable a check box via Scripting .
    Appreciate your help ..
    Regards,
    Tayi

    Hi Tayi,
    You can use IapiDocumentLockManager APIs to lock/unlock a particular field.
    Let us know if this is what you are actually looking for.
    Thanks
    Devesh

  • How can i add the check box beside the directory?

    how can i add the check box beside the directory? anybody can help?
    tis r the panel of my program :
    // FileTreePanel.java
    // JPanel for displaying file system contents in a JTree
    // using a custom TreeModel.
    package com.deitel.advjhtp1.mvc.tree.filesystem;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    import com.deitel.advjhtp1.mvc.tree.filesystem.FileSystemModel;
    public class FileTreePanel extends JPanel {
    private JTree fileTree;
    private FileSystemModel fileSystemModel;
    private JTextArea fileDetailsTextArea;
    public FileTreePanel( String directory )
    fileDetailsTextArea = new JTextArea();
    fileDetailsTextArea.setEditable( false );
    fileSystemModel = new FileSystemModel(
    new File( directory ) );
    fileTree = new JTree( fileSystemModel );
    fileTree.setEditable( true );
    fileTree.addTreeSelectionListener(
    new TreeSelectionListener() {
    public void valueChanged(
    TreeSelectionEvent event )
    File file = ( File )
    fileTree.getLastSelectedPathComponent();
    fileDetailsTextArea.setText(
    getFileDetails( file ) );
    JSplitPane splitPane = new JSplitPane(
    JSplitPane.HORIZONTAL_SPLIT, true,
    new JScrollPane( fileTree ),
    new JScrollPane( fileDetailsTextArea ) );
    setLayout( new BorderLayout() );
    add( splitPane, BorderLayout.NORTH );
    JCheckBox check = new JCheckBox("Check me");
    add( check, BorderLayout.SOUTH );
    public Dimension getPreferredSize()
    return new Dimension( 400, 200 );
    private String getFileDetails( File file )
    if ( file == null )
    return "";
    StringBuffer buffer = new StringBuffer();
    buffer.append( "Name: " + file.getName() + "\n" );
    buffer.append( "Path: " + file.getPath() + "\n" );
    buffer.append( "Size: " + file.length() + "\n" );
    return buffer.toString();
    public static void main( String args[] )
    if ( args.length != 1 )
    System.err.println(
    "Usage: java FileTreeFrame <path>" );
    else {
    JFrame frame = new JFrame( "JTree FileSystem Viewer" );
    FileTreePanel treePanel = new FileTreePanel( args[ 0 ] );
    frame.getContentPane().add( treePanel );
    frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
    frame.pack();
    frame.setVisible( true );
    }

    You can maybe explore button and forms feature in InDesign. It was added in CS6.

  • How can I make a check box active ONLY if another check box is activated?

    How can I make a check box active ONLY if another check box is activated?
    I have an editable PDF for a client, which contains text fields and check box fields.
    There are three main check boxes (let's call them A, B and C) that the user is required to choose from, and I have given all three the same name in the Name tab of the General tab menu but different export values in order that ONLY one of the boxes can be checked at any time. Ticking one will deactivate another if it is already checked, etc.
    However, I then have a further two check boxes which I wish to become available ONLY if the second one of the above three boxes is checked. Other than that I do not wish the user to have access to them.
    I'm guessing it requires some kind of Action Script or Javascript, which is not my forté! Any help would be much appreciated.
    Regards
    Tony

    See Disabling (graying-out) Form Fields by Thom Parker. It covers both Acrobat and LiveCycle forms.

  • How do you disable "FILE IN USE" pop-ups so you can actually edit and delete PDFs?!

    Can someone please help me with this query:
    How do you disable "FILE IN USE" pop-ups so you can actually edit and delete PDFs?!
    I continue to have a pop saying that either the file in open somewhere in the serve- which it is not- and I cannot delete a particular pdf or edit it.
    It's incredibly frustrating and in the end I end up having four files with different names because it won't let me edit the original file!!!!

    Hi Amila1,
    Are the pdfs stored on a network location?
    If so is the Preview pane turned ON?
    Please check the doc: http://kb.globalscape.com/KnowledgebaseArticle10862.aspx
    Regards,
    Rave

Maybe you are looking for