Problem with Drop down by key

Hi all,
      I Inserted several drop down by key in my view at design time. When I try to run the application it displays an error as
java.lang.ClassCastException at com.sap.tc.webdynpro.progmodel.context.Paths.getAttributeInfoFor(Paths.java:202)
My requirement is,
I am getting a table with two fields(key,value) from R/3 I want to display these in the drop down by key box how to bind them to this drop down.

Hi Refer the below link
DropdownList box to display R/3 table  
Re: DropdownList box to display R/3 table
see this link for when to use DropDownByIndex (DDI) vs DDK (DropDownByKey) and how populate data from R/3.
Re: webdynpro populating dropdown values programmatically
populating dropdownbyvalue with the r/3 value?  
Re: Regarding DropDown Box
/message/2187817#2187817 [original link is broken]
Re: DropdownList box to display R/3 table
create context value attribute and bind to drop down by key
not getting value from DropDownByKey
Dropdown by key
dynamic DropDownByKey
http://help.sap.com/saphelp_nw04/helpdata/en/4a/8613e41629344194e4f40393740d51/content.htm
For DropdownbyKey
http://help.sap.com/saphelp_nw04/helpdata/en/08/13dbfb6e779743bb2ca641ebcb3411/content.htm
For DropdownByIndex
http://help.sap.com/saphelp_nw04/helpdata/en/24/25e08d4ba6c743b55f1d375637ba8d/frameset.htm
Regards,
Saraswathi
Pls reward points for useful info.

