How to disable an item in a selectOneRadio

Hi, I want to disable an item depending on some calculation in a selectOneRadio. Im using a spread layout and populate the selectOneRadio through selectItems... Any ideas?
<t:selectOneRadio id="radioTypes" value="#{ucb.type}" forceId="true" layout="spread" required="true">
     <f:selectItems value="#{model.allTypes}"/>
</t:selectOneRadio>
<h:panelGrid>
     <%-- Radio one --%>
     <h:panelGroup>
          <t:radio index="0" for="radioTypes" id="type1" />
     </h:panelGroup>
     <%-- Radio two --%>
     <h:panelGroup>
          <t:radio index="1" for="radioTypes" id="type2" />
     </h:panelGroup>
     <%-- Radio three --%>
     <h:panelGroup>
          <t:radio index="2" for="radioTypes" id="type3" />
     </h:panelGroup>
</h:panelGrid>The t:radio tags has no disable parameter, is there any way around this. I don't want to disable all the radiobuttons just some specific ones.
Best Regards
Chris

You can use the UISelectitem#setItemDisabled method to set the item disabled status.

Similar Messages

  • How to disable multiple items in menu ring?

    Hi I have a difficulty understanding on how to disable the items in the menu ring control. I need to know so that I will enable some items for the future products for testing. And why is the first item disabled? How can I disable the right items?
    Attachments:
    disabled_items.vi ‏23 KB

    Your vi works perfectly :
    you are disabling the menu items wich correspond to the elements of the 1D array :
    -if the array is empty, no element is disabled;
    -if the array contains 1 element, for instance = 3, the forth (3+1) menu item will be disabled. If the array element equal zero, then the first menu item will be disabled;
    - if the array contains 2 elements, then two corresponding menu items will be disabled, and so on...
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • How to Disable an Item of OAF Standard Page through Personalization.

    Hi,
    My requirement is to disable an item of Standard Page through personalization
    so that users can't edit that field.
    I tried checking for Disable under Personalization Properties but didn't find Disable Property.
    Can any one give me an idea how to do that?
    Thanks in advance.
    Regards,
    Subramanyam.

    Hi,
    Do as suggested by Abdul Wahid.
    Please tell me which type of item is this like LOV, textbox...
    Regards,
    Reetesh Sharma

  • How to Disable Menu item in Oracle Applications

    Hi,
    How can I disable a Menu (Actions->user defined menu) Item in Oracle applications by using forms personalization.
    Our requirement is to display a message on click of a standard menu using form personalization and it should retain the seeded functionality.
    Thanks
    Prasanna
    Edited by: user13029651 on Jul 30, 2010 6:47 PM

    As an Oracle Applications Developer, your best friends are going to be the following docuements:
    <ul><li>Oracle Applications Developer's Guide </li>
    <li>Oracle Applications User Interface Standards for Forms-Based Products</li>
    <li>Oracle Application Framework Personalization Guide</li></UL>
    These and all of the other related EBS documents can be found in the Oracle Applications (EBS) Documentation Home and don't forget the Oracle eTRM Technical Reference, but you will need an Oracle Support contract to access this site.
    When you can't find your answer in these document sources, you can always ask for help in the E-Business Suite group of forums.
    Craig...

  • How to disable line items of sales order ie not editable

    Hi All,
      I want to diable line items of BOM when using it in sales order, Can any one tell me how to do it and which USER EXIT or BADI i have to use it for.
    Regards,
    Sudhakar.A

    Hi,
    You have to write your code in this Include : MV45AFZZ
    Here i have diabled the components of BOM...change the code accordingly.
    IF ( sy-tcode EQ 'VA01'
             OR sy-tcode EQ 'VA02' ).
        loop at xvbap where pstyv eq 'ZABC'.
          if not vbap-uepos is initial.
            if sy-subrc = 0.
              screen-input = 0.
            endif.
         endif.
        endloop.
      endif.
    Here Xvbap is like Internal table
    VBAP is strucure.
    Regards,
    Sudhakar Reddy.A

  • How to disable menu items through c# in adobe x standard. I didn't find the required APIs.

    Hi
    We are working on a desktop application on C# which uses Adobe Express 5.0. to view the PDF files. Recently we had an issue reported that PDFs created in Adobe 9 are not opening up. So we decided to upgrade to Acrobat Adobe X Standard. Now the issue is that I have to suppress controls (tool bars(or Panels), menu items) for which I'm using the below code which worked in express 5.0 but not on Adobe X. Also I want to view the toolbar by default instead of the translucent menu at the bottom of the page.
    Acrobat.CAcroApp.ToolButtonRemove("SaveFileAs");
    Acrobat.CAcroApp.MenuItemRemove("Quit");
    Please help.
    Thanks,
    vinay

    Hi
    We used javascript to find out the names of the menu items that are present in the Adobe 9.0 Std. I presume that it would work even for Adobe 10.o as well. After that in the .NET C# code we have used App.RemoveMenutItem ("<<MenuItemName>>") to disable all the menu items that we dont want You can search for javascript references for Acrobat and you would find many.
    Also I've figured out another way where you remove the .api files from your plugins folder, however I'm not sure if it would create any further problems. This is route is not taken, atleast for now.
    Please post here the route taken by you.
    Thanks.

  • How to disable populator items from showin on Preview Configuration screen.

    We are using Populators in our Product Model. Items under the populators are set as 'Orderable'. Hence as per Oracle's standard functionality those items are populated on the 'preview configuration / summary' screen.
    Is there a way /setup by which we can turn this off (i.e. make them stop from comming onto the 'Preview summary screen')

    yes you can!
    go to settings> notifications then choose from there

  • How do I disable one item in a radio buttons control at run time

    I need to disable one item in a radio buttons control. At design time
    this is possible, but how do I do this at run time? Is this possible? I
    cannot find a property per item

    Use the property "Controls[ ]" - this gives you an array with references of each single button in the radio buttons control. These you can access with property nodes too.
    Hope this helps.
    Using LV8.0
    Don't be afraid to rate a good answer...

  • How to Disable Event firing while updating a list item using poweshell

    Hi All,
    I am working on a powershell code which updates most of the list items in the entire web application. I am using SystemUpdate($false) to update the items so that 'modified' and 'modified By' and versions are not changed.
    However event receivers gets fired which is now a problem. I want to disable the Event receivers before update and enable it after update. I want powershell code for this. I am using SharePoint 2010.
    Your help would be much appreciated. Thank you in anticipation.
    Regards
    Karthik R.

    hi
    check this thread:
    How to disable event firing outside an event. It contains example on C#, but it is not difficult to convert it to PowerShell.
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • How to hide/disable menu items using Javascript in Acrobat 9 pro or later

    We just wanted to know on how to hide/disable menu items for e.g. 'Open' menu item under 'File' menu in Acrobat 9 or later on Mac using Javascript. It would be useful if you could provide if any other option is in place already.

    Not sure it will work, but you can try using the app.hideMenuItem() method. See reference here.

  • How to disable automatic opening of previously viewed items in Preview or TextEdit in Max OSX Lion?

    How to disable automatic opening of previously viewed items in Preview or TextEdit in Max OSX Lion? It was no such issue on Snow Leopard OS.
    Please help

    This is a new behavior introduced in Lion.  You can disable it completely via System Preferences, General: uncheck the "Restore windows..." box toward the bottom. 
    You can disable this behavior on a case by case basis by either closing all windows before quitting, or holding the option key while quitting, or holding the shift key while launching from dock.
    charlie

  • How to disable instances of items in forms 4.5 in a mlti row block

    I have a multi row database block in forms 4.5 . One of the items is a checkbox. Based on certain conditions the user should be allowed to select only the checkbox only for some rows. How can i selectively disable the checkbox for some record and enable it for the other records.
    I know this can be done in OFrms 6i using set_item_instance_property but this is not available in forms 4.5 . Any ideas or workarounds to achieve this ?
    Thank You
    Satya
    Edited by: Satya V on Aug 13, 2009 11:48 AM

    I fear there is no direct solution.
    May be this is a work-around:
    1. Apply the older built-in: Display_item. You can't disable the item with display_item, but you can change the visual attribute and show the user that this item should not be checked.
    2. To be shure that the user doesn't ignore this "disable", you need a trigger, which resets the item to the proper value after an illegal change.

  • How to disable File Browse... item including browse button

    Hi All,
    How to disable file File Browse... item including browse button based on Apex Item Value.
    thanks,
    nr

    Hello Trent,
    >> Does the read only attribute in 4.0+ of the page item not suffice?
    It all depends on your actual scenario.
    If the show/hide condition is known pre-rendering, you can use the Application Builder ReadOnly attribute. In this case, the APEX engine actually creates a simple text display so the input field and the browse button will not be displayed at all (and not just grayed out). However, if you need to toggle the status of the item, like in the example, or the status depends on a user input, using the disable attribute is much simpler (If you start with ReadOnly item, you will have to create the file browse item yourself, using JavaScript, or submit/re-direct the page so it will be rendered with the file browse item).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • How to disable a particular list item in flash cs3

    Friends,
    I need a small help on list component in flash cs3.
    assume that i have 5 items in my list and i want to disable 3,4,5 items from mylist box. how to do this ??
    item 1 -- enabled state
    item 2 -- enabled state
    item 3 -- disabled state
    item 4 -- disabled state
    item 5 -- disabled state
    using flash cs3, i want to achieve this , how to do this ?? any ideas pls..
    Rajesh

    Hi Rajesh,
    I've seen your query all over the internet, so I should warn you I don't believe it's possible to disable a List Item.
    For that you should use Josh Tynjala's open source Advanced List (http://code.google.com/p/flextoolbox/downloads/list).
    Best Regards,
    Filipe.

  • How disable an Item

    Hi,
    Thank You to Rosario.
    Now I have a new question.
    In the 'Header' block of my form I have some Items, for example:
    TYPE_CODE Varchar2
    ANA_CODE Varchar2 etc.
    and in 'Control' block a button that execute a query.
    I need, when I push the Run button, disable the Items in the HEADER.
    In the trigger WHEN-BUTTON-PRESSED I have insert a code like this:
    Go_Block('HEADER') ;
    Set_Item_Property('TYPE_CODE',ENABLED,PROPERTY_FALSE) ;
    Set_Item_Property('ANA_CODE',ENABLED,PROPERTY_FALSE) ;
    But when I Run the Form, an error FRM-40105 is returned.
    I think that I mistake the syntax. How can resolve the problem ?
    Best Regards
    Gaetano

    Frm-40105 : unable to resolve reference to item
    You don't need to go to the Header block to run this code but you need to specify the block name in the calls to set_item_property:
    Set_Item_Property('HEADER.TYPE_CODE',ENABLED,PROPERTY_FALSE) ;
    Set_Item_Property('HEADER.ANA_CODE',ENABLED,PROPERTY_FALSE) ;

Maybe you are looking for