Disabling/greying out some values in dropdown list

Hi All -
I have a dropdown select list (LOV from a table) and it lists all the employees and contractors from a table.
How do I greyout/disable contractors only i.e. user shouldn't be able to select the contractor from the list but it should be displayed in the dropdown list.
I am using ApEx 3.2 version.
Please share your expertise.
-Seenu

I wasn't going to comment first, but next time search the forums before posting a question and then when it is necessary to post, please give people adequate time to respond. Oracle's forums were having technical problems which prevented me from posting earlier -- not that a 4 hour turn around is bad for free advice anyway....
My original planned response:
Patrick's response in this thread helped me:
Select List With Heading
I spiced it up a bit by actually changing the color of the option within the select list...
I added
<style>
.graySelect
color: gray;
font-size: 12px;
</style>
to the HTML Header and
modified Patrick's query by using something similar to (took my solution and put it in his example):
, JOB_ID||DECODE(JOB_ID, 'AC_MGR', '" class="graySelect" disabled="disabled') AS R
But you need to account for differences in browsers...
1) firefox (version 3 from my testing) will not let you select the disabled/grayed out option...
2) internet explorer (version 6 from my testing) WILL let you select the disabled option...it actually then sends in a NULL value for that HTTP POST parameter...so as patrick says you will need to have a page item validation to make sure they didn't submit a gray option (and return an error if they did)...
good luck!

