Populate DropDownList

First of all I want to apologize for my English.
I started to work with Adobe LiveCycle a few days ago.
I am trying to populate dynamically a DropDownList  with a XML at process time . It is possible to do it?
All the documentation I’ve found they do it from Adobe LiveCycle Form Design
Thank in advance.

Hello Philip,
Below is a part of note 1013227, hope it helps.
How to change the maximum number of items allowed in the Value Help DDL**:
Maximum number of items that a Value Help DDL can hold is defined by the "sap.valuesetlimit.maxondemand" property of the web dynpro "default" property sheet. J2ee administrator can change this value by logging into the "Visual Administrator" tool as follows:
- Go to Instance_ID -> Server<X> -> Services -> Configuration Adapter.
- On the right hand panel, select "Display Configuration" tab under "Runtime" tab.
- Under the "Configurations" tree select webdynpro -> sap.com -> tcwddispwda -> propertysheet default
- Switch to edit mode by clicking on the button on the top left corner of the right panel having a pen and a spectacle icon on it while keeping the "propertysheet default" selected.
- Double click "propertysheet default". "Display Configuration" popup appears. Select "sap.valuesetlimit.maxondemand" property and provide a custom value. Apply Custom. Switch back to view mode.
- Restart the server.
We strongly discourage to manipulate this value untill and otherwise it is very much required to do so. Should your application always deals with a large number of value sets, use enumerated DDLs instead. Follow the next section on how to use this.
**Be careful to change this value as it is a global change and every application (having value help : web dynpro and interactive form) running on this server will be affected.
Kind regards,
Maarten.

