How to disable a Checkbox with condition.

Dear experts,
I am doing a module pool program. My questyion is, the program has a checkbox. After certain process, let's say if it met a IF condition. This checkbox needs to be disabled. No matter the checkbox previously is ticked or without tick. The checkbox need to be completely disabled.
Please advice how should I do it. As I have search in the forum for some time, but I could not get my answer.
Appreciate if someone can help. Thanks in advance.

Hi,
3 problems.
1. U r using lower case for check boxes screen name
2. Screen-invisible is used to make data of the parameter invisible while typing eg: PASS WORD.
3. What ever modification we are doing is over written in AT SELECTION SCREEN OUTPUT event.
use screen input attribute as i told earlier.
AT SELECTION SCREEN OUTPUT is analogous to PBO of
Dialog program
Check below modified code. It is working fine now.
SELECTION-SCREEN END OF BLOCK b1.
INITIALIZATION.
  tt = 'Example'.
  chk1 = 'X'.
AT SELECTION-SCREEN OUTPUT.
  IF radio1 EQ 'X'.
    LOOP AT SCREEN.
      CHECK screen-name = 'CHK2'.
      screen-input = 0.
      MODIFY SCREEN.
      EXIT.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN.
      CHECK screen-name = 'CHK1'.
      screen-input = 0.
      MODIFY SCREEN.
      EXIT.
    ENDLOOP.
  ENDIF.
AT SELECTION-SCREEN ON BLOCK b1.
  CASE sy-ucomm.
    WHEN 'R1'.
      IF radio1 = 'X'.
        CLEAR chk2.
        chk1 = 'X'.
      ELSEIF radio2 = 'X'.
        CLEAR chk1.
        chk2 = 'X'.
      ENDIF.
  ENDCASE.
I hope u r clear now.
Thanks,
Vinod.
Edited by: Vinod Reddy Vemuru on Jul 29, 2008 4:33 PM

