Webdynpro - Dropdown UI Elements

Which webdynpro dropdown UI element is better in terms of performance: dropdown by key, or, dropdown by index?

Check out the threads[Difference between dropdowns |Difference between dropdown index;
[Thread|Re: dropdown in WDA]

Similar Messages

  • Insert a new Dropdown UI-Element in a Table header

    Hello,
    i need to insert a Dropdown UI-element in a Table header, i was looking in the forum and the Web, BUT i didnt find anythinf that can help.
    please schow me how can I insert a DropDown UI-Element in the Header.
    thank you all

    Hello,
    You can normally create a table. Insert a table column and for the table column you need to give Dorpdown by Key / index as a cell editor.
    Thanks,
    Raju Bonagiri

  • ESS addresses dropdown UI element behaviour?

    Hi,
    On the ESS addresses screen we have a roadmap buttons like previous, review, save.  When I view the address screen I see country dropdown defaulted to readonly mode to the correct country full name(e.g. Australia) then I click on Review button I see "AUS" as the country selection in the Review screen then I click Save the values are correctly saved in the backend. 
    The issue is when I click Review button and then click previous button I see AUS on the country dropdown UI element not full country name (e.g. Australia), then I click Review button I get error message saying "Country key AUS is not defined", obviously the reason I think is that key is set in the value dropdown by standard SAP coding.  What can I do here to fix this?  Is this OK to change because I'm trying to correct the standard coding here?  Please suggest if this is something easy to fix?
    I have already made some customisation to addresses screen, so there is not a problem if this is a easy fix to resolve.
    Thanks
    Praveen

    Thanks.  Resolved by setting the initial Australia country code to the new context attribute and then in the modifyview method set this context value always to the dropdown selected key.  Looks like this is a bug in the standard DC.
    Thanks
    Praveen

  • WebDynpro FileUpload UI Element

    Hi All,
    Iam using a FileUpload UI Element in a View of a WebDynpro project. If i selected a file using the 'browse' button, then you click on any tab in the  View and the file path in the inputfield of the fileupload control disappears.When i come back to the tab which has the Fileupload UI element , the file path is missing. Version :CE 7.1
    Has anyone tried this and faced similar issue?
    I have seen others posts , there is no filename attibute to the FileUpload UI element in CE. Is there any other way out to hold back the file resource path in the UI elements when swtcing between tabs?
    Thanks,
    Uma.

    Hi,
    Its a limitation with the fileupload UI. You can check this in its documentation:
    [http://help.sap.com/saphelp_nw70/helpdata/en/b3/be7941601b1d09e10000000a155106/frameset.htm]
    Well there is a workaround for displaying the file name. You can display the file name using label or textview just beside the fileupload UI.
    There is method called getResourceName() for IWDResource to get the filename.
    Hope this will help you.
    thanks & regards,
    Manoj

  • ABAP WebDynPro User Interface Elements not shown on layout while designing

    Hi,
    When I create a new custom ABAP WedDynpro, the UI Element library is not shown on the view layout.
    I have tried a lot of options in exploring this.
    Kindly help me
    Thanks
    Sai.

    Have you followed the instructions in the online help:
    For the layout editor in the View Designer, all the services specified in Active Services in SICF for Web Dynpro ABAP must be activated. More information: SAP Notes 1009930 and 1008689
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/e86de5008b4d9ae10000000a155369/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/46/d28dfa34bb12bee10000000a1553f7/frameset.htm
    The view designer is a web application itself and your system must be properly setup for web access for this to work.  Also look at your Fully Qualified Domain Name setup:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/67/be9442572e1231e10000000a1550b0/frameset.htm
    Although a nice feature, the view deisgner is not required for building Web Dynpro Applications.  You can do 100% of the activities with the view designer turned off by working with the UI element tree on the right side of the page.  You can right mouse click and use the context menu to access most functions.  I'm sure that you want to get the view designer working, but until then you can still function.

  • Webdynpro tree ui element

    hi all,
        i want to know from which tables can i pick the skill group and skills related to each skill group. And after getting these details i want to display them in the tree structure in my iView .
        it is very urgent can any body help me regarding this issue.
    Thanks & Regards,
    Sreelatha Gullapalli.

    Hi,
    for tree UI element look into the below PDF...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ec6622-8da5-2a10-349b-868b6a553efa
    and for binding data to a table... simple way to do it is just right click on your container in LayOut tab and then click on Apply template, from there select Table and then select the corrosponding Context node from which you want to display data into the table....
    hope it will be helpful....
    Reward points if useful...
    Regards,
    Srini.

  • Webdynpro application with dropdown by key

    Hi,
    i' am creating an webdynpro application with dropdown key element. I have created a domain and in the value range tab i have given the entries like this
                                    Fixed Value            ShortDescription
                                  0000001                   ABCD
                                  0000002                   EFGH
                                  0000003                   IJKL
    now when i run the webdynpro application iam able to see only the values entered in the Short Description and not the values entered in the Fixed Values.
    may i know what has to be done to display the contents present in Fixed Value to get displayed in hte dropdownbykey in the webdynpro application.
    Thanks,
    BJR.

    Hi, Badni,
    If you can live without your custom domain, then you can use any standard data element and then programatically fill the attribute property with whatever content you want.
    For example, you can create the following method and call it from WDDOINIT of your view:
    METHOD set_values_for_dropdown_by_key.
    DATA:
        lo_nd_fli    TYPE REF TO if_wd_context_node,
        lo_info_fli  TYPE REF TO if_wd_context_node_info,
        lt_value_set TYPE wdr_context_attr_value_list,
        ls_value_set LIKE LINE OF lt_value_set,
        ls_scarr     TYPE scarr.
    * get node info
      lo_nd_fli   = wd_context->get_child_node( 'YOUR_NODE' ).
      lo_info_fli = lo_nd_fli->get_node_info( ).
    * set values
      ls_value_set-value = '0000001'.
      ls_value_set-text  = '1 - ABCD'.
      APPEND ls_value_set TO lt_value_set.
      ls_value_set-value = '0000002'.
      ls_value_set-text  = '2 - EFGH'.
      APPEND ls_value_set TO lt_value_set.
      ls_value_set-value = '0000003'.
      ls_value_set-text  = '3 - IJKL'.
      APPEND ls_value_set TO lt_value_set.
    * assign value set to attribute
      lo_info_fli->set_attribute_value_set(
        name      = 'YOUR_ATTRIBUTE_NAME'
        value_set = lt_value_set ).
    ENDMETHOD.
    Furthermore, if you insist on domain fixed values, you can get them from the tables DD07L and DD07T and include them in your DropdownByKey programatically with program similar to the above one.
    KR,
    Igor

  • Dropdown and Value Help in Adobe Form (WebDynpro Java)

    Hi Experts,
    I need to develop a Adobe form where i have to implement Dropdown and Value Help, which will coming from custom BAPI. I am using WebDynpro Java, EP 7.0 and ALD 8.0. Please let me know how can i implement those 2 UI Elemnts..
    Regards
    Subhrajyoti

    Hi Jyothi,
    Herewith I had Explained detailed Procedure,
    For Dropdown,
    1.     Create a node and attribute to the dropdown ,
    2.     call the bapi,
    3.     Assign the Bapi attribute to the Dropdown node attribute
    4.     Place the Interactive form UI to the Java Application
    5.     Create an another  attribute for read the interactive form
                  a.Name: pdf_src
                  b.Type :byte, Assign this attribute to PDF Source property of the Interactive form UI Element.
    6.     Give the Name to the Template source property of the Interactive form UI and double click the        template source.
    7.     It asking Name for the Interactive form, Give the name for that
    8.     Once give the Name, It ask context for Adobe form, assign the already created node for dropdown in Webdynpro application to the interactive form.
    9.     Now Context Bounded with Webdynpro and Interactive form
    10.     Interactive form screen will be open into the studio
    11.     Place the Dropdown UI element  to the Interactive form and bind the attribute to the dropdown
    12.     Select the Dropdown UI Element, go to the object property, Click the Specify Item values. The pop window displayed, here give the $ value to the Item Text, Item value. The Data Connection dropdown and Default Binding , it has value when the attribute bounded to the dropdown UI .
    13.     Save and Test the Application
    For Value Help,
    1.     Do the Same Procedure for up to 10 steps,
    2.     Place the Text field UI and Value Help UI Element
    3.     Select the Value Help, go the Script Editor give the name of the text field attribute name in var fieldName = "*INSERT_NAME_HERE*";
    4.     Save and Test the Application
    By
    Parthi

  • Displaying ui element when selecting value from dropdown

    hi,
    i have a requirement when user select value from dropdown( some x from dropdown) textedit ui(where user can enter some text) should be displayed and submitted. please give some idea

    Hi Babanmohi     ,
    First create a node in your context and under that create an attribute. Then add a Dropdown by Index and TextEdit UI on to your view. Bind both the UI element with the same attribute.
    Then create an action on onSelect event of the DropDown UI element. Go to its implementation and write the following:
    wdContext.current<Node name>Element.set<attribute name>(wdContext.current<Node name>Element.get<attribute name>)
    For example, if in my context there is a node called testnode and under that if im having an attriburte called name, then do the following coding in the onSelect method of dropdown:
    wdContext.currentTestnodeElement().setName(wdContext.currentTestnodeElement().getName());
    Reply me if you have any issues
    Regards,
    Jithin

  • Dropdown editable in a table based on a condition

    Hi,
    I would like to know how to solve these problems.
    1. I have a cell (of the type dropdown by key) in a table, which is editable or not, depending on a condition ? Is this is possible? Please let me know if there is a sample code
    2. So basically I have a  table that has 2 entries in it, user details and one of the fields in FLAG showing the values Yand N for the user. I want the table in the webdynpro application to show the 2 user entries and then in the Flag column have a DROPDOWNBYKEY that DEFAULTS to showing what flag the user has, but also allows the user to CHANGE the entry.
    Thanks in advance
    I appreciate for the help.

    is possible
    In your Context node which is binded to the table as DataSource, add an attribute WDY_BOOLEAN type
    In layout bind the newly created attribute to the dropdown UI element Enable property
    while filling your context node, fill the attribute with abap_true and abap_false based on your condition
    Abhi

  • File Upload UI Element

    Hi,
      We are using the Standard Webdynpro File upload element in the screens. When the user clicks on the 'Browse' button the File Selector popuop is thrown using which the user can select the file.
      Can we have on specific type of files be displayed in the 'File Selector' popup. currently ALL the files are displayed, though we have the option of '.html' files in 'Files of Type' dropdown.
      How can we add custom file types say .csv file selection.
    Regards,
    S.Divakar

    Baskaran,
    The key here is "ACCEPT" attribute of file upload. Even if SAP add it later, we have to wait for MS to fix IE (make it true HTML 4.0 browser) -- IE docs even does not mention ACCEPT attribute on <input type="file" />
    Compare
    http://www.htmlhelp.com/reference/html40/forms/input.html
    and
    http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/input_file.asp
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • How to get prefilled drop down list in Adobe form from WebDynpro context

    Hi All,
    We all know that we can have dropdown list in webdynpro which can be automatically populated by the context node collection.
    How can we have the same functionality in Adobe form drop down list. I tried to bind the node attribute to drop down list in Adobe form but it shows me only first element. I am not able to see all the elements in the dropdown but if I am doing same thing for WebDynpro DropDown list I can see the complete List.
    Anybody with Solution?

    Hi Ricky
    I have started a thread for this problem and got an answer for it already. Unfortunately I did not have the time to check it out yet; have a look over there:
    https://mail.cirrus.ch/exchweb/bin/redir.asp?URL=https:///community [original link is broken]
    I appreciate if you tell me whether it worked for you.
    Andreas

  • New to webdynpro abap

    Hello,
    I am quite new webdynpro abap. I would like to display a dropdown box, input field on an iView. The selected value from dropdownbox and entered input value together has to be displayed during runtime. I was looking around for a step by step by guide which i couldn't find. Please provide me a solution for which points are rewarded
    best regards,
    k.c.

    Hi,
    There are 2 dropdown UI elements present in WD abap.
    1. For DropDownListByKey:
    Create a dropdownby key element in your view, and bind the selectedKey property to whichever node attribute you wish to bind. When you select a value in the dropdown, it is this value you have to bind and init method write code to popuate the values to the dropdown.
    The wddoinit method: write the following code:
    data: lt_valueset type standard table of wdr_context_attr_value,
    ls_valueset type wdr_context_attr_value,
    lr_node_info type ref to if_wd_context_node_info,
    lr_node type ref to if_wd_context_node,
    wa_kna1 type <your kna1 table type>.
    lr_node = wd_context->get_chilod_node( 'NODE_KNA1MOD' ).
    lr_node_info = lr_node->get_node_info( ).
    loop at kna1 into wa_kna1.
    ls_valueset-value = wa_kna1-kunnr. "this will be the selected value
    ls_valueset-text = wa_kna1-kunnr. "this will be the displayed value in the UI
    append ls_valueset to lt_valueset.
    endloop.
    lr_node_info->set_attribute_value_set(
    exporting
    name = 'KUNNR'
    value_set = lt_valueset ).
    you can find more info at:<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4884180951809e10000000a155106/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4884180951809e10000000a155106/frameset.htm</a>
    2. Dropdown by Index:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/dd/b0884118aa1709e10000000a155106/content.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/dd/b0884118aa1709e10000000a155106/content.htm</a>
    Define a node (for eq. 'TEXT') with cardinality '0..n' with attribute (for eq. 'TEXT').
    In the view create a UI element DropDownIndx
    Bind the text property of DropDownbyIndex UI element to attribute Text of context node Text.
    For populating the values to the node text;
    In the WDDOINIT method you can prepare an internal table with the values and bind it to the node and the lead selection defines the selected element.
    The below code sample may help.
    method WDDOINIT .
    for populating the values in drop down
    data:
    node_text type ref to if_wd_context_node,
    stru_text type if_componentcontroller=>element_text,
    tab_text type if_componentcontroller=>elements_text .
    node_text = wd_context->get_child_node( name = if_componentcontroller=>wdctx_text ).
    Set/fill your values
    stru_text-text = 'Value1'.
    append stru_text to tab_text.
    stru_text-text = 'Value2'.
    append stru_text to tab_text.
    set values to the node
    call method node_ddi_also_text->bind_table
    exporting
    new_items = tab_text.
    endmethod.
    for reading the values which user has selected in dropdown; for reading the selected index you can write the logic/method for the Onselect event of dropdownbyindex ui element. in the method read the attribute of the node text. the lead selection of the node gives the selected element (you can use the code wizard to read the context).
    Hope this helps.
    Regards,
    Suresh

  • Need help with a Webdynpro scenario

    Hi,
    I have the following scenario.
    I have a webdynpro application (form) which allows the user to change some data. When the page loads, the data already available is displayed in the corresponding UI elements in the form. This is done using a BAPI call. Then after the user modifies the values and clicks modify, the corresponding values should be updated using a different BAPI call.
    Here, for displaying the values at first, I have mapped the view context to the controller context and in turn to the corresponding model. But to update using a different Model class, how can we map the updated values dynamically, say on submit? Can the view context attributes, mapped to multiple controller context attributes? Or is there any other way to acheive this.
    I have another question. I have a dropdown UI element in the same application. It is populated with data coming from a BAPI call. But how can we set the selected value to the one which the user has already stored previously? Remember, the user is modifying the values.
    thanks in advance!
    KK

    Hi KK,
    You can achieve the same by copying the UI attributes to a new node in the controller using copy corresponding( i am assuming your node structure and name remains same). You can then pass this node to the 2nd BAPI.
    and when you get the next display the 1st BAPI will get you updated data.
    For the UI dropdown also, you can persist the data in a value node and then check if the dropdown model node for this element and set it default. OR there needs to be some sorting in the BackEnd.
    Kind Regards
    Asif

  • Filedownload UI element not working in production

    Hi,
    There is filedownload UI element used along with a dropdown UI element
    This is working fine in dev and quality but in production it doesnt pick the file.
    It is made to work as follows -
    u2022     first of all the files are placed at root location of the file system of server (filedownload ui element is used to download these files)
    u2022     The data and resource properties of the filedownload are populated upon the action of dropdown ui element
    u2022     so user has to select the dropdown frst and then click on filedownload UI element (which is a link)
    u2022     Following code is onaction of the dropdown ui element.
    byte b[];
              try {
                   String excelpath = null;
                     String systemID = System.getProperty("SAPSYSTEMNAME");
                     String appDir = System.getProperties().getProperty("Applications Directory");
    //                    if(wdContext.currentExcelName_downloadElement().getExcelName()=="Template for Financial Forms - 1")               
    //                                  excelpath = "/usr/sap/"systemID"/JC00/j2ee/cluster/server0/apps/sap.com/com.sap.engine.docs.examples/servlet_jsp/_default/root/Template for Financial Forms - 1.xls";  
    //              if(wdContext.currentExcelName_downloadElement().getExcelName()=="Template for Financial Forms - 2")                          
    //                                     excelpath = "/usr/sap/"systemID"/JC00/j2ee/cluster/server0/apps/sap.com/com.sap.engine.docs.examples/servlet_jsp/_default/root/Template for Financial Forms - 2.xls";                     
    //                   if(wdContext.currentExcelName_downloadElement().getExcelName()=="Template for Non Financial Forms")                               
    //                                     excelpath = "/usr/sap/"systemID"/JC00/j2ee/cluster/server0/apps/sap.com/com.sap.engine.docs.examples/servlet_jsp/_default/root/Template for Non Financial Forms.xls";          
                   if(wdContext.currentExcelName_downloadElement().getExcelName()=="Template for Financial Forms - 1")               
                                    excelpath = appDir+"sap.com/com.sap.engine.docs.examples/servlet_jsp/_default/root/Template for Financial Forms - 1.xls";  
                     if(wdContext.currentExcelName_downloadElement().getExcelName()=="Template for Financial Forms - 2")                          
                                    excelpath = appDir+"sap.com/com.sap.engine.docs.examples/servlet_jsp/_default/root/Template for Financial Forms - 2.xls";                     
                   if(wdContext.currentExcelName_downloadElement().getExcelName()=="Template for Non Financial Forms")                               
                                    excelpath = appDir+"sap.com/com.sap.engine.docs.examples/servlet_jsp/_default/root/Template for Non Financial Forms.xls";          
                   //wdComponentAPI.getMessageManager().reportSuccess(excelpath);
                    File input = new File(excelpath);                                           
                     int length =(int)input.length();
                //       Create a byte array b to hold the file
                     b = new byte[length];
                     FileInputStream in = new FileInputStream(input);
                //       Reading the file to a byte array b
                     in.read(b);
                     in.close();          
                //       Setting the data from the byte array to the context element.
                     wdContext.currentContextElement().setData_filedownload(b);
              //      Populating the resource attribute 
                  String filename = wdContext.currentExcelName_downloadElement().getExcelName();                 
                   IWDResource resource = WDResourceFactory.createResource(b, filename, WDWebResourceType.XLS);
                   wdContext.currentContextElement().setResource_filedownload(resource);
                } catch (FileNotFoundException e) {
                     // TODO Auto-generated catch block
                     e.printStackTrace();
                } catch (IOException e) {
                     // TODO Auto-generated catch block
                     e.printStackTrace();
    This is working fine in all systems but after I deployed the code in production system it doesnt work. When user clicks on filedownload it doesnt open up any file download dialog box
    when similar problem occured in quality it was because the files were not placed at proper location
    but now the files are properly places i checked along with basis
    kindly advice what could be the problem here
    does it not determine link correctly or what could be difference betw non-production and productio environment ?
    thanks in advance

    Hi,
    Did you check the user permssions on the seected directory? The loged-in user should have at least reading permissions.
    Regards,
    Alain.

Maybe you are looking for

  • Creation of alternative screen

    Hi to all, Greetings for the day, i like to create a alternative screen of 2062 for the country of slovenia but i failed in that. Can any one tell me how to create alternative screen for infotype 0002 for country solvenia  with exact steps. Waiting f

  • Adobe AIR for Android - GPU Mode - Bitmap Auto-Smoothing Issue

    Hi everyone I'm having a bit of an issue with the AS3 bitmap object. I'm currently developing an 8-bit style pixel game for AIR for Android. This game is being developed at a very low resolution and is being scaled up to maintain the charm of an old

  • Preview on [device name] option not available

    Preview on [device name] option not available on Folio Overlays

  • My iPhone 5 battery has recently been draining very quickly. Also shuts down at random times.

    Has this been happening to anyone else? I use my phone just as much as anyone else, and l'll admit sometimes it's a little more but this only recently started happening. Around the same time my battery started draining all the time my phone would als

  • Error. Required Attribute Missing

    Hi, I had the following code: <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd"> <%@ page session="true" %> <%@ page import="java.io.*"%> <%@ page import="java.sql.*"%> <%@ page import="