Similar Messages

  • Retrieve list items from the textbox text value and display the dropdownlist item for that particular list item

    hi,
     I have created a custom list in my sharepoint :
    List1 name:   employeedepartment  -
                   Title       empdepartment
                   A             D1
                   B             D2
                   C             D3 
    List2  name:  employeedetails  
     emptitle            empname       empdepartment(lookup) --> from the list "employeedepartment"
       x                     Ram                 D1
       y                     Robert             D2
       z                     Rahim              D3
    My task is to create a custom webpart that will be for searching this employee details by entering emptitle
    For this, i have created a visual webpart using visual studio 2010, my webpart will be like this:
    emptitle  --->  TextBox1                        Button1--> Text property : Search
    empname---> TextBox2
    empdepartment-->  DropDownList1
    For this, i wrote the code as follows:
    protected void Button1_Click(object sender, EventArgs e)
                using (SPSite mysite = new SPSite(SPContext.Current.Site.Url))
                    using (SPWeb myweb = mysite.OpenWeb())
                        SPList mylist = myweb.Lists["employeedetails"];
                        SPQuery query = new SPQuery();
                        query.Query = "<Where><Eq><FieldRef Name='Title'/><Value Type='Text'>" + TextBox1.Text.ToString() + "</Value></Eq></Where>";
                        SPListItemCollection myitems = mylist.GetItems(query);
                        if (myitems.Count > 0)
                            foreach (SPListItem item in myitems)
                                string a1 = Convert.ToString(item["empname"]);
                                string a2 = Convert.ToString(item["empdepartment"]);
                                TextBox2.Text = a1;           // displaying   properly                    
                                //DropDownList3.SelectedIndex = 1;                           
     It is showing the list item in textbox according to the item entered in the textbox1... But I am stuck to show in the dropdown list. 
    Suppose, if i enter X in textbox and click on search, then dropdownlist need to show D1,
                               for Y --> D2 and for Z-> D3... like that.
    What code do i need to write in the button_click to show this... 
    Please don't give any links...i just want code in continuation to my code.

    Hi,
    Since you have got the data you want with the help of SharePoint Object Model, then you can focus on how to populate values and set an option selected in the Drop Down List.
    With the retrieved data, you can populate them into the Drop Down List firstly, then set a specific option selected.
    Here is a link will show how to populate DropDownList control:
    http://www.dotnetfunda.com/articles/show/30/several-ways-to-populate-dropdownlist-controls
    Another link about select an item in DropDownList:
    http://techbrij.com/select-item-aspdotnet-dropdownlist-programmatically
    Best regards
    Patrick Liang
    TechNet Community Support

  • Dropdownlist Cascade

    Hi Guys
    I have two dropdownlists (A and B)
    Both get their values from a database
    When i select a value from dropdownlist A
    It is suppose to do a postback
    and then dropdownlist B gets a value from dropdownlist A
    which then populates dropdownlist B
    However i have been trying for days but dropdownlist B does
    not populate
    For dropdownlist A
    i have set postback = true
    For drop dropdownlist B
    in the dataset menu i have set
    Filter: classlevelid = Form Variable Classlevelid
    This part actually works when i test and put a classlevelid
    However on the page
    only dropdownlist A gets populated
    and Dropdownlist B remains empty after the postback
    Your help would be much appreciated
    Jimmy

    Hi,
    It seems like that you were doing program with C#, if so, I would like to suggest you post in the C# forum:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral
    Regards,
    Yan Li
    Regards, Yan Li

  • Dynamic Web Dynpro Project

    Noufal,
    I am working on a WD app wherein I need to dynamically populate dropdownlists, input fields. Dynamic values are contained in an object that has propertiy values such as id, text (could be a value set), read-only flag, labelid flag etc.....
    My issue is depending on the UI element type (dropdownlsit, input field, checkbox etc..) I may have to populate UI element corresponingly. I do not want to yse context nodes to bind values, as I have way too many fields to populate. My question to you is as follows:
    1) How do I know the type of the element ?
    2) How do I populate the dropdown list ?
    3) Show the view manipulation be done only in the wdDoModifyView method only ?
    If you have posted code for some of my questions, please paste in your response once again....
    Thanks,
    Sri

    Armin,
    I reviewed the chapter and found it helpful. However, I am not sure if it addresses the issue of accessing the value of a node, the kind I have talked about. Example is as follows.
    I have the context structure created dynamically, and it is as follows.
    NodeA
    NodeA1
    NodeA11
    Element1
    Element2
    Element3
    NodeA2
    NodeA21
    Element1
    Element2
    Element3
    NodeA3
    NodeA31
    Element1
    Element2
    Element3
    One of the earlier responses to my post, I think it was by Noufal, would work if nodes were created at design time.
    But noes above are created at runtime.
    I have been able to access the node say NodeA11, but still not sure how to access the attribute Element1 or Element2, which ever is the selected element. Keep in mind, these elements are created dynamically, so I cannot access values with statement like
    wdContext.currentNodeA11Element().getElement1();
    Hope I am making sense. Do let me know how.
    Thanks !
    Sri

  • Fill the second Dropdown List based on user selection

    Hi All,
    I am using Web Services to populate Dropdownlists. This works fine for me.
    I have a table with the column "Core Category" and "SUB Category", "Core Category" can have 1 or more SUB Categories.
    The SQL statement in the Web Service for "Core Category" looks like this: "Select DISTINCT [core category] from table", this returns a list of categories.
    In this example, I want to achieve the following:
    When I select a "Core Category' in the first Dropdownlist, the application fires an event or action to fill the second Dropdownlist "SUB Category" with ONLY values that belongs to the selected "Core Category" in the first Dropdown list.
    Is this possible with Visual Composer? Please let me know how I can achieve this?
    Many Thanks,
    Ridouan

    Hi Ridouan,
    Yes it is possible. [Example of Ship and Engine|http://img146.imageshack.us/img146/2968/shipenginezt9.jpg]. Kindly note there is a web service for getting ship and on basis of ship-id selected, engine is filled, which is also deliverd by web service
    The intial state of application is ship drop down is enabled but not the engine, that gets enabled only when ship is selected.
    Here the steps: Please replace it with your fields:
    1. Place the 2 drown down controls.
    2. For Ship, Select the web service in the dynamic list of the dropdown, remember at runtime, if those input parameters are not valid it will give the data service error, make use of if statement.
    3. Define Store -> shipid, engineid and boolean show_engine  - default false
    4.  Action of ship -> ASSIGN action -> true to show_engine from data store
    5.  Value of ship ->
    =store@SHIP
    6.For engine, Select the web service in the dynamic list of the dropdown, remember at runtime, if those input parameters are not valid it will give the data service error, make use of if statement. Where the paramter for shipid is to be filled
    =IF(store@SHIP!="",UPPER(store@SHIP),"AVRA")
    7. Value of engine ->
    =store@ENGINE
    Let me know, if helps.
    Best regards,
    Dharmi
    Edited by: Dharmi Tanna on Jun 27, 2008 3:23 PM

  • Is it possible to populate listbox/dropdownlist items using loadXML method?

    Is it possible to populate listbox/dropdownlist items using loadXML method? (If I have xml data in some string variable)
    Any sample?
    Thanks

    Hi Steven,
    Yes, Its possible which behaves as system CFL.
    Design the form like cfl having grid, choose button, cancel button and edittext of find. When you tab on edittext on form open the CFL form and after load form fill the grid by Datatable using sql query. Write code for select grid line on click of grid. Write the code on choose button which retrive value from grid.
    Thanks,
    Mahesh

  • Populate Multiple DropDownLists and a ListBox

    Hello All,
    Can someone please help me with the following.
    What I have are two dropdownlists and a listbox. What I am trying to do is based upon a selection made in DropDownList1 clear all items in DropDownList2 and replace them only those items that relate to the selection made in DropDownList1, then select from the available items now in DropDownList2 and populate ListBox1.
    This is what I came up with so far, but can't get it to work.
    Using a "change" event javascript the following is what I have in DropDownList1:
    Dropdown2.rawValue = xfa.event.newText;
    if (this.boundItem(xfa.event.change) == 0) { //DATABASE 1
    Dropdown2.clearItems();
    Dropdown2.addItem("DIRECTORY 1");
    Dropdown2.addItem("DIRECTORY 2");
    Dropdown2.addItem("DIRECTORY 3");
    Dropdown2.addItem("DIRECTORY 4");
    Dropdown2.addItem("DIRECTORY 5");
    } else if (this.boundItem(xfa.event.change) == 1){ //DATABASE 2
    Dropdown2.clearItems();
    Dropdown2.addItem("DIRECTORY 6");
    Dropdown2.addItem("DIRECTORY 7");
    Dropdown2.addItem("DIRECTORY 8");
    Dropdown2.addItem("DIRECTORY 9");
    Dropdown2.addItem("DIRECTORY 10");
    In my DropDownList2 change event I have the following:
    ListBox1.rawValue = this.boundItem(xfa.event.change);
    Can someone please help me with this?

    Hello William,
    I know your post is over a year old, but, were you able to ever figure this out?
    Any help would be appreciated.
    Thank you in advance.
    - Vivianne

  • Populate value into dropdownlist

    Is it possible to populate value of a dropdownlist?
    I will want what is inside my dropdownlist to have values according to this SQL statement.
    Select  distinct PROGRAM_ID from ZPROGRAM_TABLE
    How am I suppose to do this? Any codes example?

    I got an error when I put this codes:
    data: itab type standard table of ZPROGRAM_TABLE WITH HEADER LINE,
    wa_itab type ZPROGRAM_TABLE.
    DATA : K TYPE I VALUE 1.
    START-OF-SELECTION.
      CALL SCREEN 1000.
    MODULE STATUS_1000 OUTPUT
    MODULE STATUS_1000 OUTPUT.
      SET PF-STATUS 'SCREEN_1000'.
      SET TITLEBAR 'TITLE_1000'.
      select DISTINCT PROGRAM_ID from ZPROGRAM_TABLE
    into table itab.
    loop at itab.
    clear wa_itab.
    wa_itab-PROGRAM_ID = K .
    wa_itab-PROGRAM_CODE = itab-PROGRAM_CODE.
    append wa_itab to itab.
    K = K + 1.
    endloop.
    call function 'VRM_SET_VALUES'
    exporting
    id = 'ZDROPDOWNLIST' "Here use your input box name in which you need dropdown
    values = itab
    exceptions
    id_illegal_name = 1
    others = 2.
    ENDMODULE.                    "STATUS_1000 OUTPUT
    Here is the link of how the error look like:
    http://img529.imageshack.us/img529/9650/screenee6.png
    Can someone tell me how to solve it and where is the error?

  • Populate TextField based on DropDownList selection

    Hello guys,
    I want to fill a textfield based on a menu selection, for example the database has two fields agent_name and agent_number.
    agent_name | agent_number
        Scott         |          1
        Dave         |          2
        Matt          |           3
    I created a dropdown unsing Dreamweaver CS5, and I fill the values using a database (MySQL), there is a readonly text field called agent_number like the database field, basically I want to put the agent number based on the name selection, if you select Scott, this will autopopulate the number 1.
    Can I do this automatically using dreamweaver? Or Do I need to do it using JavaScript?
    Regards,

    pelonms7 wrote:
    I want to show the agent number based on the agent selection from the drop down.
    Well, if you really prefer a javascript based solution over achieving the same result with standard SQL methods, you can do it this way:
    a) put this javascript function in the document HEAD:
    <script type="text/javascript">
    <!--
    function transfer_agentid () {
    for (var i=0;i<document.form.agente.options.length;i++)
    if (document.form.agente.options[i].selected==true)
    document.form.agente_numero.value=document.form.agente.options[i].value;
    // -->
    </script>
    b) add an onchange event handler to the SELECT tag, example:
    select name="agente" id="agente" onchange="transfer_agentid ()"
    However I´d like to remind you that any javascript based approach is not reliable, because you don´t know whether some visitor will have javascript enabled in his/her browser.

  • How do I read txt file and add items to dropdownlist or checkbox

    I want to add items to a dropdown or check box by reading from a text file(and select one of them). (I donot use any table or database). The list of items is sometimes upto 20MB and hence cannot populate using session bean.I want items to be added to either checkbox or listbox during a button action. I have done this for textarea but unable so far to acheive for checkbox or listbox. I use following code which does not work:
    public String button3_action() {       
    try{           
    FileReader fr = new FileReader "F:/CreatorProjects/checkboxtst.prs");
    BufferedReader br = new BufferedReader(fr);
    String s;
    while((s=br.readLine())!=null) {
    dropdown1.setValue(s);
    br.close();
    fr.close();
    }catch(Exception e) {
    e.printStackTrace();
    return null;
    I know I cant just transplant textarea code for dropdownlist or checkbox.
    Any help is greatly appreciated.
    Thanks.
    Dr.AM.Mohan Rao

    I am able to read from txt file to a listbox if i write in sessionsbean1:
    try{
    FileReader fr = new FileReader("F:/CreatorProjects/checkboxtst.prs");
    BufferedReader br = new BufferedReader(fr);
    String s1="";
    String s="";
    while((s=br.readLine())!=null) {
    s1 = s1+s;
    s1= s1+"\n";
    disOptions = new com.sun.rave.web.ui.model.Option[] {              
    new Option(s1,s1)};
    diseases = new String[] {};
    fr.close();
    br.close();
    catch(Exception e) {
    e.printStackTrace();
    But I get all data in one line!! if I click submit button text area gets all. How to display items in each line????Please help...
    Dr.AM. Mohan Rao

  • Sample code on how to populate data in DropDownListbox

    Hi all
    i am new to the webdynpro for java.
    i have one UI element called DropDownListBox and i want to populate some desired values to the dropdown list box.
    what are the different ways are there to populate data in DropDownList box.
    for example i have city as dropdownlist box and i want to populate some values in drop downlistbox like bangalore,hyderabad,chennai and delhi,
    can you pls send the sample code on the same?
    Regards
    Suresh Babu

    Hi,
    If you want to retrieve the city names then you can use the standard tables in R/3.
    We have countries list in T500T. Like this we have table for the cities also.
    Or
    You can manually populate a table and bind this table to the list box.
    Please check out this link -
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ded11778-0801-0010-258f-ac3b9408a194
    http://help.sap.com/saphelp_nw70/helpdata/EN/74/450e8af57065468e88e4b86de47e4b/frameset.htm
    Regards
    Lekha

  • PreOpen doesn't invoke a webservice and populate dropdown

    I have dropdownlist with WSDL DataSource.
    On preOpen event webservice is invoked to populate the dropdown.
    xfa.connectionSet.getStates.execute(0);
    it doesn't work in Adobe Reader.

    I have Reader Extended the form other webservices invoking on form initialize are working fine. Only problem with the webservice invoked at preOpen event of dropdown list. Invoking webservices on event of button is also working fine. The problem occurs while opening the form in Adobe Reader. I'm using the trial version of Reader Extension Server.

  • How to display cascaded dropdownlist using MVC4?

    I have two tables in DB to populate cascading dropdownlist. On change of value in first dropdown, second dropdown has to be populated
    using second table. While i tried below code, i am getting the same data for country dropdownlist. countryid is primary key in country table and  it is
    foreign key in state table. First row country id in state table is 6 which corresponds to North America in country table. It displays the same for all 11 rows in country dropdownlist. Please give me right direction?
      public ActionResult Submit()
               List<Country> allcountry= new List<Country>();
               List<State> allstate = new List<State>();
               using (portalconnectionstring pc = new portalconnectionstring())
                    allcountry = pc.countries.OrderBy(a => a.countryname.ToList();
                ViewBag.CountryID = new SelectList(allcountry, "countryid", "countryname");
                ViewBag.StateID = new SelectList(allstate, "stateid", "statename");
                 return View();
                [HttpPost]
                [ValidateAntiForgeryToken]
    public ActionResult Submit(Feedback s) {
     List<Country> allcountry= new List<Country>();
     List<State> allstate= new List<State>();
     using (portalconnectionstring pc = new portalconnectionstring())
                   allcountry= pc.countries.OrderBy(a => a.countryname).ToList();
                   if (s != null && s.towerid > 0)
                        allstate= pc.states.Where(a => a.countryid.Equals(s.countryid)).OrderBy(a => a.statename).ToList();
     ViewBag.CountryID = new SelectList(allcountry, "countryid", "countryname", s.countryid);
              ViewBag.StateID = new SelectList(allstate, "stateid", "statename", s.stateid);
     if (ModelState.IsValid)
                        using (portalconnectionstring pc = new portalconnectionstring())
                            using (NpgsqlCommand pgsqlcommand = new NpgsqlCommand("ddltest", conn))
     pgsqlcommand.CommandType = CommandType.StoredProcedure;
     pgsqlcommand.Parameters.Add(new NpgsqlParameter("countryname", NpgsqlDbType.Varchar));
                            pgsqlcommand.Parameters.Add(new NpgsqlParameter("statename", NpgsqlDbType.Varchar));
      pgsqlcommand.Parameters[0].Value = model.countryname;
                            pgsqlcommand.Parameters[1].Value = model.statename;
     pgsqlcommand.ExecuteNonQuery();
                            ViewBag.Message = "Successfully submitted";
                    else
                        ViewBag.Message = "Failed! Please try again";
                    return View(s);
                [HttpGet]
                public JsonResult GetStates(string countryid = "")
                    List<State> allstate= new List<State>();
                    int ID = 0;
                    if (int.TryParse(countryid, out ID))
                        using (portalconnectionstring dc = new portalconnectionstring())
                            allstate = dc.states.Where(a => a.countryid.Equals(ID)).OrderBy(a => a.statename).ToList();
                    if (Request.IsAjaxRequest())
                        return new JsonResult
                            Data = allstate,
                            JsonRequestBehavior = JsonRequestBehavior.AllowGet
                    else
                        return new JsonResult
                            Data = "Not valid request",
                            JsonRequestBehavior = JsonRequestBehavior.AllowGet
    cshtml:
    @model mvcdemo.Models.Feedback
        ViewBag.Title = "Submit";
    <h2>Submit</h2>
    @using (Html.BeginForm("Submit","cascadedddl",FormMethod.Post)) {
        @Html.ValidationSummary(true)
        @Html.AntiForgeryToken()
        <fieldset>
            <legend>Feedback</legend>
     <div class="editor-label">
                @Html.LabelFor(model => model.countryid)
            </div>
            <div class="editor-field">
                 @Html.DropDownListFor(model => model.countryid,@ViewBag.CountryID as SelectList,"Select country")
                @Html.ValidationMessageFor(model => model.countryid)
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.stateid)
            </div>
            <div class="editor-field">
                @Html.DropDownListFor(model => model.stateid, @ViewBag.StateID as SelectList, "Select state")
                @Html.ValidationMessageFor(model => model.stateid)
            </div>
     <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>
                    <script type="javascript">
                        $(document).ready(function () {
                            $("#countryid").change(function () {
                                var countryID = parseInt($("#countryid").val());
                                if (!isNaN(countryID)) {
                                    var ddstate = $("#stateid");
                                    ddstate.empty(); 
                                    ddstate.append($("<option></option").val("").html("Select State"));
                                    $.ajax({
                                        url: "@Url.Action("GetState","cascadedddl")",
                                        type: "GET",
                                        data: { countryID: countryid },
                                        dataType: "json",
                                        success: function (data) {
                                            $.each(data, function (i, val) {
                                                ddstate.append(
                                                        $("<option></option>").val(val.stateid).html(val.statename)
                                        error: function () {
                                            alert("Error!");
                    </script>

    Please post questions related to ASP.NET in the ASP.NET forums (http://forums.asp.net ).

  • Report Builder 3.0 DropDownList and @UserID Parameter?

    I can populate a report fine using a Stored Procedure and @UserID parameter. The problem is I'm trying to populate a DropDownList with the same @UserID parameter, but the DropDownList never populates, thus the report never populates.
    Q. How can I populate the DropDownList before the actual report Stored Procedure is run?

    Hi pointeman,
    What’s the meaning of DropDownList? Are you saying the ComboBox control with DropDownList as DropDownStyle in Visual Studio? Are you want to use the ComboBox to display the @UserID parameter drop-down list? As per my understanding, I think we can directly
    add ReportViewer control to display the report with parameter drop-down list to achieve your requirement.
    For more information about how to display reports to an application, please refer to the following document:
    http://msdn.microsoft.com/en-us/library/ms252104.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Populating a Field depending on the selection of a dropdownlist in adobe fo

    Hi,
    I am not able to populate a Text Field based on the selection of a dropdownlist in Adobe forms in WebDynPro.
    Pls let me know how to do it????
    Thanks in Advance,
    Sameer

    Hi Sameer,
    There is one way to achieve this.
    You can write some javascript on event of selecting value in dropdown.
    Open your PDF form.Then goto menu "palettes" and then choose "script editor".
    Now, select your dropdwon element.
    It will show some line of scripting in Javascript of Formcalc.
    Here, you can write your JAVA script for displaying values in textview.
    If it helps then don't forget to award points
    Regards,
    Bhavik

Maybe you are looking for

  • Ethernet not working on brand new portable

    Ethernet not working. This is a new portable. Troubleshooting message: The realtek PCIe GBE family controller adapter is experiencing driver or hardware related problems. Reinstalled the driver multiple times . Reinstalled the portable to factory def

  • Keynote presentation with sound

    I made a keynote presentation with sound - uploaded it to icloud and tried to play it thru my ipad mini - the sound will not work = how do I fix this?

  • Updation of the MENGE field in the BSEG table

    SAP 4.6C The material is moved from one plant to another. The excise on the same is also moved from one plant to another via STO. The value in the GL accounts is calculated using the quantity in the STO. However when the FI posting is triggered, the

  • Getting script to stop after MC reaches x position

    working on scrolling panel and trying to get the function to stop scrolling when the last frame in one direction is the last left to be displayed so it doesn't keep scrolling infinitely off the stage. here's what I have rightscroll_mc.addEventListene

  • After 10.8.2 update my mac does not boot !

    I stay on the gray screen. With the recovery disk i try now to reinstal a frech  10.8.2 ! Thanks Apple !