Text in dropdown

I am loading data in dropdown using following code-
Dim ddlGroup As SAPbouiCOM.ComboBox
        Dim objRecord As SAPbobsCOM.Recordset
        Dim intI As Integer
        ddlGroup = SBO_Application.Forms.ActiveForm.Items.Item("ddlGroup").Specific()
        objRecord = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
        objRecord.DoQuery("Select * from OITB")
        If ddlGroup.ValidValues.Count = 0 Then
            For intI = 0 To objRecord.RecordCount - 1
                ddlGroup.ValidValues.Add(objRecord.Fields.Item(0).Value, objRecord.Fields.Item(1).Value)
                objRecord.MoveNext()
            Next
        End If
The data strored in dropdown is 133 - LCD.When I select this value 133 is displayed.I want to display as LCD.I want to hide 133.

hi dilip,
for the dropdown item set the property DisplayDesc=true
Replace ur code with following code
Dim ddlGroup As SAPbouiCOM.ComboBox
Dim objRecord As SAPbobsCOM.Recordset
Dim intI As Integer
ddlGroup = SBO_Application.Forms.ActiveForm.Items.Item("ddlGroup").Specific()
SBO_Application.Forms.ActiveForm.Items.Item("ddlGroup").DisplayDesc=true
objRecord = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
objRecord.DoQuery("Select * from OITB")
If ddlGroup.ValidValues.Count = 0 Then
For intI = 0 To objRecord.RecordCount - 1
ddlGroup.ValidValues.Add(objRecord.Fields.Item(0).Value, objRecord.Fields.Item(1).Value)
objRecord.MoveNext()
Next
End If
hope it helps you
Regards
Vishnu

