How hide the value in combobox

Hi all
I add the vales and discrption to comboBox ,but I need to hide the value
please help me

Unforunately I do not think this can be done.
You can set what the combobox will display after selecting from the drop down by setting oItem.DisplayDesc = true
But to hide the values in the actual drop down list is not possible as far as I know - using the SDK at least. I know some combos are displayed like that by SAP, but this is not exposed to the UI.
The only thing I can think of is a workaround:
1. Move the existing combo box (combo1) off the form - set it to left=10000 or something
2. Add a new combo box (combo2) where it was
3. Add valid values to the new combo box (combo2); use the descriptions from the original combo (combo1) and set the value to be a number
4. When someone selects a validvalue in the new combo (combo2), select the corresponding value in the original combo (combo1)
This way, your databinding is preserved & to the user it looks nice and tidy.
If you do not want to do something like this, I do not think you can do it.

Similar Messages

  • How hide the discriptions on list of comboBox

    Hi All
    I need to hide the discriptions on list of comboBox
    please help me

    Hi,
    You can check this: How hide the value in combobox
    Try oItem.DisplayDesc = false
    Thanks,
    Gordon

  • Hide the value..

    Hi,
    How to hidden a value in standard report region record on page load?
    for example below is my standard report region record.
    A        B         C
    1        2         3
    4        5         6on page load i want to hide the value 1 and 2 from first record. i.e i want below output.
    A        B         C
                       3
    4        5         6i used apex item in select query(in region source) of report region(type:sql query)
    i.e select apex_item.text(1,A,2),apex_item.text(2,B,2)....
    How to achive this?

    I would do it in the query, example:
    Select Apex_Item.Text(p_idx,CASE WHEN your_logic THEN Your-Column-Value ELSE NULL END,rest of parameters), Next column,...
    From...
    Where...

  • [WPF] Use IValueConverter but hide the value in cell

    Hi, 
    I have a column with a range of age.
    I'm using a Convert to set a background color to a single cell of my column 'age'...
    I would color the cell but hide the numeric value.
    I can set a custom background, but I can't hide the value.
    How can I make this?
    This is my code:
    XAML:
                        <DataGridTextColumn Binding="{Binding Age}" Header="Age - Color Range" Width="200">
                            <!-- COLOR CELLA -->
                            <DataGridTextColumn.ElementStyle>
                                <Style TargetType="{x:Type TextBlock}">
                                    <Setter Property="Background" Value="{Binding Age, Converter={StaticResource ColorToCell}}"/>
                                </Style>
                            </DataGridTextColumn.ElementStyle>
                        </DataGridTextColumn>
    C#
    public class ColorToCell : IValueConverter
            public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
                int tempValue = int.Parse(value.ToString());
                string tempString = "Red";
                if (tempValue >= 0 && tempValue <= 20)
                    tempString = "#FF0000";
                if (tempValue > 20 && tempValue <= 40)
                    tempString = "#F09300";
                if (tempValue > 40 && tempValue <= 60)
                    tempString = "#EDDF00";
                if (tempValue > 60 && tempValue <= 80)
                    tempString = "#CC00FF55";
                if (tempValue > 80 && tempValue <= 100)
                    tempString = "#85AB00";
                SolidColorBrush brush = new SolidColorBrush();
                BrushConverter conv = new BrushConverter();
                brush = conv.ConvertFromString(tempString) as SolidColorBrush;
                return brush;
            public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
                return DependencyProperty.UnsetValue;
    Thanks.

    If you want to hide the value in the cell you could just set the Visibility of the TextBlock to Collapsed based on some converter logic:
    <DataGridTextColumn.ElementStyle>
    <Style TargetType="{x:Type TextBlock}">
    <Style.Triggers>
    <DataTrigger Binding="{Binding Age, Converter={StaticResource ageConverter}}" Value="True">
    <Setter Property="Visibility" Value="Collapsed"/>
    </DataTrigger>
    </Style.Triggers>
    </Style>
    </DataGridTextColumn.ElementStyle>
    Return true from the Convert method of the ageConverter to hide the TextBlock. You can then set the background of the cell using a CellStyle:
    <DataGridTextColumn.CellStyle>
    <Style TargetType="DataGridCell">
    <Setter Property="Background" Value="{Binding Age, Converter={StaticResource ColorToCell}}"/>
    </Style>
    </DataGridTextColumn.CellStyle>
    The other option is to set the Foreground property of the TextBlock to the same colour as the Background:
    <DataGridTextColumn.ElementStyle>
    <Style TargetType="{x:Type TextBlock}">
    <Setter Property="Background" Value="{Binding Age, Converter={StaticResource ColorToCell}}"/>
    <Setter Property="Foreground" Value="{Binding Age, Converter={StaticResource ColorToCell}}"/>
    </Style>
    </DataGridTextColumn.ElementStyle>
    Please remember to mark helpful post(s) as answer to close your threads.

  • Hide the value of certain cells in ALV GRID

    Hello Gurus,
    i need to hide the value or show a icon instead ib certain cells in the ALV GRID for the users that don't have the corresponding rights. Can anyone help?
    Regards,
    Ioan Constantin.

    Check this example, you'll need to adjust it to your authority object to run it.
    TYPES: BEGIN OF t_alv,
             mandt TYPE s_mandt,
             carrid TYPE s_carr_id,
             connid TYPE s_conn_id,
             fldate TYPE s_date,
             price TYPE s_price,
             currency TYPE s_currcode,
             planetype TYPE s_planetye,
             seatsmax TYPE s_seatsmax,
             seatsocc TYPE s_seatsocc,
             paymentsum TYPE s_sum,
             seatsmax_b TYPE s_smax_b,
             seatsocc_b TYPE s_socc_b,
             seatsmax_f TYPE s_smax_f,
             seatsocc_f TYPE s_socc_f,
             planetype2 TYPE s_planetye,
           END OF t_alv.
    DATA: go_alv     TYPE REF TO   cl_gui_alv_grid,
          gt_sflight TYPE TABLE OF sflight,
          gt_alv TYPE STANDARD TABLE OF t_alv,
          wa_fl TYPE sflight,
          wa_fl2 TYPE t_alv,
          gt_fieldcat TYPE lvc_t_fcat,
          wa_fcat TYPE lvc_s_fcat.
    FIELD-SYMBOLS <gs_fcat> TYPE lvc_s_fcat.
    SELECTION-SCREEN BEGIN OF SCREEN 1001.
    SELECTION-SCREEN END   OF SCREEN 1001.
    START-OF-SELECTION.
      SELECT * FROM sflight INTO TABLE gt_sflight.
      LOOP AT gt_sflight INTO wa_fl.
        wa_fl2 = wa_fl.
        IF sy-tabix <> 5.
          wa_fl2-planetype2 = wa_fl2-planetype.
        ENDIF.
        APPEND wa_fl2 TO gt_alv.
      ENDLOOP.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
       EXPORTING
          i_structure_name             = 'SFLIGHT'
        CHANGING
          ct_fieldcat                  = gt_fieldcat.
      LOOP AT gt_fieldcat ASSIGNING <gs_fcat>.
        wa_fcat = <gs_fcat>.
        IF wa_fcat-fieldname = 'PLANETYPE'.
          wa_fcat-fieldname = 'PLANETYPE2'.
          wa_fcat-col_pos = 7.
          AUTHORITY-CHECK OBJECT 'ZPERMISO16'
              ID 'ZPERMI' FIELD '01'.
          IF sy-subrc = 0.
            wa_fcat-tech = 'X'.
            wa_fcat-no_out = 'X'.
          ELSE.
            <gs_fcat>-tech = 'X'.
            <gs_fcat>-no_out = 'X'.
          ENDIF.
          APPEND wa_fcat TO gt_fieldcat.
        ENDIF.
      ENDLOOP.
      CREATE OBJECT go_alv
        EXPORTING
          i_parent = cl_gui_container=>screen0.
      CALL METHOD go_alv->set_table_for_first_display
        CHANGING
          it_outtab                     = gt_alv
          it_fieldcatalog               = gt_fieldcat .
      CALL SELECTION-SCREEN 1001.

  • How does the value filled in Appointment Date field reflect in IE_SHIPMENTSTATUS table?

    Hi Team,
    Just wanted to know : How does the value filled in Appointment Date field reflect in IE_SHIPMENTSTATUS table in OTM.
    Please help.
    Regards,
    John

    Sorry, wrong forum: created in ABAP forum instead.

  • How enter the values in to table when create entries option is not working

    hi everyone,
         can u please tell me How enter the values in to table when create entries option is not working.
    it's urgent.
    thanking u all

    Hi Shree,
    how many entries u want to insert ,,
    is it a ztable or custom table ..
    just tell me ur clear requirement ..
    clarify the same ..
    if no options avaliable then if its less entries or some value u can do it through debugging ..
    if its bulk entries then u can write a program ..
    just let me know ..
    regards,
    VIjay

  • How is the value for ETL_PROC_WID getting populated in W_ETL_LOAD_DATES

    Hello,
    Can you please let me know how the ETL_PROC_WID variable works in ODI with regard to the W_ETL_LOAD_DATES. I see my W_ETL_LOAD_DATES_LOG is having 0/1 everytime. Can someone please help me to understand how this 0/1 is populated. Also, if I want the value in the variable to be always 1 what needs to done.
    Thanks and regards !!

    From the BIAPPS documentation: ETL_PROC_WID This column is the unique identifier for the specific ETL process used to create or update this data.
    Given this description the value should be unique for every execution of an ODI integration process. If you want to see the logic behind the variable, either navigate to the ODI Console or ODI Studio connect to the BIApps ODI repository and take a look at the variable setup. 

  • Hi ! How is an infocube created in DP? How are the values populated ?

    Hi !
    Thank you so much for the reply!
    Could you please explain:
    1) How is an infocube created in Demand Planning?
    2)  How to store values for Characteristics and Key figures ?

    Hi,
    Basically Info cube is created in to APO-BW..If you want to store the data of planning area in to Info Cube..then you have to create whole data extraction process..see the steps below..
    1. Create data source under the planning area. T-code: /n/sapapo/msdp_admin..Click on planning area. Go to extras select data extraction tool. Create data source, test it & replicate it in to APO BW..
    2. Go to RSA1..create Infopackage under the data source & enter appropriate planninf version in selection criteria.
    3. Create Application component in Info Source modelling..Then create info source under the application by coping data source..so automatcially all the info objects will come in to info source.
    4. Create transformtion between IS & DS.
    5. Create Info Area in infoprovider modelling..Create Info cube, in that you need to add all the info objects (Char, Key figure, Time Char) same like info source.
    6. Create transformation between IC & IS.
    7. Create data transfer process.
    8. Now you can able to extract data from planning area.
    Regards
    Sujay

  • [b]PG_MIN_ROW - how get the value??[/b]

    Hi,
    How can I get the value of PG_MIN_ROW when paginating?
    I want to use the value in a Java script, how can I set a variable=pg_min_row?
    Regards
    Evelyn

    You are correct the page is not submitted when the user clicks on the NEXT or PREVIOUS links. Here are some threads that may help you:
         Re: Submit data when click on pagination
         Re: Challenge: Save "dirty" form before navigating awayMaybe what would help is if you stepped back and explained what you attempting to do at a higher-level.
    Mike

  • How does the value for "Escalated incidents" in the KPI report work?

    Hello,
    I've been running the standard KPI report in SCSM for our support groups and noticed that the value of "Number of incidents" in some cases are lower than the value for "Escalated incidents". How could this happen? Isn't "Number of
    incidents" the total and "Escalated incidents" just an indication of how many of the total that have been escalated? Do I need to add them together to get the total?
    It could be noted that we tick the check-box in the incident form manually without any connection to SLO.
    Am I missing something? Any suggestions would be appreciated. :)
    Best regards,
    Marcus

    >If you can't deactivate ahead of time, you can contact Adobe Customer Care to help you.  But like I said, you can install on up to 2 devices.  I think if you try to install on a 3rd device, your other 2 get deactivated automatically.  So even if you have to format C, you'll still be able to get up and running pretty quickly.
    Great, thank you.
    >Perpetual License means "yours to use for as long as your operating system can run it."   CS6 is almost 3 years old and no longer being updated.  It is what it is.  Presently, 4 versions back from the currently available Creative Cloud version.
    Too bad they went to a dumb subscription based model that doesn't allow you to purchase a full license outright.  I don't want to pay $30 a month,  I'd rather pay a lump sum and be done with it.

  • How remove the values which are entered in filter attributes of VO

    Hi,
    On top of one VO we are performing search using bind variables.
    To refine the search we have added filterable="true".
    Now when we perform seach and then we have filtered using one column we got result and we proceeded.
    When we come to this screen again when i perform search with the bindvariable and click on search then the previously applied filter is also getting applied
    becuase the value in that filter is still there.
    So How can i remove the value which is entered in filter attribute of the VO programatically.
    Please help me.
    Regards
    Gayaz

    would this help you:
    http://adfscopes.blogspot.com/2011/03/programatically-clearing-filter.html

  • Fetch the value from combobox

    we have two jsp files:-
    1. fundtrans.jsp
    2. update.jsp
    in file 1 we used 2 combobox and 1 textbox, we retrieved values in comboboxes from database.Now user select any value from both combobox and we want to send that value in next jsp page. After submitting values in both combobox and textbox , the database table updates.
    my problem is that we are not able to use the selected value in combobox on next jsp page

    Get the values and put it in the session (in your action class), then using session.getAttribute, get the values back in your another jsp.
    OR
    Put the selected values in the hidden field (do it in the javascript), using getter and setter method get the value back.

  • How does the values in tcode F.27is retrieved?

    Hello,
    I would like to ask how the value in F.27 is retrieved when I have filtered it base on the ff:
    Company code           
    Account           
    Indicator in master record
    Key dates for acct statement  (i.e. dec 1, 2009 to Dec 31, 2009)
    When I filtered it base on the above, I noticed that there is a discrepancy on the opening balance. Upon my investigation, I saw that the discrepancy was due to the previous open balance which was dated April 2004, that was added to the opening balance
    that fall on the date i put as key dates for acct statement. Do you know as to why it has added the previous open balance which is outside the specified scope? If so, can you let me know how to correct it?
    Thanks and your advice would be greatly appreciated.
    Kindest regards,
    Lem

    Hi Vishnu,
    Please check the settings in user profile.
    Regards,
    Madhu.

  • How to the value of NLS_LANGUAGE

    I use Oracle9i,I want to know how to show the value of NLS_LANGUAGE?
    Thanks.

    Hi,
    what exactly you want to do with NLS_LANGUAGE???
    do you want to set this parameter or want to see the parameter value?
    slq> show parameter NLS_LANGUAGE
    Regards,
    Darshan

Maybe you are looking for

  • Creation of users for SDM

    Hi, I have a WAS 6.40 running on a server.Now we have different developers who work on their respective desktops using NWDS. When they want to deploy WD app from their NDS,it asks for a SDM passwd. What exaclty is this SDM passwd?Is it the passwd for

  • Xcelsius Developer needed in Houston, TX

    Hello all... I hope the good people of this forum can help me in my search! A client of ours in Houston, TX...Downtown, specifically...is looking to hire a solid Xcelsius developer for 2-3 months on a contract (W2) basis. My client is in municipal re

  • A problem with microphone

    I have upgraded my Iphone 5 to IOS 7.0.4. When i make a call and talk through the speaker they can not hear me even Siri ??

  • Automator: render pdf to images

    I am taking a folder of pdf files all named numerically in the order they should be in and rendering them to images using the automator "render pdf to images." This outputs the images with completly random names. Even using the "Rename Finder Items"

  • Syncing MobileMe Gallery into iPhoto

    I am trying to moving a mobileme gallery of photos into iphoto. The "sync" is taking over 12 hours. How can I stop it and start over? Thanks.