Drop down by index not getting set using Set Lead Selection

hi,
I am using drop down by index. The drop down has many values but i want to set index to 5 or something so that value at index 5 appears.
I have my data in dropdown and I am setting the 5th value using set_lead_selection_index  in WddoInit but somehow its not working.
ANy inputs ?
or any other method to make a particular element in dropdown to appear as default element.

Hi,
You will have to use the method set_attribute.
l_node->set_attribute( exporting name = 'ATTRIBUTE' " your attribute name
                                        value  = 'VALUE' ). and the value that  you wish to set
Radhika.

Similar Messages

  • I am using Windows XP and just installed Elements 12. When I try to select a different brush or shape the drop down list will not stay open long enough to select a different item. I have used Elements 9 for awhile and have not had this problem

    I am using Windows XP and just installed Elements 12. When I try to select a different brush or shape the drop down list will not stay open long enough to select a different item. I have used Elements 9 for awhile and have not had this problem

    grannybel
    It would appear that you are destined for the Adobe Photoshop Elements Forum since your question is related to Photoshop Elements and not Premiere Elements which is the focus program where you have posted.
    But, while the arrangements are being made, here are a few things for you to think about if you have not already
    1. Reset Tools - Select Brush Tool, then
    2. Delete Settings File
    Go to Full Editor/Edit Menu/Preferences/General and click on the option "Reset Preferences on Next Launch".
    We will be watching for your progress.
    Thank you.
    ATR

  • In navigation bar the drop down menu is not holding open when trying to select item - ONLY in Firefox.

    When trying to select item from any drop down in navigation bar the menu shrinks. I seem to not be able to navigate further than 1st item on the drop down list.
    However, it seems to be working in other browsers but not in Firefox.
    The website affected by this behavior is in the following link: http://www.coubroughandco.com
    I am wondering what could possibly be the cause of it.

    Hello,
    I get the same issue. To make sure we are talking about the same thing I have uploaded a screenshot. See below.
    When I hover over 'Buying' the menu pops up. I then move my mouse down over 'Your Budget' nothing happens. I then move the mouse down again over 'Leasehold or Freehold?' the menu disappears. It is not possible to click on the 'Leasehold or Freehold?' link.
    I don't believe Firefox is at fault here. I think the website has not been properly tested to work with Firefox. I am not an expert in web design but other forum contributors here will be able to identify the piece of code in the site that is causing the problem.
    I think the best thing you can do is to make contact with the business to let them know that their website navigation doesn't work for Firefox users.
    I hope that helps.

  • Unable to expand drop down by index UI element

    Hi,
    I have got one Drop down by index in my webdynpro form and I want to bind this to backend data. For this purpose, I created one adaptive rfc model  and also did all this model binding, context mapping etc.
    Now my context in view  looks like this :- GetDropDown_Mn (parent node) , this has got child Output_DropDown which again has two value attributes Name and Text.
    This is component controller code where you bind and invalidate
    __Shell__Ca_Read_Cr_Drbox_Val_Input dropdown = new __Shell__Ca_Read_Cr_Drbox_Val_Input();
            wdContext.nodeGetDropDown_Mn().bind(dropdown);
            wdContext.currentGetDropDown_MnElement().modelObject().execute();
            wdContext.nodeOutput_DropDown().invalidate();
    I then tried to bind my UI element in view with Name attribute , but when I try to run my application , the field appears as read only, kind of non editable (blocked) and I am unable to expand my dropdown.
    The readonly property of UI element is false. I have hard coded one value like " Please select from drop down list " and I want the backend values to come below this. For this, I have written code to append the backend values with the hardcoded value. Now the problem is my dropdown is blocked  and not able to expand ( unable to click the arrow button), and I cannot see the other values in dropdown except the hard coded value.
    Can someone please help me on this. 
    The cardinality of context node is 1..n, selection = 0..1 and I have set Leadselection = -1.
    Thanks and regards,
    Sai

    Hi Sai,
    You can use the below code to add the please select in ur drop down in wdInit() method
    wdContext.nodeVn_Node().currentVn_NodeElement().setVa_Attribute("-Please Select-");
    please use the name of node as u have created in the context.
    and after that please check if yoy are getting values from RFC call or not.
    if you are getting the values then try to change the selection property of that node to 1..n and comment the lead selection line that you have written.
    hope this will help.
    Regards
    Narendra

  • Default value in the drop down by index

    Hi Experts,
    I have a drop down by index to which i binded one internal table,but m not able to get the default value
    i want the first value to be selected in the drop down by default,Pls give me suggestion for solving this problem

    Hi Shan,
    As per your requirement,When ur binding the internal table to the  drop down by index ,but your are not able to get the default value.
    For this please check this code.
    In this I hv taken a node - dropdown1 and within this attribute of type Land1 and I hv set the cardinality to 0..n.
    Then I hv bind the text property of the dropdownbyidx ui element to the node attribute.
    then i hv call this code in the init method of view.
    DATA lo_nd_dropdown1 TYPE REF TO if_wd_context_node.
      DATA lo_el_dropdown1 TYPE REF TO if_wd_context_element.
      DATA lt_dropdown1 TYPE wd_this->elements_dropdown1.
      DATA ls_dropdown1 LIKE LINE OF lt_dropdown1.
      navigate from <CONTEXT> to <DROPDOWN1> via lead selection
      lo_nd_dropdown1 = wd_context->get_child_node( name = wd_this->wdctx_dropdown1 ).
      @TODO handle not set lead selection
      IF lo_nd_dropdown1 IS INITIAL.
      ENDIF.
      get all declared attributes
      lo_nd_dropdown1->get_static_attributes_table(
        IMPORTING
          table = lt_dropdown1 ).
      SELECT land1 FROM t005 INTO CORRESPONDING FIELDS OF TABLE lt_dropdown1.
      CALL METHOD lo_nd_dropdown1->bind_table
        EXPORTING
          new_items            = lt_dropdown1
          set_initial_elements = abap_true .
    Regards
    Manoj Kumar

  • Drop down by index  in table cell

    Hello
    I need for one column in table to have a drop down.
    I have the the following context:
    node: Zsi_Profile_TyperdvZish_Available_Timeslots_S_Rfc
    subnode: X
    value attribute in subnode X: a
    Node X is singelton = false, selection: 0-1.
    I am defined a drop down by index for one column and I want the data to come from node It_Rnpb2.
    The code:
    for (int i = 0; i< wdContext.nodeZsi_Profile_TyperdvZish_Available_Timeslots_S_Rfc().size();i++)
    wdContext.nodeZsi_Profile_TyperdvZish_Available_Timeslots_S_Rfc().getElementAt(i);
    for (int j = 0;j< wdThis.wdGetRendezVousCustomController().wdGetContext().nodeIt_Rnpb2().size();j++)
    wdContext.nodeX().addElement(wdContext.createXElement());
    wdContext.currentXElement().setA(wdThis.wdGetRendezVousCustomController().wdGetContext().nodeIt_Rnpb2().getIt_Rnpb2ElementAt(j).getOrgid());
    The result is: for first table line a drop down with few empty lines and one of the line with the last value from It_Rnpb2, and for the other table lines drop downs just with an empty line.
    How can I fix this?
    Thank you

    Let me change those ugly node names into shorter ones and use an array containing the drop-down items for each row. I think you get the idea.
    Table data source node: "Rows"
    Non-singleton child node "Items", cardinality 0:N, with attribute "Text".
    String TEXTS[][] with TEXT[r][j] = text of item j in row r
    /* foreach row in table */
    for (int r = 0; r < wdContext.nodeRows().size(); ++r)
      IRowsElement row = wdContext.nodeRows().getRowsElementAt(r);
      /* foreach drop-down list item */
      for (int j = 0; j < TEXTS[r].length; ++j)
        /* create item */
        IItemsElement item = row.nodeItems().createItemsElement();
        row.nodeItems().addElement(item);
        /* set item text */
        item.setText(TEXTS[r][j]);
    I typed this code from memory so there might be minor errors.
    Armin

  • Drop down by index in webdynpro

    I am using a drop down by index element in my webdynpro ABAP screen.
    I populate this drop down by fetching values through a remote-enabled function module. How do i set one particular value as default after fetching these values. ?
    I am getting the currency keys as the list of values and want to show a particular value when the view is first shown. How is this possible?
    regards,
    Priyank

    Hi Priyank,
        I have the sample code where index is used.
        This code is used for radiobutton group by index.
        You can use same logic in your requirement.
    data:
        text    type string,
        element type ref to if_wd_context_element,
        index   type string.
      DATA:
        node_check                          TYPE REF TO if_wd_context_node,
        elem_check                          TYPE REF TO if_wd_context_element,
        stru_check                          TYPE if_start_ior=>element_check ,
        item_check_attribute                LIKE stru_check-check_attribute.
      element = wd_context->get_lead_selection( ).
      index = wdevent->get_string( 'INDEX' ).
    Case when Overhead option is selected
    navigate from <CONTEXT> to <CHECK> via lead selection
      node_check = wd_context->get_child_node( name = if_start_ior=>wdctx_check ).
    get element via lead selection
      elem_check = node_check->get_element(  ).
    get single attribute
      elem_check->get_attribute(
        EXPORTING
          name =  `CHECK_ATTRIBUTE`
        IMPORTING
          value = item_check_attribute ).
    if index EQ 2.
    elem_check->set_attribute( name = 'CHECK_ATTRIBUTE' value = Abap_true ).
    endif.
    if index EQ 1.
    elem_check->set_attribute( name = 'CHECK_ATTRIBUTE' value = Abap_false ).
    endif.
    Hope this answer will help you.
    Cheers,
    Darshna.

  • Drop Down Menu List Not Visible

    Hi
    I am using a Horizon menu across top of page for user to
    select from a list of pages to go to but for some reason the menu
    drop down list is not fully visible but rather appears behind other
    elements on the page such as a flash video and a google ad . does
    anyone know what is causing this or what setting i should set to
    force the drop down menu to appear over the rest of the elements in
    the page as you would want it do.
    thanks
    edward

    "egc2224" <[email protected]> wrote in
    message
    news:fum99r$2nb$[email protected]..
    > what is z indexing?
    http://www.tjkdesign.com/articles/everything_you_always_wanted_to_know_about_z-index_but_w ere_afraid_to_ask.asp
    Thierry
    Articles and Tutorials:
    http://www.TJKDesign.com/go/?0
    Keep your markup *clean* with these DW extensions and
    scripts:
    http://www.divahtml.com/products/scripts_dreamweaver_extensions.php

  • How to hard code values in drop down by index

    Hi everyone
    I hav a node containing 2 attributes ie value n key. I am using drop down by index.  Value attribute is bound to my drop dwn box. In key I am providing key value for the value.  I need to hard code 3 value..Can anyone help me how to do so.
    Thanks
    Jaspreet Kaur

    Hi,
    Example for Data Binding of the DropDownByIndex UI Element:
    Procedure at design time:
           1.      Create a view with the name TestView.
           2.      Insert the DropDownByIndex UI element as a container child of the TestView view. (Step 1)
           3.      Create the context structure, as described in step 2.
    Create the context node X with the cardinality 0..n. Insert the value attribute y of the type String into this node. Then perform the data binding of the DropDownByIndex UI element in the Properties window of the View Designer. The texts property must be bound to the value attribute y with the context path description TestView.X.y (step 3).
    The context path TestView.X.y describes the attribute y in the context node X of the view context of the TestView view.
    You can fill the context with test data using the following controller implementation.
    public void wdDoInit()
        //@@begin wdDoInit()
       String[] letters = new String []
       {"A", "B", "C", "D"};
    //Create context elements for the node "X"
       List nodeElements = new ArrayList();
       for (int i =  0; i <letters.length; ++i)
          IPrivateTestView.IXElement xElement = wdContext.createXElement();
          xElement.setY(letters<i>);
          nodeElements.add(xElement);
    //Bind node element list to the node
       wdContext.nodeX().bind(nodeElements);
    //Set node’s lead selection which determines the selected item
       wdContext.nodeX().setLeadSelection(1);
        //@@end
    Regards
    Ayyapparaj

  • DROP Down By Index in Webdynpro ABAP

    Hi,
    I 've a small doubt in Drop down by Index in ABAP-Webdynpro
    I have two Dropdown, In first dropdown i have few Departmnet name for EX:- Dept1 , dept2 etc..
    based upon DEPT from first drop down i need to get  the employee deails in second dropdown.
    scenario:-
                          if i will chosse dept1 in first dropdown in second dropdown dept1 employee should populate
                         iif i will chosse dept2  in first dropdown in second dropdown dept2 employee should populate
    Thanks...
    Edited by: Rakshar on Sep 12, 2011 7:30 AM

    Hi Rakshar,
    1.  Add an onSelect event to the Dropdown 1.
    2.  In the event handler get the the selected value of Dropdown 1 from the context of the same. Based on the selected value, retrieve the data to be displayed in Dropdown 2 ( for example data from a table)
    3.  Invalidate the context for Dropdown 2
    4.  Bind the data retrieved from table to the context for Dropdown 2 by using method BIND_TABLE
    Let me know if you face any difficulty.
    Regards,
    Arpan

  • Drop down by Index label

    Hi all,
    I have a "drop down by index" UI element in my webdynpro which is bound to a value node which intern gets values from a model node. Values are visible in the drop down and also are going to the BAPI proprely.
    But, I want to show an entry simillar to "Please Select" as the first entry which is visible by default and nothing should happen if user selects this entry. how can this be acheived?
    Also, I want to make the selection of the drop down mandatory. I tried chaning the "state" property of the drop down to "required". It did not work.
    Any pointers on these?
    Thanks,
    Hari

    Hi Hari,
    See this thread for "Please Select":
    How to add "please select " Stirng to dropdownbyindex
    On action button write code for dropdown validation whether value is selected or not.
    Search in SDN for sample validation code.
    Regards, Suresh KB

  • Populate Values for Drop Down by Index in Table in Web Dynpro Java

    Hi Experts,
    I have a table and having a column table cell editor as Drop Down by Index.
    I have created the table node (tbnode) and child node for DDBI (ddbinode) and set the singleton property for DDBI node to false.
    I have same local variable node as same as above node and the values are available.
    I have one button ADD.On click the add button i need to populate the values to table node and as well as DDBI Node.
    I created supply function for DDBI node and populate the values for DDBI Node.
    Add Method:
    IPrivateMdTest8CompView.ItbnodeElement tbnode = wdContext.nodetbnode().createtbnodeElement();
    tbnode.setDescription(wdContext.currentCn_LocalVariableElement().getDescription);
    wdContext.nodetbnode().addElement(tbnode);
    Supply Function Method:
    for(int j=0;j<wdContext.nodetbnode().size();j++)
    wdContext.nodeddbinode().setLeadSelection(j);
    IPrivateMdTest8CompView.IddbinodeElement ddbinode = wdContext.nodeddbinode().createddbinodeElement();
    ddbinode.setddvalue(wdContext.currentCn_localddvalueElement().getddvalue);
    wdContext.nodeddbinode().addElement(ddbinode);
    Problem is one i got the values in the drop down and i click the second row in table again the supply function calls and reset the first row drop down to original value.
    If you any problem like please provide the solution.
    Thanks & Regards,
    SatheshKumar R

    If you created the supply method by setting the supply property of the node, you should have variable 'node' available as argument of the supply method, which will be related to the table row of the triggered dropdown. Opening the dropdown does not change the lead selection of the parent node, so
    ddbinode = wdContext.nodeddbinode().createddbinodeElement();
    wdContext.nodeddbinode().addElement(ddbinode);
    does always relate to the first row of the table (given that leadSelection == 0). With the node variable you can
    IddbinodeElement ddbiElement = node.createddbinodeElement();
    node.addElement(ddbiElement);

  • Acrobat X Pro Drop-down Fields Do Not Appear on Adobe Reader for iPad. Help!

    Hello,
    I am having a problem getting drop-down fields to appear on Adobe Reader for iPad. Basically, I need to create a form that includes drop-down fields, with the end result being a form that can be viewed and completed on an iPad, using the Adobe Reader app. Above all else, the end result needs to be viewable on an iPad.
    I created a form using Acrobat X Pro within which drop-down fields work flawlessly. However, when I try to open this form on an iPad, the drop-down fields do not even appear. I have done some investigating on the Web (including these forums) and come to understand that this has to do with javascript limitations on Apple products, but have yet to discover a solution to my problem.
    To summarize: does anyone know how to make drop-down fields appear in Abobe Reader for iPad app? Or, does anyone know a workaround in which I could have a drop-down menu (or something similar) in my form and have it work on Adobe Reader for iPad?
    Thanks in advance for the help. I took on this project from my boss' boss, so I'd really like to get this done for him.

    Hello GKaiseril,
    Thanks for the reply. I experienced the issue running the most recent version of the Adobe Mobile Reader app. I'm not sure I can convince the client to use anything else, but its worth a shot.
    All I need is a simple drop-down list (multiple fields in the document) with 4 options that the user can select and submit as a form. Is this something EZ Pdf reader can do? Also, is EZ Pdf Reader free? (the reason I ask is I am an Android user and do not readily have access to a iPad).
    Thanks again.

  • FormCentral PDF export: Drop-Down Menu does not print when no choice is made

    FormCentral PDF export: Drop-Down Menu does not print when no choice is made
    I want to be able to print a blank form for the older clients who cannot use a computer. Form has a few drop-down menus and they only appear on the print out if an option is selected. The form was created on FormCentral. Can anybody help?
    Sorry if i'm a noob, not much experience in creating PDF forms yet.
    Thanks for your help,
    Yon

    Hi Perry
    I am using the trial version of Adobe Acrobat and am using the provided FormCentral software to create the form. I find it very limited, but easier to learn. I am creating a financial needs analyser.
    The section of the drop down menu is a selection from 1-5 (rating of importance for financial goals). I want to print out the questions and the empty boxes for people to fill them in by hand (e.g write 1, 2, 3, 4, or 5). When I leave a blank choice, no box is printed out. I write the questions in formatted text and leave the text/caption for the drop-down as blank, as it is difficult to set the margins correctly so various elements align (I pretty much have to estimate).
    As said before, I may have been missing a massive part of the software, but I haven't used any training - just going by instinct so far.
    Do you know if I can do anything about it?
    Thanks,
    Yon

  • The drop-down menu is not rendered properly with iframe where a pdf is embedded

    I want to embed a pdf in a webpage, where the drop-down menu needs to be displayed on the top of the pdf. I am using iframe to embed the pdf.
    The drop-down menu is not properly rendered (border-radius and box-shadow) in Firefox at http://mysite1.webege.com/test.html.

    *[https://bugzilla.mozilla.org/show_bug.cgi?id=779435 bug 779435] - the drop-down menu is not rendered properly with iframe where a pdf is embedded
    It is usually best to attach a minimal test case to the bug report.<br />
    In that case the code doesn't get lost if the page is removed from the server.

Maybe you are looking for