Similar Messages

  • How I tie the formula with conditions type?

    Hi,
    Than create the formula with tcode O3I7:
    1) how I tie the formula with conditions type?
    2) how I tie the conditions type with the formula with Calculation Schema?
    help me, please.
    thanks
    Edited by: celeste ziantoni on Feb 5, 2008 6:45 PM

    Hello,
    Pricing formula is created using transaction VOFM. It is tied to the condition types in Pricing Procedure definition in Alternate Calculation Type column. For Pricing procedure, the menu path is SPRO->Materials Management->Purchasing->Conditions->Define Price Determination Process->Define Calculation Schema.
    Thanks,
    Venu

  • How to disable reject call with a message? Xperia Z(c6603) KK4.4.2 (.230)

    How to disable reject call with a message? please help
    Xperia Z(c6603) KK4.4.2 (.230)

    I selectd this device because i was counting on the brands traditional stiriving forcsup. Quality.This was a mistake.About 1000 euros for a device that looses quality with every update and consumes my time with frustrating experiences all along.Very poor development i must say.

  • How to disable a checkbox

    Hi,
    I have scenario where I have 4check boxes in my selection screen.. P_PRI, P_QUA, P_NEW and P_INV.
    <b>P_PRI, P_QUA, P_NEW</b> will be selected(X) by default.
    I have a requirement like when I select the fourth Checkbox <b>P_INV</b>, the two check boxes P_QUA and P_NEW should be unchecked and should be disabled(uneditable mode) and at the same time I have to generate some warning message(Later it will display the output after showing the warning message).
    Is it possible to disable a checkbox..? If so, please tell me how to do that.
    Can anyone provide me the sample code how to do this.
    This is the selection screen logic I was talking about.
    SELECTION-SCREEN BEGIN OF BLOCK CHOOSE WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(15) TEXT-002.
    SELECTION-SCREEN POSITION 18.
    PARAMETERS: P_PRI AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 31(15) TEXT-003.
    SELECTION-SCREEN POSITION 48.
    PARAMETERS: P_QUA AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 61(15) TEXT-004.
    SELECTION-SCREEN POSITION 78.
    PARAMETERS: P_NEW AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK CHOOSE.
    SELECTION-SCREEN BEGIN OF BLOCK PRICE WITH FRAME TITLE TEXT-006.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(15) TEXT-007.
    SELECTION-SCREEN POSITION 18.
    PARAMETERS: P_INV AS CHECKBOX.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK PRICE.
    Thanks in advance.
    regards,
    Paddu.

    Hi Paddu,
    Check this out...I didn't include Warning message but once you are satisfied with this code...we can add it easily
    SELECTION-SCREEN BEGIN OF BLOCK CHOOSE WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(15) TEXT-002.
    SELECTION-SCREEN POSITION 18.
    PARAMETERS: P_PRI AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 31(15) TEXT-003.
    SELECTION-SCREEN POSITION 48.
    PARAMETERS: P_QUA AS CHECKBOX MODIF ID m1 DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 61(15) TEXT-004.
    SELECTION-SCREEN POSITION 78.
    PARAMETERS: P_NEW AS CHECKBOX MODIF ID m1 DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK CHOOSE.
    SELECTION-SCREEN BEGIN OF BLOCK PRICE WITH FRAME TITLE TEXT-006.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(15) TEXT-007.
    SELECTION-SCREEN POSITION 18.
    PARAMETERS: P_INV AS CHECKBOX USER-COMMAND P_INV.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK PRICE.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF p_inv = 'X' AND screen-group1 = 'M1'.
          p_qua = ''.
          p_new = ''.
          screen-input = '0'.
        ENDIF.
        MODIFY SCREEN.
    ENDLOOP.
    Regards,
    Vivek

  • How to disable Buttons based on condition.

    Hi
    Need your help to disable button based on condition.
    Please refer the application:
    http://apex.oracle.com/pls/otn/f?p=34797:5:110582943383419::NO:::
    login credentials:
    workspace: vsanthanam
    user: vijay
    pswd: apex_demo
    In the above application, i have 2 buttons in page 5, (Report1 and Report2)
    Where i have to disable button based on the following conditon:
    i) USER whoever has Admin value 'Y' in my table can access the button.
    for this i've written a Button Condition : Type (EXISTS)
    select 1 from apex_extra_values where rtrim(lower(empname)) like decode((select Admin from apex_extra_values
    where rtrim(lower(empname))=rtrim(lower(V('APP_USER')))),'Y',rtrim(lower(V('APP_USER'))))
    note: i have empname same as my APEx user name. with Admin access 'Y'.
    By using this code i can able to hide the button for users who has no Admin access.
    But my requirement is : i have to show the button even if the user is not Admin, but to grey out (disable the button - no action)
    I tried using javascript function:
    function disableButton(pThis)
    pThis.disabled=true;
    But either of this (exists condtion or JAvascript function) works in my case and not both.
    Any pointer on this would be highlt appreciated.
    Thanks
    Vijay

    Couple of things:
    1. I would never use v('APP_ITEM') but :APP_ITEM - it is faster and there is no need to use this function within an application
    2. The way you are doing this check is not the best approach. You should create an authorization schema and run this once per session. Whatever this authorization is returning as a result you can check using the following Function returning boolean:
    IF apex_util.public_check_authorization ('MY_AUTH') THEN RETURN TRUE; ELSE RETURN FALSE; END IF;
    See this example on authorization issues:
    http://apex.oracle.com/pls/otn/f?p=31517:148
    3. As far as disabling a button is concerned I think I explained the options. I also have an example on that here:
    http://apex.oracle.com/pls/otn/f?p=31517:143
    whereby it is not disabling but hiding a button.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How to disable "getting started with Firefox" web page when starting Foxfire?

    Every time I open Firefox I get the additional web page "getting started with Firefox" and do not know how to disable it. Can you help?

    The page may be set as an additional home page, the following link shows how to check and set your home pages - https://support.mozilla.com/kb/How+to+set+the+home+page

  • How to Disable a Checkbox on a report condionally.

    I have a report and I created a checkbox on this report.
    I have a button which is associated to the checkbox.
    When I check a record an click the button I delete that record.
    This all works great.
    I want to disable the checkbox based on a condition.
    Lets say I cannot delete DEPT rows 20 at all. In this case I want to disable the checkbox and do not allow use to delete these records.
    Can anyone help me on this.
    I really appreciate your help on this.

    In your SQL query, you may be able to use a CASE WHEN statement to accomplish this.
    SELECT .. CASE WHEN dept_id = 20 THEN <dont display checkbox or show disabled> ELSE <show checkbox> END
    Ravi

  • How to checking my checkbox with a listbox

    I have a new form where I would like to check automatically my checkbox with a choice from listbox.
    I have a listbox with three values in french "Utilisateur" - "Comptable" and "Membre direction".
    I would like when the user has selected "Utilisateur", my checkbox with value "OJV_OFFICE_UTILISATEURS" has checked or "Comptable" checkbox with value "OJV_OPF Caissiers"
    Can you help me.
    Thanks

    Look at this previous post:
    https://forums.adobe.com/thread/1506686
    To modify the script to your form, you could try this as the custom validation script for your combo box:
    if (event.value=="Utilisateur") {
    this.getField("OJV_OFFICE_UTILISATEURS").value = "Yes"; 
    this.getField("OJV_OPF Caissiers").value = "No";}
    else if (event.value=="Comptable") {
    this.getField("OJV_OFFICE_UTILISATEURS").value = "No"; 
    this.getField("OJV_OPF Caissiers").value = "Yes";}
    Make sure you have the "Commit selected value immediately" option selected.

  • Disabling certain checkboxes with treeTable / tableSelectMany

    Hi,
    using tableSelectMany on a treeTable component my requirement is to disable (or even not to render) the checkboxes on certain rows. for example checkboxes only on every odd row....
    How can I achieve that? Is it possible with standard techniques?
    Or do I have to write a custom treetable component?
    Thanks for any help,
    Andreas.

    I was also wondering if there is a way to disable certain radio button in tableSelectOne?

  • How to build a document with conditional text

    So, I created a condition for a feature that is new to my document and until it's stable, I want to hide that text. No problem. I selected the condition and from the Show/Hide Conditional Text pod, I moved it over to hide. When I created the conditional text, I gave it a background color of gray so I could easily distinguish the conditional text from the non-conditional text. However, if I leave the conditional text visible and go to generate a PDF, the gray background style appears on the conditional text in the PDF. Is there something I'm missing here when it comes to building a PDF? I don't want the style I see in the FM file to appear in the final PDF. I only want that background color as an indicator while I'm editing it. I don't want to have to remember to change the style every time I want to build with the condition visible. Here's a screenshot from the PDF. The bits in gray are what I had applied the condition to.
    After selecting the book file, I tried both doing a Save as PDF and a Print Book but both options ended up with my conditional text having the gray background style in the final output.

    No, you have misunderstood the problem. Yes, If I want to hide the condition so it doesn't print, that works great. But, once the feature is active (or say I have two customers, one that has the feature and one that doesn't), If I want to print the document with the conditional text visible, then I want the text but I don't want the background style that shows up in FM. The conditional style should only appear in FM, not the generated PDF.
    I worked for years with Madcap's Flare and you could set the color of the conditional text in order to distinguish what text was conditioned and with what condition (different colors for different conditions). However, when you generated the output, those colors never showed up. The only thing that displayed was the text that was set to be visible. That's what I was expecting from FM. And the FM tutorials I have taken, that's what they stated should happen. Here's a transcript from the FrameMaker 10 tutorial on Lynda.com:
    When we go down to the Conditional Text pod, you'll notice that we have a number of radio buttons for In, Not In, As Is, and then we also have our tags down below. So this is going to be in the US version. So we'll click the US tag. We'll change the radio button to In. You'll see the status change over here to In, and then we'll apply that by clicking the first button in our group of buttons here to apply it. Now, you'll see something change here in the document and if we deselect our text, you can see it's now blue with the overline and that's how we decided the style and color would appear for our US tags. That's not how it's going to print. It's just for our own visual purposes.

  • [WebIntelligence Reporting] How to use count function with condition !?

    Post Author: xuanthuyit
    CA Forum: WebIntelligence Reporting
    Hi everyone,
    I want to make a report like this  with WebIntelligence reporting.
    I want to show the number of Outlet of each chanel (Horeca, Grocery, Convenience) at the end of report !
    But I don't know how to do that with WebIntelligence Reporting.
    Please help asap. . .
    Thank you verry much,

    Post Author: jsanzone
    CA Forum: WebIntelligence Reporting
    xuanthuyit:
    Apparently =count() &#91;and use of a where&#93; was permissible in previous versions of BusObjects, however, things in XI are different (as other users tell me, being XI is my first experience w/ BusObj...), so anyhow, here is the solution to your question.
    You will have have to create two variables for each condition you have.  One variable will be the "helper" and the other variable will be the "worker".  For instance, create a variable called channel_x and the formula:  =if(channel="haney";<metric>;0)  (where "haney" is the name of your organization and <metric> is the metric you are using to count or sum things in your report).  Once channel_x is saved create another variable called channel_x_count and the formula:  =sum(&#91;channel_x&#93;).  Once channel_x_count is saved, then on your report towards the bottom you can use the Template bar to drag in a new table (perhaps you want to use the Horizontal Table type), and then you can drag channel_x_count into your new table.  You will have to repeat the creations of more channel_x type variables (maybe call it channel_y and channel_y_count) or something more descriptive, but in any case substitute the "haney" constant for the next store you want to track, etc, etc.

  • How to disable click noise with volume bar

    I own an HP Pavilion dv6-1030us laptop, and when I adjust the volume with the volume bar touchpad, the computer makes a lot of clicking noises -- it will click for 3 or 4 seconds straight even when I make the slightest of adjustments -- and I was wondering if it's possible to modify/disable the clicks. I wouldn't care if it only clicked once or twice, but when it goes on for this long it gets annoying.

    Some people might not be understand how it can be done!.   Just go to the speaker icon on system tray and click on mixer.  Then try to increase the volume through quick launch volume button on your HP laptop. You can see the QLB button appeared on the mixer. Just mute it and thats it!  you are done!.  Have a good time guys...............

  • Check a checkbox with condition

    Hi expert,
    I'am new in visual compser, I'am triying to check a checkbox folowing a condition. If the condition is satified, so check the chekbox.
    Any idea ?
    Cordialy

    Hi,
    Please be aware that in 731SP14 there is an issue in webdynpro runtime and also in VC5 that this thing is not working. We are aware of the issue and working on that.
    What you can do as a workaround if it does not work, is to create an action from the text field/button/plain text or any other control that determines the checkbox status. This action will set value of true or false to the checkbox accroding to your condition- that depends on the value of the textfield /plain text etc..
    Regards,
    Asaf.

  • How to Disable Portal Links with Web Dynpro Java?

    Hi all,
    I have configured some access to my apps through iviews in my portal content, each application is included in a PCD Structure inside a User Role; according the roles asigned to my users are the access to the applications the user wolud have
    For example:
    Role 1
    RootApp
         iView1.1
         iView1.2
         iView1.3
    Role 2
    RootApp
         iView2.1
         iView2.2
    Role 3
    RootApp2
         iView3.1
    My users might have one or even the 3 roles, and depending on their roles is the access to the applications that they may have.
    Now I have a requirement of the user wherein when the user logs in to the portal and clic in the RootApp link the Dynpro Application must to present an iView showing a set of terms and conditions; if the users accept the terms then they can continue using the application defined by the PCD definition, but if the users don't accept the terms, the aplication links in the portal must be disabled and the user can not use the aplications defined, but this only has to be applied to the root link selected (RootApp) in wich the user doesn't agreet the terms and conditions, however, other applications that are non dependent of the root link (RootApp) can be used (RootApp2).
    Are there any way to disable only certain portal links using a web Dynpro implementation?
    Thanks In Advance

    Hi
    IMyService portalservice=(IMyService)WDPortalUtils.getServiceRefrence(IMyService.KEY);
    portalservice.myMethod();
    This is the code to get portal service reference and call methods implemented in the service
    Also, add prtapi.jar to build path. Add sharing refernce to portal:sap.com/<Portal Application name>
    Regards,
    Yoga

  • How to disable "Share details with Apple..."

    The version came up and I clicked on the "Accept" button to Share details with Apple". Now I have duplicate albums (with a little cloud on them) and in some cases, when I open the album, I have duplicate songs.
    Is there a way to turn this off? Its confusing...
    Thanks

    The problem is not sharing info with Apple although if you want to turn that off it ios in Preferences, Store The checkbox at the bottom.
    What you need to do is turn off showing content in the cloud.
    Same places as above Preferences, Store 3 checkboxes higher Show iTunes in the cloud purchases

Maybe you are looking for