Similar Messages

  • Applescript retreive text from dropdown menu safari

    Hi everybody
    I need to get the text of dropdown menu in Safari
    Eventually loop to each option to get every item (text)
    But for now i just try to get one... Applescript allways return message (missing value)
    tell application "Safari"
        activate
        tell document 1
            do JavaScript "var mySelect = document.getElementsByName('customer')[0].selectedIndex.text()" 
        end tell
    end tell
    I'v try document.getElementsByTagName...same result
    Thanks

    OK i'v found
    i get the number of option by
                                do JavaScript "var v = document.getElementsByName('customer')[0].length;"
    then i loop putting the v variable at the end of the selectIndex
                                do JavaScript "var x=document.getElementsByName('customer')[0].selectedIndex=" & v & ""
    in addition with the option
                                do JavaScript "var y=document.getElementsByName('customer')[0].options;"
    and concatenate all
              do JavaScript "var full=y[x].text;"
    voila !!!

  • Under System Preferences, Hardware, CD i DVD...  The menu text and dropdown choices are in a foreign Language.  I have my normal Language set to English.  What gives?

    Under System Preferences, Hardware, CD i DVD...  The menu text and dropdown choices are in a foreign Language.  I have my normal Language set to English.  What gives?

    Thanks for the reply. I only have English - Primary but I guess I could add Finland and then delete it...
    Okay, tried that, lots of variations including deleting all other languages and only using Finnish, and then using only British English etc - when guest is in Finnish the whole lot becomes Finnish/Suomi (see attached photos to compare with the ones above) - then when you delete Finnish and go back to English, everything is Englisg apart from 'Vierastilin käyttäjä' as above.
    Any other ideas where it stores that info - is there a dodgy preference file somewhere which needs zapping?

  • How to change the Text of Dropdown by Key Dynamically thats coming from RFC

    HI All,
    I need an urgent help . I have a parameter coming from RFC -> YYTEXT with a value Range and I am binding this parameter in my DROPDOWN BY KEY .Now I have a requirement that two values coming from this parameter i need to change it
    .Can you please tell me how to get the values from this YYTEXT attribute which is in NODE1 and then set the two new texts to this attribute so that it shows different text in the droodown .
    Thank you in Advance .
    Naaz

    Will appreciate any comments on the question ?

  • Show text in dropdown box instead of value....

    Hello,
    I'm having this annoying problem. In a dropdown box, I can only see the value, not the text associated to the value. I think this is strange since I've worked with this before and don't remember having to select the "Text".
    Do I have to do anything?
    By the way, If I swap the value with the text I can see the text, so I know the problem is that I'm seeing the value instead of the texts. They are available just not being shown.

    I was using Combobox....

  • Display key and text in dropdown box & suppress leading zeros in material #

    Hi Everyone,
    I have some questions on how to ....  Can anyone help me?  Here they are:
    How to show material # and description (key and text) both in dropdown box list? 
    How to suppress leading zeros in material #, i.e. 0000000012345678 only show 12345678 ?
    How to show a date with format mm/dd/yyyy not yyyymmdd?
    Thanks alot, Jin
    Edited by: Jin Freda on Mar 25, 2008 4:47 PM

    Hi,
    What type control you are useing for date .
    If you are useing Input field of date type or Date picker control you should get this option in the control properties.
    Can you tell me what are  tabs are appaering in the conrtol properties.
    2.When you you are using the formula Round(@material) ,Are you typing it or draging Field from right side in to  the formula .If you did not drag it you will get Message:Formula has errors.
    One more probelm is there if the Data type of field where you using formula is not Number type.
    Check all above and get back to me.
    3.You are not able to give 6 points for all because its a resrticed one you execeded giving6 points option now you can give only 10 points.
    Regards,
    GOVINDU

  • RoboHelp HTML 9 - CHM file Different color shown for text of dropdown hotspot.

    Dear all,
    In Design view of Robohelp, I see all dropdown hotspot text are green.  But when I preview or genereate the topic to CHM file, all dropdown hotspot text are blue like color of hyperlinks.
    I don't understand why it behaves like that. Please tell me.

    I recreated your index keywords and have identified what is going on.
    When you click on CTV, Accept it opens the correct topic.
    Now notice what happens when you start typing app after CTV. The highlighting goes to Enable so when you press Enter, Rh opens the highlighted topic. The highlighting will go to the last sub keyword. Try adding Zulu.
    I will see if I can create something similar tomorrow using another authoring tool.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Custom text in dropdowns

    Hi,
    I'm trying to create a simple form, where user first chooses carrier (CARRID), then one of the flights(FLDATE). My context is as follows:
    + CONTEXT
    |--- + CARRIER
         |--- + FLIGHTS
         |    |--- FLDAT
         |    |--- SEATSOCC
         |    |--- SEATSMAX
         |--- CARRID
         |--- CARRNAME
    I managed to create a dropdownbyindex that lists carriers by CARRID. Once the user has selected a CARRID, I want another dropdown to list the flights for that carrier. Using a supply function, I understand it would be possible to do so. Can I change the texts so that it displays a custom string? Eg: fldat (seatsocc/seatsmax), instead of just fldat.
    I tried using dropdownbykey but can't seem to get it to work.

    Hi Jonathan,
    you can create an action and you can bind the action with onselect action of drop down.
    now there you can get the carrid
    data key type string.
      DATA lo_nd_cn_ddkindexctr TYPE REF TO if_wd_context_node.
      DATA lo_el_cn_ddkindexctr TYPE REF TO if_wd_context_element.
      DATA ls_cn_ddkindexctr TYPE wd_this->element_cn_ddkindexctr.
      DATA lv_ca_key LIKE ls_cn_ddkindexctr-ca_key.
    * navigate from <CONTEXT> to <CN_DDKINDEXCTR> via lead selection
      lo_nd_cn_ddkindexctr = wd_context->get_child_node( name =
    wd_this->wdctx_cn_ddkindexctr ).
    * @TODO handle not set lead selection
      IF lo_nd_cn_ddkindexctr IS INITIAL.
      ENDIF.
    * get element via lead selection
      lo_el_cn_ddkindexctr = lo_nd_cn_ddkindexctr->get_element(  ).
    * @TODO handle not set lead selection
      IF lo_el_cn_ddkindexctr IS INITIAL.
      ENDIF.
      lo_el_cn_ddkindexctr->get_attribute(
        EXPORTING
          name =  `CA_KEY`
        IMPORTING
          value = lv_ca_key ).
    key = lv_ca_key.
    now you have the carrid in a variable..... now depending on the carrid you can fill the next drop down at run time....
    you can change the text by just getting the data you want to fill in drop down in an internal table and there you can change the data and thn you can bind it with the drop down....
    regards
    Pranav

  • Text in dropdown automatically turns bold

    The text that I include in dropdowns seems to automatically turn to bold - even thought BOLD is not set in the font formatting.  Is there a place in the code where I can fix this?
    Thanks...
    kb
    Using RH10.

    About the "see attachments". Note that although you are able to respond via email, this conversation is really going on via forums software. As such, attachments aren't allowed. You may attach all you want but the attachments are just dumped.
    If you honestly have attachments you need us to see, you are able to upload images when you reply via the forum interface in the browser.
    Just click the little camera icon to add them.
    Cheers... Rick

  • Smartview 11.1.2.5- Cannot change value in Text-List Dropdowns- Excel Crashes

    Using latest/greatest Smartview with 64-bit Office and Windows 7.  I have a native essbase app utilizing text-lists. I am trying to update text-value through smartview. Smartview automatically produces a drop down to select a value from the linked text-list. However- as soon as a different value is entered or selcted in this cell with the drop-down list- Excel crashs. I have reproduced this consistently everytime. I have no way to change values for text-measure accounts linked to text-lists. I feel this is and incompatabiliyt issue with office 64-bit.  

    SmartView using the forms. It appears this issue has been logged as issue number 6566082 as seen here: http://docs.oracle.com/cd/E17236_01/epm.1112/readme/sv_1112200_readme.html
    But I can't seem to find out where I can get information on the status of this issue and whether it's been patched in future versions.

  • Setting default text to dropdown listbox

    I have a field on my Webdynpro defined as DropDownByKey.
    The field's list for the dropdown list is coming from a domain with a list of all the values.
    I want to default the field to one of the values in the list from the domain, but I want the description, not the key value to default or showup as the default.
    I don't see the method to use in class CL_WD_DROPDOWN_BY_KEY.  Is there a method or someway to do this?
    Thanks
    John

    Sujay,
    I found out the easiest way around this without adding any code. 
    If you have a field on your iView that points to a structure or table field where the domain for that particular field is a list of values, typically the doman has a fixed value as the key and then the short description.
    In most cases the user does not want to see the key fixed value, just the description.
    When you add this field to your iView, you must choose the properties DropDownByKey.  This will take care of showing the description and not the fixed key value.  And not to worry, the value stored to the database will be the fixed value and not the description.
    Johnny

  • Enter Text in Dropdown LOV APEX 3.2

    I have several list of values that are used on the oracle forms we have created. Those work great etc. They are all data driven from oracle tables.
    Users would like to have the ability to add to these tables if they are entering data on a form that uses one of these list of values. They do not want to leave the form they are on and go to another form to enter data for the list of values.
    I did not see any option to allow a user to type in new data to a dropdown. I realize this takes some effort and I would have to add some code to my form for this to work.
    Unless I am mistaken this does not seem to be a viable option in Apex 3.2.
    Let me ask a couple of questions.
    1. would it be possible for me to just add link that says something like "My item is not listed"
    They click on that and it brings up a pop up box with a little form to add the data to the table for the dropdown LOV.
    After that is updated it then dynamically updates the dropdown list on the main form.
    I am .net and VB.net guy only been using apex for 6 months here, so pretty new to it.
    2. DO that same as option one, except instead of a link, I would have a selection in the LOV
    that says My item not listed. Then if they choose that option it will bring up the pop up box with the form...
    3. If non of these things are available in 3.2 are they available in apex 4.0?
    4. If they are in 4.0 how easy is it to upgrade to 4.0 from 3.2 We have this on an Unix Box right now.
    5. any better ideas??
    Thanks

    I got it to bring up a pop up window, but It brings up the login page instead of the page I want it to go to.
    It's not keeping my current session, and instead creats a new one.
    I tried the script you provided like this
    <script>
    function modalWin() {
    if (window.showModalDialog) {
    window.showModalDialog("f?p=&APP_ID.:104&PAGE_ID.:4100&SESSION.:POP:NO:::","name","dialogWidth:600px;dialogHeight:400px");
    else {
    window.open("f?p=&APP_ID.:104&PAGE_ID.:4100&SESSION.:POP:NO:::","name","height=400,width=600,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    </script>
    I also tried removing the session variable from this all together and I still got the login page. How can I maintain the session?

  • Dynamic updates in dropdown field using presentation

    My requirement is as follows:
    1)     Combination of text box & dropdown in the presentation.
    2)     Dropdown is dependent on the text box.
    3)     If user will enter the two characters in the text box then automatically drop down will be fill the list of the string(s) starting with entered 2 characters.
    Ex:
    In side text box I entered “GO”.
    In the drop down it should populated with list of cities start with “GO”.
    Please let me know if any one having the solution satisfying above requirement.
    With Best Regards,
    Ratna Prasad,

    Hi,
    <div class="jive-quote"><span class="jive-quote-header">user11180317 wrote:
    I enter any text in the textbox and according to that i execute the query which is in the dynamic method of the referenced data of the drop down but nothing happens.So i called another method on change invoke having the refreshvalidvalues command then also nothing happened.</div>
    A few ideas when testing this.
    1. Double check your textbox that is supposed to update the attribute shown in the dropdown. Look at the textbox's Properties and verify that there is an "On change invoke" method associated with the field.
    2. Open the method referenced in the first step. The method should have the logic:
    logMessage "refreshing valid values" using severity = DEBUG
    refreshValidValues("theNameOfTheAttributeInTheDropdown")A common problem is when you leave the double quotes out of this logic (e.g. refreshValidValues(theNameOfTheAttributeInTheDropdown) will not work)
    3. Double check the attribute that you want to update dynamically. In the above step, the attribute's name is "theNameOfTheAttributeInTheDropdown". Open this attribute now and verify that in the Valid Values section for the attribute - there is a Dynamic method invoked that updates the permitted values for this attribute (and therefore the values shown in the dropdown).
    4. Open the method that updates the attribute's valid values dynamically (method found in step 3) and add a logMessage statement at the top like:
    logMessage "Entry - valid values update for attribute theNameOfTheAttributeInTheDropdown" using severity = DEBUGAfter the valid values have been retrieved, show this list using another logMessage statement in this method.
    5. Run the screenflow again from the WorkSpace and verify that dropdown is getting populated. If not - check the log file for the point of failure.
    Hope this helps,
    Dan

  • Text-rendering and font-smoothing within the Adobe Muse application e.g. antialiased etc.

    I'd love an option in the text panel where you can choose the rendering that you want the text to have when published. It's possible to do this using code and CSS after exporting but I'd like it to be possible within the Adobe Muse application, for both web fonts and built-in fonts e.g. Helvetica, Arial, Georgia etc. From what I know this isn't possible but if someone else knows how then I'd appreciate any help. Otherwise, it's a feature that I'd like to see in a future update.
    George

    Abhishek,
    Thank you for the reply. Wanted to comment on a few things.
    I reviewed the other post that you've referenced. Nothing unusual jumped out at me as something that I was not aware of. I'm running an older iMac that is in good working condition. 2.4 GHz Intel Core 2 Duo, 24" screen. I know this issue is fleeting, as I stated earlier typically can be corrected with a restart of the CC Desktop application (that I am always running at startup). I have not been able to determine that shutting down Muse corrects the issue. I would, at this time say it doesn't.
    I did open InDesign and see if the fonts in question, Open Sans and Open Sans Condensed, were present and usable. They were. The fonts are shown as being synched in my CC Desktop app window (even if they are not "installed" in Muse). That is expected but it may be a bug in how Muse brings in a font from those that are already synched to your CC account. I don't know enough about how that works to comment.
    And just to complicate matters, Muse seems to be working again, the fonts that is. I brought them back in and they are showing up in all locations (which there are actually three - see screen shots).
    First is primary text menu dropdown (to right of orange "Text").
    Second is if you click orange Text link. Another drop down menu appears.
    And lastly, the Text Panel to right of screen.
    I also wanted to add this extra bit of information, for what it is worth. When the issue arises and you do not get the sub-menu dropdown showing various styles of the font (italics, bold, etc.), one can use click on the missing font if you had used it previously and it is present in the "previously used font" list.
    Cheers!

  • DropDown by Index in table control

    Hi,
    I'm using dropdown by index(i need different values for each row) in my table control and I have this problem:
    I have this context binded to my table control:
    TABLE_NODE (card. 0..n)
       - ATRIB1
       - ATRIB2
       - DROPDWN_NODE (card. 0..n sel. 0..1) - to this node dropdown by index is binded
            - VALUE
            - TEXT     <-- bind this attribute to Texts property
    Dropdown is filled OK, but how to transfer selected dropdown value to ATRIB2? And then, if I have a value in ATRIB2, how to diplay correct text for user in dropdown?
    Another thing is that I have 2 dropdowns by value in table and values of second depends on selected value in first. How should I refresh second dropdown by index when user change value in first?
    Many thanks for reply.

    I'm also facing the issue.  Can u plz. share the source code.

Maybe you are looking for

  • FIND_REPORT_OBJECT doesn't work

    Dear members, When using "find_report_object", I get a "FRM-41219 Cannot find report : Invalid ID" error. I used the same report name with "run_product", and it worked fine. Here's the code : report_id := FIND_REPORT_OBJECT('deploiements'); or Run_Pr

  • How to increase the size of /opt solaris 10 x86

    Solaris 10 X86, /opt runs out space, would anyone please tell me how to increase the size of /opt? The Solaris is installed on the whole disk, and I believe there are still some free hard disk space available somewhere. I need step by step guidance p

  • Aliases Mobile Me Vs Icloud - Unexpected result.

    Hi! I just migrated from Mobile Me to icloud.  I was using all available alias spots (let's call them 1,2,3,4 for the order they were created). I understood that existing Mobile Me accounts could keep their aliases.  I can receive email to all of my

  • How to create a tab-delimited text file?

    Hi, I need to create a tab-delimited text file at presentation server getting content from an internal table. My file should also have a header - also tab-delimited. Data for a header is stored in some work area. Any ideas how to add tab-delimiter in

  • What does ESA stands for ? and where it is use

    Hi, What does ESA stands for ? and where it is use ? Thanx