Similar Messages

  • Add values in Dropdown list

    Hi,
    My reqiurement is to add values in Dropdown list which is standard one. Already threre some values are there, like
    hourly,daily,wekly.
    Now I need to add montly value to the above dropdown list.How this can be done.
    Suggest me.
    Thanks,
    Brahmaji

    Hi,
    Expand the Attribute Period_type and double click on its GET_V method.
    You will find following code line :
    lr_ddlb->set_selection_table( me->job_wizard ).
    Double click on the Set_selection_table method to open the method code.
    You will find a LOOP.. ENDLOOP there. Here,to remove the values, comment out this LOOP- ENDLOOP.
    and  add following lines
             ls_ddlb-key   = 'Y'.
            ls_ddlb-value = 'Yearly'.
            APPEND ls_ddlb TO me->ddlb.
    Thats All .
    Hope it Helps.
    Regards,
    Suchita

  • How to disable (grey-out) the ticks of a JSlider?

    Hi everyone,
    In my GUI, I have a JSlider that I want to be disabled (greyed out)
    because it should be only actived on my application next version.
    (It is important though to have it to preserve GUI appearence).
    Problem is that I was unable to greyout the ticks even though
    already managed to grey out the slider and the number labels.
    Right now, it is pretty uggly to have a partial disabled slider,
    because due to ticks not being disabled.
    Questions:
    1) Does anyone have an idea of how to do it?
    A small part of my code is shown below:
    JSlider dynSl = new JSlider();
    dynSl.setMajorTickSpacing(1);
    dynSl.setValue(0); //Default
    dynSl.setMaximum(7);
    dynSl.setMinimum(0);
    dynSl.setPaintLabels(true);
    dynSl.setPaintTicks(true);
    dynSl.setFont(new java.awt.Font("Dialog", 0, 9));
    dynSl.setSnapToTicks(true);
    dynSl.setEnabled(false);
    // small code just to put the numbers of the slider smaller
    Enumeration enum = dynSl.getLabelTable().elements();
    while (enum.hasMoreElements()) {
    JLabel elem = (JLabel)enum.nextElement();
    elem.setFont(new Font("Dialog",0,8));
    elem.setEnabled(false);
    2) If not possible, how do I change the colour of a JSlider (including
    the Ticks)?
    My idea is to change Slider's colour to the same grey colour one used
    to disable it, making at the end the slider look as if it was disabled.
    Thanks in advance,
    Jorge

    Hi again,
    Thanks for the help.
    I was trying to avoid not having the ticks at all but it seems to be
    the best choise because I could not solve the problem of greying out
    them.
    I did some more troubleshooting though and for my surprise, if I use
    the same code alone, i.e, a simple frame with just the slider it works
    fine. I even thought that it was related with having Windows LnF as
    opposed to Metal (Java) LnF, but that was not the problem.
    The only thing it comes to mind, is that there may be some problem by including the slider on a GridBagLayout !?!?!?
    Anyway,
    What has no simple solution, solved is! :-)
    Jorge

  • BADI/user exit for me22n - disable/grey out field quantity (MEPO1211-MENGE)

    Dear all SAP gurus,
    When changing PO (ME22N), I need to disable (grey out) the quantity field on item (MEPO1211-MENGE), when all scheduled quantity is already received (EKET-MENGE = EKET-WEMNG).
    Have tried using LMEIGICJI and Handle_event method in CL_SCREEN_VIEW_MM. But still doesn't go to the screen that wants to be disabled.
    Tried using BADI ME_PROCESS_PO_CUST, but couldn't find how to disable the quantity field.
    (IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM only works for custom field).
    Please kindly advise
    thanks in advance

    Hi Ahmad,
    No need of ABAP, follow this IMG Path.
    Material Management -> Purchasing - Purchase Order ->  Define Screen Layout at Document Level
    After Executing it . Choose ME22 from list and then choose display icon.
    than double click Quantity and Price here uncheck opt. Entry and check display.
    save your work.
    Hope this works.
    Regards
    Ahsan

  • Delete values in Dropdown list

    Hi
    I want to delete values from a dropdown list.
    The attribute is:
    Component: ICCMP_BP_DETAIL
    View: ICCMP_BP_DETAIL/BuPaCreate
    Context Node: PARTNERTYPE
    Attribute: BP_CATEGORY
    Do you have any idea of how to achieve this?
    Best regards.
    JM

    Hi,
    My reqiurement is to add values in Dropdown list which is standard one. Already threre some values are there, like
    hourly,daily,wekly.
    Now I need to add montly value to the above dropdown list.How this can be done.
    Suggest me.
    Thanks,
    Brahmaji

  • Took videos with the same camera some are greyed out some are not

    when trying to import videos to imovie some of my videos are greyed out some are not...they were taken with the same camera.....how do i fix this

    Hi,
    Firstly, I still suggest you using gpresult command to check your current GP settings. Follow the steps below to generate GPReport:
    1. Open CMD
    2. cd desktop
    3. GPRESULT /H GPReport.html
    4. GPReport.html
    Secondly, you can use Process Monitor to capture the process of encrypt drive with Bitlocker, then check if there is any
    Access Denied items.
    You can access to the link below to download Process Monitor:
    https://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
    How to capture a Process Monitor trace:
    http://blogs.msdn.com/b/dswl/archive/2010/01/10/how-to-capture-a-process-monitor-trace.aspx
    Learning Example:
    Using Process Monitor to Troubleshoot and Find Registry Hacks:
    http://www.howtogeek.com/school/sysinternals-pro/lesson5/all/
    Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to disable (grey out) button in report

    Hi,
    Can any one; pls help how to disable button (grey out) on some specific condition.
    I have a report of 2 pages; In first page it displays few records; once click on specific record control goes to next page 2; And here i have button (template based button); Once click on this it perform pl/sql procedure.
    My requirement is: The button should disable (should not hide) when moves from page 1 to page 2 based on some specific returned values in page 2.
    I have return code in button conditions (Condition type = PL/SQL Function Body Returning a Boolean)
    Sample code is:
    if :value1 = 'disable_test_value' then
    return false;
    else
    return true;
    end if;
    The above code is working fine with button completely disappers if the :value1 = 'disable_test_value' (which is suppossed to be as we gave return false).
    My question is: Is there any way; we can still show button (but button disabled or grey out; so that no action can perform on this button )? And also show some text message in other text field when button is disabled?
    Thanks!!
    UK

    I have an example: http://apex.oracle.com/pls/otn/f?p=27168:1 using theme #2. You need to use a theme that has a "grayed-out" alternate button template.
    To accomplish this I:
    1) Created one item named P1_VALUE1 to contain the condition as to whether the button should be enable ("enable_test_value") or disabled ("disable_test_value").
    2) Created an enable button with a "Button Style" of "Template Based Button" with "Button Template" value of "Button". I had the "Condition" type of "PL/SQL Function Body Returning a Boolean" to be:
    if :p1_value1 = 'disable_test_value' then
    return false;
    else
    return true;
    end if;I had the "URL Target" to be: javascript:alert('Performing function ...');
    3) Create a disabled button with "Button Style" of "Template Based Button" with "Button Template" value of "Button, Alternate 3". I had the "Condition" type of "PL/SQL Function Body Returning a Boolean" to be:
    if :p1_value1 != 'disable_test_value' then
    return false;
    else
    return true;
    end if;I had the "URL Target" to be: javascript:alert('Performing function ...');
    Mike

  • Want to disable/"grey out" dial-up connection "settings" button in the "connections" tab of Internet Options

    Hi, I'm looking to "grey out" a dial-up connection for some users in workplace, so that they are forced to use our VPN client in order to access the web. Does anyone know if this is possible?
    I know you can disable all settings on that tab using local group policy, (e.g. Administrative Templates\Windows Components\Internet Explorer) but I only want to disable a specific dial-up connection (for usb 3G modems).
    I've read of various IE settings being locked down in the registry here, HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions, but havent seen the settings I want.
    The actual connection is visible here, HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections, I just cant figure out how to grey it out. Any ideas? Thanks!

    http://technet.microsoft.com/en-us/library/cc732613(v=WS.10).aspx
    The following Group Policy settings can be edited and applied to users that are members of the Group Policy object (GPO) in which the Group Policy setting is included. By default, the Group Policy settings are not configured.
    Prohibit deletion of remote access connections. If you enable this Group Policy setting, then affected users cannot delete any remote access connections, including those they create themselves.
    Prohibit access to the Remote Access Preferences item on the Advanced menu. If you enable this Group Policy setting, then affected users cannot access the
    Remote Access Preferences setting on the Advanced menu of the Network Connections folder. The top menu bar, including the
    Advanced menu, appears when you press the ALT key.
    Prohibit access to properties of a LAN connection. If you enable this Group Policy setting, then affected users cannot change any of the properties of a LAN connection.
    Ability to change properties of an all user remote access connection. If you enable this Group Policy setting, then affected users can modify the properties of a remote access connection that is shared with the other users on the computer.
    By default, standard users can only modify properties for a connection that is not shared.
    Prohibit connecting and disconnecting a remote access connection. If you enable this Group Policy setting, then affected users cannot connect by using any remote access connection, or disconnect any that are currently connected.
    Prohibit changing properties of a private remote access connection. If you enable this Group Policy setting, then affected users cannot change the remote access connection properties that are not shared. By default, standard users can modify
    connections that are not shared.
    Prohibit renaming private remote access connections. If you enable this Group Policy setting, then affected users cannot rename remote access
    connections that are not shared. By default, standard users can modify connections that are not shared.
    Rob^_^

  • HELP - Guest Log In on File Sharing Suddenly Disabled (Grey Out)?

    Hello all.
    This is my office MacPro, we have a pool of Macs running graphics and also Avid software. We file share with local network through Apple File Sharing.
    By default we would be able to turn on our own Mac's file sharing, and other user would log in to our Public folder > Drop Box ... etc
    In Leopard, we are able to designate other folder for file share, which I have done. I disabled my default Public folder for file sharing. And created a folder outside my User folder for file sharing, so that others log into my mac as guest user can access it too.
    Actually everything is just fine, other mac users just need to log in as Guest to access my share folder.
    But this morning, all of a sudden, without any tweaks or anything, other mac users cannot log in as Guest, the Guest option is grey out.
    I have tried disabling file share, enable, re-create a new folder to share or re-enable the default Public folder to share, but the Guest option is still grey out.
    What could have happen?
    Need to solve this as soon as I can, thanks and cheers

    Thanks - the weekend was very pleasant indeed!
    I agree that something seems to awry in the Leopard MBP. The question is "what". The symptoms now are:
    1) iTunes music sharing from MBP is broken
    2) Connecting to Panther Mac via AFP is broken (although one Mac can be connected via IP address)
    3) Machine works well on a Windows network
    Based on all of this, I would guess that there is a problem in the "Bonjour" networking of the MBP. You could try:
    1. Using a different account to see if it is local to your user id.
    2. Failing that, removing your com.apple.AppleFileServer.plist and com.apple.AppleShareClient.plist files from /Library/Preferences
    Outside of that, I would have to do some more digging.

  • Value help dropdown list not showing up other values

    Dear all,
    I'm new to Adobe and Java WD. I managed to go through all the tutorials and developed a WDJ and embedded an interactive form in the view. I also used an RFC Model to pull some values from n R/3 table and populate in a context node element.
    These values are appearing perfectly fine in the WDJ if I'm using a table or a drop down list index field.
    But in the Adobe form, when i bind this context node to a WebDynpro native Value help drop down list box, only the first value of the table appears. On clicking on it, nothing happens. I'm not sure what is the problem.
    Can anyone please help me in this? Should i write some code to bring the other values too? (the tutorial doesn't say this!)
    If so, then please give some sample java codings and step by step process for populating the field values with the table values.
    My node structure is like below
    Context
         Ysam_Get_Values_Input(Node-RFC)
              Output (Node-RFC O/P)
                   Values(Node-table from the RFC)
                       Slno (attribute that has the values to be populated with)
    Any help is greatly appreciated.
    Thanks,
    Sam

    Hi Raja,
    In the view:
    <htmlb:gridLayoutCell id                  = "AddedProfileNameIF"
                                        columnIndex         = "2"
                                        rowIndex            = "2"
                                        horizontalAlignment = "LEFT"
                                        verticalAlignment   = "MIDDLE" >
                    <htmlb:dropdownListBox id         = "added_profile1"
                                           helpValues = "//model/ust10st.profn"
                                          />
                  </htmlb:gridLayoutCell>
    In the Model:
    method MODEL_INIT .
    select profn from ust10s into  table UST10ss.
    read table UST10ss index 1 into UST10st.
    endmethod.
    In controller:
    METHOD do_init .
      m_model ?= create_model( model_id = 'm'
                               class_name = 'zcl_model_zsox1' ).
    m_model->model_init( ).
    ENDMETHOD.

  • How to set a default value in dropdown list in Wendynpro ABAP? Help!

    Hi Experts,
           I have Webdynpro for ABAP application that shows a DropdownwithKey UI element.
    1. I am able to populate the dropdown list. But by default the list is not showing any value. Only when I select a value from the list then it shows it.
    So how to set the default value to the first value in the list? Any code sample will be really helpfull.
    I have written the following code:
    method WDDOINIT .
      DATA:
        node_category TYPE REF TO if_wd_context_node_info.
      node_category = WD_CONTEXT->GET_NODE_INFO( ).
      node_category = node_category->GET_CHILD_NODE( 'CATEGORY' ).
      data:    LT_VALUESET type WDR_CONTEXT_ATTR_VALUE_LIST,
               L_VALUE type WDR_CONTEXT_ATTR_VALUE.
    L_VALUE-VALUE      = 'V1'.
    L_VALUE-TEXT    = 'yesterday'.
    INSERT L_VALUE into table LT_VALUESET.
    L_VALUE-VALUE      = 'V2'.
    L_VALUE-TEXT    = 'today'.
    INSERT L_VALUE into table LT_VALUESET.
    L_VALUE-VALUE      = 'V3'.
    L_VALUE-TEXT    = 'tomorrow'.
    INSERT L_VALUE into table LT_VALUESET.
    node_category->SET_ATTRIBUTE_VALUE_SET(
                 NAME = 'CAT_VALUE'
                 VALUE_SET = LT_VALUESET ).
    endmethod.
    Note that: I am using webdynpro for ABAP.
    Thanks
    Gopal

    I am not sure how it works in Web Dynpro for ABAP, but in Web Dynpro for Java to set default drop down value you will have to set the value for particular attribute (which is linked to the dropdown element)  in the context
    like
    wdContext.currentContext<nodeName>Element.set<FieldName>(<defalut value>)
    This generally done in Initialization method of the controller.

  • How to grey out the values in checkbox?

    Hi,
    In my library application, a "borrow book" page is available. This page displays all the books available in the library in the form of check boxes, if the available count is "0" in the database, that book will not be displayed, but ideally this is not a good apporach. I want all the books to be displayed, but the books which has the available count as "0" in the database should be greyed out, by doing this the users can see all the books available in the library, but they cannot select the "unavailable books". I have no clue, how to get this done, can someone please help me to resolve this issue.

    Hi Suzi,
    I would suggest not rendering a checkbox if it is not required.
    Otherwise, add the attribute disabled="disabled" (this may not work in all browsers).
    Regards
    Michael

  • Selected value in dropdown list box

    hi forums,
      how to capture the selected value in drop down list box and how it will link with the table.
    layout:
        <htmlb:dropdownListBox  id = "d1%>"
                                nameOfKeyColumn = "vbeln"
                              nameOfValueColumn = "vbeln"
                             table       = "<%=it_sales%>" />
    in dropdown list box,how do i capture the selected values.
    OnInitialization:
    Select vbeln from vbak
      into corresponding fields of table it_sales.
    regards,
    ravi.

    hi Ravikiran,
       In button even,we r mension the event_type = 'click'.
    but in dropdownListBox what is the event_type.
    i tryed like this.
    DATA : EVENT TYPE REF TO CL_HTMLB_EVENT.
    ***this is for button************
    *event = CL_HTMLB_MANAGER=>get_event( RUNTIME->SERVER->REQUEST ).
    *IF event->NAME = 'button' AND event->event_TYPE = 'click'.
    DATA : button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
    button_event ?= event.
    *ENDIF.
    *********this is for dropdownListBox**********
      event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
      IF event->name = 'dropdownListBox' AND event-         >event_type = 'selection'.
           DATA :  dd_listbox_event TYPE REF TO CL_HTMLB_EVENT_SELECTION.
           dd_listbox_event ?= event.
    CASE EVENT->ID.
    when 'id1'.
    CALL METHOD REQUEST->GET_FORM_FIELD
          EXPORTING
            NAME  = 'id1'
          RECEIVING
            VALUE = SEL.
    WHEN 'myButton'.
       CALL METHOD REQUEST->GET_FORM_FIELD
         EXPORTING
           NAME  = 'id1'
         RECEIVING
           VALUE = SEL.
    ENDCASE.
    endif.
    with regards,
    ravi.

  • Tiger - All Sahring Options/Services disabled, greyed out

    Hello from Portugal!
    I noticed that on System Preferences I had all my Sharing services disabled and cannot select any of them (greyed out). Also, the Firewall Tab was disabled to (greyed out), and I couldn't select it either. I noticed that as the first option (also greyed out) I had a new service called "M82" ( ? ) that I had never seen before.
    1- So I did a Archive and Install from Tiger 10.4.0 original DVD to try to find out what update cause this strange behavior.
    2- After that I updated from 10.4.0 to 10.4.11 (Combo update) with Software Update.
    3- After that I checked the Sharing services and all was well and normal. I could select/activate all the Sharing Option and the Firewall Tab was back to normal again.
    4- I returned to Software Update and Made the folowing updates/instalations:
    . Java 1.3.1 and 1.4.2 Release 2 (2.0)
    . QuickTime (7.6)
    . Migration and DVD/CD Sharing (1.1)
    . Safari 3.2.1
    5- After the restart I checked again and all my Sharing services and Firewall Tab were once again disabled. Also, the mysterious new service "M82" (also disabled) was back again.
    So the cause of this problem is one (or more) of the updates I made in step 4 (maybe not Safari 3.2.1).
    What can I do to resolve this issue without having to install Tiger 10.4.0 again?
    Thank you for your help!
    pedro
    Message was edited by: Pedro Taquelim

    Thanks for your help BDAqua,
    I modified my system language from Portuguese (Portugal) to english an all got back to normal.
    altought it's a solution to resolve this specific problem, it's forces me t use english instead of my mother language. Not wise. I'm going to contact Apple to fix this.
    Thanks again!
    pedro

  • Sort option in Repetitive Area on AR Invoice PLD is disabled / greyed out

    Hi Experts,
    I have an issue whereby in my PLD the sort option under Print Layout Design Manager -> Repetitive Area -> Sort is greyed out / disabled in the AR Invoice PLD. Does anyone know why this might be? I've not seen this before and I can't find any notes relating to specifically to this issue in an AR Invoice PLD.
    2007A PL06 Hot Fix 01.
    Many thanks for any help,
    Caroline

    Hello Khushwant,
    In SAP when your business Process is Sales Order --> Delivery --> AR Invoice
    SAP would print the Batch Numbers along with the Delivery document.
    But your Business Process is Sales Order --> AR Invoice
    SAP would print the Batch Numbers along with the Invoice document.
    Whichever document releaves inventory, SAP will Open the Batch selection screen when adding that document and the Batch Report will be printed on a seperate sheet along with that document.
    The functionality change in SBO 2007, is that the Batch number print on the Delivery / Invoice document itself instead of on a seperate Page as in 2005.
    Could you please explain your Business Process in relation to what I have mentioned earlier.
    Printing the Batch Number as part of the Invoice document itself in SBO 2005 is going to be a tough task.
    Let me know if where and how you want to print this information.
    Regards
    Suda

Maybe you are looking for

  • Campaign and related document

    Can anyone please tell me where the document related to a campaign element is stored ..I mean in where I can get the documents related to a Campaign.(I am working on the marketting planner) Message was edited by:         bharat pkm

  • Windows 2012 R2 / Windows Essentials Role. How to keep from Changing DNS.

    So I have asked this question in the windows 2012 Server board and was directed to try it here in the essentials. that existing thread is here >> http://social.technet.microsoft.com/Forums/en-US/11cfbc1b-0001-42d6-85c1-304d1e450679/windows-2012-r2-wi

  • File size duplication or . . .

    If I have some photo files in my system that total 100MB in size and import them into Lightroom are they "duplicated" on my system? That is, would my hard drive be "used up" to the tune of 200MB . . . or still be filled with only 100MB of space used?

  • Helix pen not traveling across the entire screen

    Hello, Recently received my Helix, and I absolutely love it. Have encountered a serious issue, though. Often when I remove the pen, its range of motion is limited to a small square in the corner nearest the pen silo. I can move the pen cursor within

  • How to use difference matte ?

    Can anyone tell me how to use Effects/Video filters/Key/Difference Matte ? I tried the following: 2 clips: clip1 only wall, clip2 same wall and me. (used tripod) Put both clips on top off eachother in the timeline and applied the key in all possible