Disabling an item dynamically

Hi
I am using APEX on oracle 10g XE. and am absolutely new to this tool.
I need to disable a set of input fields, based on the drop down value.( This drop down tem is right now set with 'Select with Submit' option. )
Depending on the value chosen by the user, I need to make certain section(s) of form read only (or disabled). How can I do this in Application Builder? If possible I want to avoid javascript route...
Since I am new, as working example, with code will be greatly helpful
Thanks
SR
Message was edited by:
user519129

SR,
To be a little more specific... Open the item you want to set as disabled. Scroll down to the Read Only section. Set the condition to: Value of item in expression 1 = expression 2.
Then, in expression 1, put the name of the select item... like PXX_SELECT_NAME
Then, in expression 2, put the value of the select item that should make this item display only.
Hope this helps.
Dan

Similar Messages

  • Using XMLLIST - Enable/Disable Menu Items

    I am using XMLList for creating menu items.
    I want to enable / disable menu items based on the permissions to the user.
    Below is the code snippet:
    <fx:XMLList  id="newData">
                                  <menuitem id="item1" label="{resourceManager.getString('taskmgmt', 'taskmgmt.label.newProject')}" />
                                  <menuitem id="item2" label="{resourceManager.getString('taskmgmt', 'taskmgmt.label.projectFromTemplate')}" enabled="false"/>
                        </fx:XMLList>
    private function ItemClickHandler(event:MenuEvent):void
         if(PermissionManager.isAddPermitted("WTM_PROJECT_PLANNING")){
                                                           ProjectAssignmentModel.projectAssignmentFlag=false;
                                                           if(event.item.@label == resourceManager.getString('taskmgmt', 'taskmgmt.label.newProject')){
                                                                     clearModel();
                                                                     dispatchEvent(new SwitchViewEvent(SwitchViewEvent.SWITCH_VIEW_EVENT,false));
    protected function newMenuButton_clickHandler(event:MouseEvent):void
                                            if(! PermissionManager.isAddPermitted("WTM_PROJECT_PLANNING")){
                                                      newData.item1.enabled = false;
                                            else
                                                      menuList.dataProvider = newData;
                                                      menuList.show(event.stageX + 5 , event.stageY + 5);
                                                      mode = CREATE;
    Based on the permission, I want to dynamically enable / disable the "New Project" button.
    Can someone provide information how to achieve this ?
    Further update on this, it is giving the following error while running of the application:
    "TypeError: Error #1089: assignment to list with more than one item is not supported"

    Resolved by using the correct Data Provider and iterating through the list

  • 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 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.

  • Set label of an item dynamically through pl/sql function

    Hi ,
    How Can I get the label of an item dynamically through a pl/sql function.
    I have a table that stores the label name for these items.
    I want to set the label for the item based on the value in my table ?
    Is it possible ?
    any ideas ?
    Thanks in advance,
    Dippy
    Edited by: Dippy on Feb 23, 2010 11:02 AM
    Edited by: Dippy on Feb 23, 2010 11:02 AM

    If I understand you correctly, you are using a standard report region, but want to dynamically name the column headers? The only way I've been able to get this to work is to create hidden items for each column header, calculate the value you want for each item, then reference the item in the column header using &item_X. for the column header name.
    The problem is that at this point, APEX doesn't allow for dynamic column naming unless you want to do everything yourself using a PL/SQL process that builds the report table manually. I've done that for certain complex reporting tools.
    I understand it's tedious to create all the column header items; I have one report that has over 72 items used in this way. It was a pain, but it got the job done.

  • Can I disable an item in a combo box list?

    Hi,
    I have a combobox that is holdong a string array for the options. Is it possible to disable individual items within the String array?
    Dave.

    Why don't you create a record group and populate that record group into the list item on runtime?
    -Ammad

  • Disable line item display in KE30 Reports

    Hi,
    Has any one tried disabling line item display in a KE30 Report? Which authorization object can be used to disable the access to line items?
    Thanks for your time.
    Regards,
    SAP_CO1

    Hi,
    When you create user-defined authorization objects for reporting, all their fields will be checked when you execute a report, even if they are not used in the report. It is not necessary to have all fields in the report definition, but you will need at least authorization ':' to get the aggregated figures.
    Example:
    Authorization object contains fields WW001, WW002
    Report uses field WW001 as drilldown characteristic, but not WW002.
    To execute the report, the user needs authorization '*' for field WW001 and ':' for WW002.
    If he does not have authorization for WW001 then he can execute KE30 but cannot drilldown to line items
    For more information how authorization checks for user-defined authorization objects work, you can refer to the IMG documentation via CO-PA -> Tools -> Authorization Management ->CO-PA specific Authorization objects -> Define authorization objects for the information system.
    You may use transaction SU24 in order to check the assignment of authorization objects to transaction KE30.
    regards
    Waman

  • Java Script Disable/Enable Items Problem

    Hi,
    I followed the directions to disable/enable items from http://www.oracle.com/technology/products/database/htmldb/howtos/htmldb_javascript_howto2.html#disable.
    And I'm getting an error.
    I have fields like :
    Issue Summary
    Issue Description
    Identified By
    Identified Date
    Status (Values: Open, On-Hold, In-Process, Closed)
    Priority
    Target Resolution Date
    Whenever the Status changes to 'In-Process' I would like to disable 'Issue Summary and Issue Description'.
    Both the fields (Issue Summary and Issue Description) are being disabled when the Status changed to 'In-Process'
    but when I click the 'Apply Changes' button I'm getting the error: 'Issue summary cannot be null.'
    I do have a Not Null validation on Issue Summary field, but I'm only updating the Status field.
    Following is the JavaScript:
    In the Page Attribute (HTML Header)
    <script language="JavaScript" type="text/javascript">
    <!--
    //htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    //-->
    // This function takes in:
    // 1. A string expression to evaluate. For example:
    // 'document.getElementById(\'P125_STATUS\').value=InProcess'
    // Notice the quotes are escaped using a "\"
    // 2. One or more arguments which are item ID's as strings. For example:
    // ...,'P1_ENAME','P1_SAL'...);
    // Notice the ID's are the item names, NOT item labels
    function disFormItems(testString,P125_ISSUE_SUMMARY,P125_ISSUE_DESCRIPTION){
    theTest = eval(testString);
    if(theTest){
    for(var i=1;i<4;i++){
    if (arguments){
    disItem = document.getElementById(arguments[i]);
    // disItem.style.background = '#cccccc';
    disItem.disabled = true;
    else{
    for(var i=1;i<4;i++){
    if (arguments[i]){
    disItem = document.getElementById(arguments[i]);
    disItem.disabled = false;
    // disItem.style.background = '#ffffff';
    //-->
    </script>
    In the Footer:
    <script language="JavaScript1.1" type="text/javascript">
    disFormItems('document.getElementById(\'P125_STATUS\').value==\'In-Process\'','P125_ISSUE_SUMMARY','P125_ISSUE_DESCRIPTION');
    </script>
    In the Status field HTML Form Element Attributes:
    onChange="javascript:disFormItems('document.getElementById(\'P125_STATUS\').value == \'In-Process\'','P125_ISSUE_SUMMARY','P125_ISSUE_DESCRIPTION');"
    Can somebody let me know what's wrong?
    Any help is greatly appreciated.
    Thanks in advance

    FYI: I used the following JavaScript to make it work:
    In the Header Text
    function SetReadOnly()
    var status = document.forms[0].p_t09.value;
    if(status == 'In-Process')
    document.forms[0].p_t02.readOnly = true;
    document.forms[0].p_t03.readOnly = true;
    //-->
    In the Footer
    <script language="JavaScript1.1" type="text/javascript">
    SetReadOnly();
    </script>
    In the HTML Form Element Attributes
    onChange="javascript:SetReadOnly();"
    Thank you very much for your suggestion

  • Adobe interactive form : Disabled menu item

    Hi experts,
    we recenlty satred working in Adobe iteractive form in SAP. and we are facing folllowing issues
    1)submenu item is disable (submenu item from "Layout" and "Table" is not enable)
    any solution?

    Hi Sandy,
    Thanks for Replying
    yes i am in display mode but same thing happens when i am in edit mode..
    sorry i can not go in edit mode right now as another developer is working on it.
    SAP Net weaver version - 7.31 with EHP 6.0
    ALD version :  ES2 9.0
    See below Screenshot from other adobe form
    Message was edited by: Zubin ..

  • 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) ;

  • Can we create items dynamically or at run time?

    Hello expert,
    can we create some item dynamically at some button click?
    Thanks
    yash

    yash_08031983 wrote:
    Hello expert,
    can we create some item dynamically at some button click?Hello, yash
    You can not create items at run time. But you can manage them at run time by setting Visible property programatically.
    Hope this helps..
    Hamid

  • 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 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.

  • How do i disable menu items in Help manu, Photoshop cs6?

    How do i disable menu items in Help manu, Photoshop cs6?
    I packaged Photoshop cs6  using AAMEE CS6.
    I need to some menu items to disable.
    can any one please tell the process of doing , or which registries or files need to edit.
    Appreciate the immediate response.
    thanks in advance.

    Hello8
    Given the fact that you speak about AAMEE, it's not clear if you search for an automated and remote way to do it on multiple machines or not.
    (and therefore if this thread should be moved to the relevant forum, http://forums.adobe.com/community/download_install_setup/creative_suite_enterprise_deploym ent )
    To disable menu items, simply go to Edit>Menus and click on the eyeball next to the menus you do not want.
    It is then possible to save it in a workspace that by default will be located there: Documents and Settings/[user name]/Application Data/Adobe/Adobe Photoshop CS6/Adobe Photoshop CS5 Settings/Workspaces (Modified)
    I'm not sure if Photoshop will start if the default workspaces are removed, as there is an option to restore them in the preferences.
    Also, this is not customer support, but a forum fielded by volunteers that answer when they can, so inviting for an"immediate response" has no bearing; and might even have the opposite effect, but thanks for doing it in a polite and non too demanding way!

  • 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...        

Maybe you are looking for