Similar Messages

  • Nasty Safari 5.1 problem with drop-downs on Lion

    There appears to be a nasty bug in Safari on Lion related to certain types of drop-downs where clicking on the drop-down resets the entire page. I have already encountered it on several webpages. Here is a link to a webpage which shows this behavior.
    http://www.sonos.com/login/
    If you scroll to the bottom half and try to create a new account, you are unable to do so since the required Country value (via drop-down) cannot be set as it resets the page whenever you click or try to access it via keyboard. I guess it is good to keep Chrome and Firefox around for pages that Safari can't handle, but it would seem that this is something basic that Apple's automated test suites should have caught. Again, it does not happen with all drop-downs, only certain types.

    I had the same problem with a site I developed. I found out how to fix the problem here: http://stackoverflow.com/questions/7165086/clicking-safari-5-1-select-menu-refre shes-page
    It's a problem with using webfonts on select forms in the CSS. If you disable the webfont on select forms, the problem goes away. Hopefully, Apple fixes the problem soon since it's a major bug. It doesn't just reload the page but it logs you out if you're signed into the site.

  • Safari 7.1 creates problems with drop down menus from some sites

    I blindly install Apple updates, but with Safari 7.1 I run into problems with the drop down menu of www.arcweb.com.  As this is my main client it is a big problem.  Any suggestions or solutions?
    thanks
    Jean

    Empty Caches.
    1. Safari > Preference > Advanced
        Checkmark the box for "Show Develop menu in menu bar".
        "Develop" menu will appear in the Safari menu bar.
        Click Develop and select "Empty Caches" from the dropdown.
    2. Quit Safari if open.
        Option click the "Go" menu in the Finder menu bar.
        Select "Library" and then "Caches".
        Look for the folder 'com.apple.Safari"
        Right click "com.apple.Safari" and select "Move to Trash"
        Relaunch Safari.

  • Problems with drop-down list: old references still in the model

    Hi,
    I am getting in troubles with a drop-down list. I configured it as dynamic list and I specified a RFC to get the values. Sometimes when I edit the field  I get that the configuration for the dynamic list is lost and I have to specify again the call to the MF. I did this for a couple of times and my surprise is that the old references are still in the source code. I realized of that when I used the alias manager. The old reference were there with ENUM....To check if the old references are called I switched on the flash debug console and I show that the MF is called a lot of times...
    Anybody knows how to eliminate these old reference???'  One the collateral effects is that the first value of the list is always shown.
    Antonio

    Hi Antonio, hi Marcel,
    the OSS-ID is 0000337147/2007 and the final given answer from SAP was:
    <i>Dear Customer,
    finally I managed to repreduce your problem,
    and it's a bug.
    we will aim to fix it in next releases, and the new Flex 2.0 runtime
    should handle this case, once it will be availible.
    Regards,</i>
    So it might be fixed with the actual SP, but I don't know that for sure (I rather doubt it, to be honest).
    Best Regards,
       Benni
    PS: You might avoid the problem of re-defining the entry list, by defining it as a global entry list, not a dynamic. However, the top-most entry will still be shown!

  • Problem with drop down list: on Windows it works, on Mac doesn't

    Dear forum,
    I am reworking the MultiPageImporter2.5 script by Scott Zanelli; going to add some new features.
    So far I added a drop down list so the user could choose on which pages to place a pdf/indd file: odd/even/both.
    However I encountered a strange problem: on Windows it works as expected, but on Mac nothing happens when I click the popup. When I write a dialog, I almost always use automatic layout and never encountered such a problem before. But in this script the author uses fixed position for the controls so I followed his coding style:
    dLog.pageSideMode = dLog.pan4.add('dropdownlist', [10,110,180,40], ["Odd and Even Pages", "Only Odd Pages", "Only Even Pages"]);
    dLog.pageSideMode.selection = pageSideMode;
    The drop down list is visible both on Windows and Mac, but on Mac it’s not clickable. What am I doing wrong?
    Another question: in the script, the author created three popups. In the code, each popup has a different height (the last element of the “bounds” array) – 60, 88, 33. Does it make sense to make them different if on the screen they look exactly the same (I mean height).
    Here’s my version of the script.
    I think the easiest solution for me here is to rework the dialog part from fixed to automatic layout.
    Thanks in advance.
    Kasyan

    Hi johniko,
    In my version of the script, the user will have to choose a file to be placed directly in the dialog box. The selected file can be saved into a preset. I'm reworking it for another person (not for myself) and that's what he wants.
    Regards,
    Kasyan
    P.S. By the way, you can simply merge all your pdf-files into a single document in Acrobat.

  • Problems with drop down menu in html snippet

    Hi all,
    I am trying to use a form with a drop down menu so the user can jump directly to the corresponding page. I am using the code generated by http://javascript.internet.com/generators/drop-down-menu.html, and it works correctly when I test it in the "Show me the drop down menu" option on their page.
    This is the html code:
    <!-- ONE STEP TO INSTALL PULLDOWN MENU:
    1. Paste the code into the BODY of your HTML document -->
    <!-- STEP ONE: Copy this code into the BODY of your HTML document -->
    <BODY>
    <!-- Original: Ricocheting ([email protected]) -->
    <!-- Web Site: <a class="jive-link-external-small" href="http://free.prohosting.com/~ric">http://free.prohosting.com/~ric</a> -->
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! <a class="jive-link-external-small" href="http://javascript.internet.com">http://javascript.internet.com</a> -->
    <form name="jump">
    <select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex] .value;" value="GO">
    <option value="">select genre</option>
    <option value="http://www.mygaragebandstudio.com/blues_rock.html">blues/rock</option>
    <option value="http://www.mygaragebandstudio.com/cinematic.html">cinematic</option>
    <option value="http://www.mygaragebandstudio.com/country.html">country</option>
    <option value="http://www.mygaragebandstudio.com/electronic.html">electronic</option>
    <option value="http://www.mygaragebandstudio.com/experimental.html">experimental/new age</option>
    <option value="http://www.mygaragebandstudio.com/jazz.html">jazz</option>
    <option value="http://www.mygaragebandstudio.com/latin.html">latin</option>
    <option value="http://www.mygaragebandstudio.com/orchestral.html">orchestral</option>
    <option value="http://www.mygaragebandstudio.com/urban.html">urban</option>
    <option value="http://www.mygaragebandstudio.com/world.html">world</option>
    </select>
    </form>
    When I paste this code into an html snippet in iWeb, my page does not work correctly after publishing to a folder. The jump to location doesn't open its corresponding page. Instead, it defaults to the same page that has the drop down menu, only the menu doesn't appear any more. Instead, I get a "hole" where the drop down menu used to be.
    This is my URL: http://www.mygaragebandstudio.com/jingles.html
    I examined the code of the page with the html snippet generated by iWeb, and to my surprise I couldn't even find the html code of the form with the drop down menu. Where is it?
    Please help!
    null

    Manuel wrote:
    Green Star for you!
    JSYK,
    You didn't actually give PressWeb the green star by marking his post as the post that solved your question. You merely marked the question as answered but never actually marked PressWeb's post as being the post that answered your question, which will in effect reward PressWeb with the green star as seen by a green star appearing in the header for his post. I only mention this because you have incorrectly mentioned rewarding PressWeb with a green star.
    Hope that helps.

  • Problem with drop down menus in firefox 4

    when I scroll over a drop down menu, for example when I right click and put the cursor over one of the options it goes black. If I scroll over one of the menu bar drop down menus as I move over one of the options it stays highlighted in gray. I am running firefox 4 and have already tried turning on the menu bar and turning off hardware acceleration

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]

  • Size of Drop down by key

    Hi,
    when i built value set for the first time for drop down by key, values( texts ) are displayed correctly, however when it is re-built based on other drop down instead of showing texts it is showing the key value in drop down, however if select drop down, text will be selected though key is displayed.
    i think it is something to do with drop down by key size adjustment, how to solve this.
    i guess we can use 'CALC_WIDTH4DDLBBYKEY' method of cl_wd_utilities, but how to use this??
    Please suggest!!
    Edited by: kranthi kumar on May 5, 2011 3:58 PM

    Hi Kranthi,
    You cant adjust drop down size manually.
    According to the values inserted in the dropdown, its size increased automatically.
    If there are no values in dropdown it will be small in size but with values its size increases.
    You can adjust WIDTH of drop down, but after filled with values it takes value size.
    While filling drop down key and value, pass same value to key and value.
    Example code :
          DATA : node_info TYPE REF TO if_wd_context_node_info,
            value TYPE wdy_key_value,
            set TYPE wdy_key_value_table,
            k2 type string value 'BOX',
            v2 type string value 'BOX',
            k3 type string value 'LOOSE',
            v3 type string value 'LOOSE'.
          value-key = k2.
          value-value = v2.
          APPEND value to set.
          value-key = k3.
          value-value = v3.
          APPEND value to set.
          node_info = wd_context->get_node_info( ).
          node_info = node_info->get_child_node( 'PACK_MAT' ).
          node_info->set_attribute_value_set( name = 'PACK_MATERIAL'
                                               value_set = set ).
    Cheers,
    Kris.

  • Query for Drop Down By key

    Hi,
    Explaining my problem with an example.
    There is a hotel table where user enter hotel details
    Like City, Dep Date, Arr Date, No of Days , rate  etc  and these in turn get saved to table say USER_HOTEL_DETAILS  . When user comes to his plan/entered details again, previously saved data is shown to him.
    For making a selection for City I have to give a dropdown to user with cities list that are maintained in other table say HOTEL_DATA which has city, rate, and currency fields and city is the key of table.
    Now if I use drop down by key or index for city I need to fetch city values from table HOTEL_DATA and have to populate context of city field of USER_HOTEL_DETAILS.
    For dropdown my value text is going to be city .For key if I try to give serial numbers say 1, 2, 3 as key for populating dropdown, the key will get stored in database table against city name. To avoid this while saving data I have to write additional code while saving and retrieving data that take value against selected key.
    To avoid this one way is to use city name as both Key and Value. What is the other alternative I can use for? Please help
      Regards,
      Madhvika

    Hi ,
    It is better to have citykey in HOTEL table and maintain a text table for the same.This is good approach.
    Because tommorow if city needs to be displayed in other text also just adding the same in the text table would be suffice.
    For city texts retrieve it from text table and bind to the node.
    Regards,
    Madhu

  • On basis of drop down by key values i want to enable and disable ui elements is wda

    How to enable and disable ui elements on basis of drop down by key values as i show in screen shot i have 3 values in drop down by key on basis of those values i need to enable and disable ui elements in webdynpro abap kindly reply back

    Hi Sreedhara,
    There are many tutorials on SCN for learning Web Dynpro ABAP. If the following steps don't make sense to you, please do a search for some tutorials and read through the tutorial materials. Hopefully the tutorials will help you to become familiar with some of the basics of Web Dynpro ABAP.
    Here is how to enable or disable a UI element upon selection from a DropDownByKey.
    In your view context, create a context attribute of type wdy_boolean. For now, let's call this attribute IS_ENABLED
    In your view layout, bind the enabled property of the UI element to the context attribute IS_ENABLED.
    In your view actions, create an action-- let's call it SET_ENABLED-- and bind this action to the DropDownByKey element's onSelect event in the view layout.
    In the event handler method for the SET_ENABLED action, use the Code Wizard to read the value of the DropDownByKey selected value, then use the Code Wizard again to set the value of context attribute IS_ENABLED to either true or false.
    Now when a value is selected from the DropDownByKey, the SET_ENABLED action will be triggered and the IS_ENABLED context attribute will be set to either true or false. Since your UI element's enabled property is bound to this true or false value via the context binding, the UI element will change to enabled or disabled.
    Good luck!
    Cheers,
    Amy

  • Scrolling down a pdf with the down arrow key ...

    Hello,
    I have a 20 page newsletter pdf with about 12 articles. At the top of the first page there's our text logo, and just below it is a table of contents compiled using table of contents styles (btw this pdf was compiled in Indesign 5.5) and just below that is the first article, then below that, the second.. and so on. At the bottom of each page there's a "return to the table of contents" button that shoots the reader back up to the TOC on the first page when clicked, in addition to a page number. There is also a header with the name of the publication and issue number..
    the problem I'm having is, when scrolling through the first article on the first page with the down arrow key, once I get to the bottom of the first page, the cursor then shoots back up to the table of contents. WHat I would like it to do is just scroll down to the next page. Once I get to the bottom of the first page the second time, the cursor jumps down to the bottom of the second page, straight to the page number, a few more taps of the down arrow key takes the cursor up to the header on page 2
    I'd like the down arrow scrolling to just go through the articles and skip the page numbers and other header/footer items. Any thoughts? Should I take my question to the InDesign forums? Thanks in advanced
    -J

    That behavior is controlled when Scrolling is selected from the Page Display Toolbar.
    You might want it defined in the Document Properties > Initial View, but I am not certain if it is a choice. Experiment with the options.
    I am not familair with Javascript in pdf, but that might set the control.

  • Problem with drill down in time dimension - OBIEE 11G

    Hello There,
    I have a problem with drill down in time dimension. The hierarchy for time dimension is " Fiscal Year---> Fiscal Quarter---> Month(Name)--->Date". When I select a Time dimension and click results its getting opened in a Pivot table view. The problem here is, when I click the "Total" its getting drilled down to Year ---> Quarter but when I click on "+ sign next to quarter" it should drill down to month for that particular quarter for that particular year but its drilling down to month for that particular quarter for all years.
    Any suggestions are much appreciated.
    Thanks,
    Harry.

    1.) Congrats for resurrecting a year-old thread.
    2.) Your answer is here: "Check the level key of the quarter level...it should include both quarter and year columns. Since a specific quarter occurs every year, quarter column alone can't be used as the level key."

  • IPhone 4 wifi portal login with drop down menu

    Hi,
    I'm extremely happy with my iPhone 4. I use it often in WiFi hotspots (hotels, university, train stations etc) and the new portal log in system is really handy. Previously I used a third party WiFi portal logging in app which is now no longer necessary. HOWEVER, there seems to be a problem with the iPhone 4 remembering log in protocols for WiFi portals that include selecting an item from a drop down menu before logging in. For instance, the WiFi hotspots in trainstations here in the Netherlands work with several protocols depending on through which organisation you can log in. Before entering your log in details you have to select through which organisation you have access to such a hotspot. The third party logging in app was able to remember how to do this, but the iPhone 4 auto logging in thing (sorry, I don't know the term) does not remember. It's frustrating to have to fill the details in every time. And I can't even use the third party app any more because it needs primary connection to the local WiFi before it can log in, and the iPhone 4 won't give a primary connection if you don't fill in the details to log in (and if you do, you're already logged in and the third party app is useles...)
    Sorry for my rant, I'm wondering if there's a way to make the iPhone 4 log in tool-thing remember the protocol for logging in with drop down menus, or if there will be an update to fix it...
    Thanks,
    Tasmin
    P.S. I'm running iOS 4.1

    are you sure your stop() are in the right place??
    eg.. on the last frame of the onRollOver animation??
    also... why have you got on(releaseOutside); ???
    onRollOut will suffice.

  • Drop Down BY Index Vs Drop Down By Key

    What is the difference between Drop Down By Index & Drop Down By Key.
    How Do we retrive What value is selected in a drop down
    regards
    Nilesh

    Hello Nilesh,
    //Create ISimpleTypeModifiable to fill the dropdownbox
    //XXX is your Desc field
                    IWDAttributeInfo soAttribInfo= wdContext.getNodeInfo().getAttribute("XXX");
                    ISimpleTypeModifiable soType = soAttribInfo.getModifiableSimpleType();
                    soType.setFieldLabel("XXXX");
                    IModifiableSimpleValueSet soSet= soType.getSVServices().getModifiableSimpleValueSet();
                    soSet.clear();
                    //To Get desc and key from web services you pass some information to the run the given Webservice do it here
                    wdContext.currentRequest_XXXViDocument_getDescnKeyArrayElement().setInfo(infonr);
                    wdThis.wdGetXXXController().getDescObjects();
                    int size = wdContext.nodeResult_getDescObjectsArray().size();
                    if (size != 0)
                         //Filling the desc in the dropdownbykey field
                         for (int i=0; i<wdContext.nodeResult_getDescObjectsArray().size(); i++ )
                              IPrivateXXView.IResult_getDescObjectsArrayElement soElement =
                                  wdContext.nodeResult_getDescObjectsArray().getResult_getDescObjectsArrayElementAt(i);
                               soSet.put(soElement.getkey(),
                              soElement.getDesc().trim() + " " + soElement.getkey().trim() );
    Implement this code for populating the drowdown when that works I can tell you the next step.
    Good Luck,
    Dharmi

  • HT1341 Epson Stylus SX435W otherwise known as Workforce 435. Although Apple promises software drivers on-line attempts at downloading and ADDING repeatedly come up with drop down menu "...it is not currently available from the software server". Please hel

    Epson Stylus SX435W otherwise known as Workforce 435. Adding Driver to an iMac
    Although Apple promises software drivers on-line, my attempts at downloading and ADDING it to my iMac
    repeatedly come up with drop down menu "...it is not currently available from the  Software update server". Please help?
    I have downloaded all the Epson Printer Software but I cannot make the final step.

    Reset the printing system and then try adding the printer again.
    http://support.apple.com/kb/ht1341
    (You have installed, not just downloaded the Epson driver, right?)

Maybe you are looking for