Current Position:Home > Disabled dropdownbykey is showing up

Disabled dropdownbykey is showing up

Update:11-30Source: network consolidation
Advertisement
I have added dropdownbykey form element and binded it controller attribute node. I have put following code to initialize the drop down.
  public void wdDoInit()
    //@@begin wdDoInit()
     String locations[] = new String[]{"Economy","Compact","Intermediate","Full Size","Premium","Luxury","Convertible","Mini Van" };
     IWDNodeInfo csn=wdContext.nodeDropdown().getNodeInfo();
     IWDAttributeInfo cattinfo=csn.getAttribute("location");
     ISimpleTypeModifiable cmstype = cattinfo.getModifiableSimpleType();
     cmstype.setFieldLabel("Cities");
     IModifiableSimpleValueSet cvalueset=cmstype.getSVServices().getModifiableSimpleValueSet();
     for (int i = 0; i < locations.length; i++) {
          cvalueset.put(locations<i>, locations<i>);      
    //@@end
when I am running application, a disabled dropdown box shown up. Can any body tell me how to fix this? or what I have been doing wrong?

The Best Answer

Advertisement
Hi,
<b>Check the cardinality of the node bound to this control make it 1..n</b>
The property <b>selectedKey</b> must be bound to a context attribute Key having a simple type like String with a value set.
The selectable items of the drop-down list are the keys of the value set, the displayed texts are the corresponding values. The currently selected item is given by the current value of property selectedKey.
Regards
Ayyapparaj
  • Disabled dropdownbykey is showing up Update:11-30

    I have added dropdownbykey form element and binded it controller attribute node. I have put following code to initialize the drop down.   public void wdDoInit()     //@@begin wdDoInit()      String locations[] = new String[]{"Economy","Comp

  • DropDownByKey UI element always Disabled Update:11-30

    Hi, I have created a dropdownbykey UI element and I have bound the selected key to the view context element which is of simple type country. In the local dictionary I have created a simple type country and given it values like India, USA etc.. But wh

  • On basis of drop down by key values i want to enable and disable ui elements is wda Update:10-11

    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 backHi Sreedhara,

  • Problems with the using of the DropDownByKey Update:11-30

    Hello Experts, I've just created a Tab where Data can Edit. It looks like a formular > see the following lines: Activity_1---->DropdownMenu--->InputField---->RadioButton Activity_2---->DropdownMenu--->InputField---->RadioButton I've c

  • How can I disable sending from one Mail account? Update:10-11

    Hello. I have a gmail account that I use to subscribe to various newsletters and accounts. So it's essentially a read-only account for me. But I too frequently accidently send mail from that account. Is there a way to prevent mail from being sent fro

  • Not null and enable or disable  column in tabular form Update:10-11

    Hi, Using apex version 4.1 and working on tabular form. ACT_COA_SEGMENT_MAS is Master table and ACT_SEGMENT_VALUES_MAS is detail table I have entered 8 rows in master table and PARENT_SEGMENT_ID is column in master table which is null able. If i spec

  • NOT disabling keyboard/trackpad on tablet fold... Update:10-11

    This is probably the opposite of user problems regarding the keyboard/trackpad and turning the Yoga Pro 2 in tablet mode... Here's the situation: I'm a Java programmer and I'm sharing my files with my home PC, so I can work from my laptop or desktop

  • HT4528 My apple I'd is disable how do I get it working to download apps again Update:10-11

    My apple ID is disable and wont let me download my apps back to my phone how do i fix the problemTry to reset your password at http://iforgot.apple.com. If that doesn't work, time to contact iTunes Support - http://apple.com/support/itunes/contact/Re

  • Got my password wrong twice and my mini is disable. I connected to iTunes, but can't get it to work. Can some one guide my through? Update:10-11

    got my password wrong twice and my mini is disable. I connected to iTunes, but can't get it to work. Can some one guide my through?If it's showing the red disabled screen due to incorrect passcodes then you may need to put the iPad into recovery mode

  • Disabled JMenuItem doesn show animated gif Update:10-11

    Hi there I would like to have a popup menu with actions that are enabled after they have finished with some background task taking some time. Basically this works fine for the enabling action on a shown popup. However, adding an animated gif as the i