Adding Drop Down List values from table fields

Hi all,
Recently we have switched from Microsoft's Infopath to Adobe's LiveCycle Designer.  In InfoPath i was able to allow a user to enter data in a table and then use that data as values for a drop downlist, which could in turn be used in another table.  Infopath made it relatively easy to do this, but I assume it requires scripting in LiveCycle.  Here is an example that make make it easier to to explain:
Let's say we have a form with a table that has a colomn where the user can enter a value in a table let's say "Computer Name":
Computer Name | IP | Vendor | Serial Number|
PC 1
---------------------| 192.168.2.34| HP | US4839494
PC 2
PC 3
PC 4
Further down the form there is a nother table with a drop down list.  I want the values of the drop down list to be what ever values were entered for "Computer Name" in the previous table.  So in this case the table would look like this:
Computer Name | Acquisition Date| End of Life Date
<Drop DownList>|  07/21/2010 | 07/21/2014
The drop downlist values would be "PC1, PC2, PC3, PC4"  or whatever values were entered in the previous table.  Essentially, I am trying to avoid from having users type in "Computer Name" data every time the "Computer Name" needs to be entered.  It would be so much easier to enter all "Computer Name" values and then use those values as part of a drop down list to avoid excessive typing.
I hope this makes sense, it is fairly easy to do in InfoPath and I am sure there is a way to do this in LiveCycle.
Let me know if my explanation is not clear enough.
Thanks!

Thanks for the feedback, but it doesn't seem to quite accomplish what I am trying to do. I've tried using global binding as you specified, but the outcome is not exactly what I want.  Perhaps this drawing can help depict what I am trying to do:
http://imageshack.us/photo/my-images/153/dropdownlist.png/
On the picture I manually defined the values for the drop down list.  Again, I want these values to be taken from "Computer Name" in the table above.
Thanks!

Similar Messages

  • Problem in sending drop down list value to jsp page showing  null value

    i am trying to send a drop down list value from client side to a jsp page but getting null value
    this is first page where i have accessed data from database and putted it in a drop down list
    <select name="sub">
         <%
         while(rs2.next())
         cat=rs2.getString(1);
         %><option value="<%=cat%>"><%=cat%></option><%
         }%></select>
    <input type="submit" value="Go"></input>
    now on submit i am going to another page
    where i want the selected value from drop down list to be printed
    i have used there
    <%
    String subject= request.getParameter( "sub.value" );
    out.println(subject);
    %>
    but it is printing null here what is the problem that i m facing
    thanx & reagrds
    sweety

    how to generate dynamically names for text boxes
    i am generating text boxes in while loop when selecting data from database
    while(rs1.next())
    name=rs1.getString(1);%>
    <tr>
    <td>1</td>
    <td><%out.println(name);
    //i am printing here stud_id a unique key and want to update records from following text boxes to particular stud_id
    %></td>
    <td><input type="text" name="????"></input></td>
    <td><input type="text" name="????"></input></td>
    <td><input type="text" name="????"></input></td>
    <td><input type="text" name="????"></input></td>
    </tr><%
    the structure is like
    stud_id | attended theory | conducted theory | ateended practical | conducted practical
    where attended theory, conducted theory............. are to be inputed manually for all students and then update in database
    so i am facing problem in generating names for textboxes how to do that
    so that those can be updated in database for particular student
    Thanx & Regards
    sweety

  • How to modify drop down list values of a screen field in UDM_DISPUTE?

    Hi All,
    I have a requirement wherein i need to modify the drop down list for a screen field depending on the value of the other screen field in transaction UDM_DISPUTE. 
    Please suggest how this can be achived.
    Any BADI 's or any other approach is available?
    Thanks in advance,
    Srilakshmi.

    Hi,
    At what time do you want to modify the drop down list, while creating or after creating the dispute case. There are some BADI's where we can change the attribute drop down list values.
    Thanks,
    Sunil

  • Drop Down List in a table - different options for each row

    How can i have a drop down list in a table with different options for each row?
    My requirement is this.. I want to display, say employee dtails in a table, and one column is employee hobbies, whcih can have multiple values and each employee may have a different list of hobbies. So how can we populate the drop down for each row, with different options?

    Hey. Uh, this probably isn't the answer you were looking for, but it sounds like you've got a problem with your database design there. Generally speaking, your tables shouldn't have multi-valued fields, in the relational model anyway (sql). Instead, you should look at adding a separate table like EMPLOYEE_HOBBIES. Then you have a foreign key using the employees primary key as the foreign key in the employee_hobbies table, see what I mean? I might have misunderstood your explanation though, I'm not sure.
    Alternatively, you could just have hobbies as a big freeform varchar field, and don't bother to make people separate their hobbies into different fields (you'd have to abandon the drop-down listbox idea in this case). If there's no really important reason to make the distinction, then it's probably easier just to not do it.

  • Change values of drop down list when other drop-down list value is clicked

    Hi Gurus,
    I look for my requirement very much but I can't find. I think it must be very simple but I can't do it, please help :
    I have to custom added fields. Both of them is made drop-down list by picklist defined in GET_P...methods.
    When I click and select a value from the first drop-down list, I want that second drop-down values are fully changed, depend on what I select in the first list. If I select my value and press enter in the first drop down box, I can do my requirement with GET_V...method. But if I don't press enter, the values of second list doesn't change, they remain same. I want exactly that when I click and select a value from first drop-down list, second drop-down list values are automatically change, dependent on what selected. Do I have to define and event?? where and how, please help me..

    Hi,
    You must have created the field as a dropdown using the below code in the get_p method.
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter~fp_fieldtype.
            rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.
      ENDCASE.
    Here you need to add the below lines of code along with the previous code. for the first dropdown value
      IF iv_property =  if_bsp_wd_model_setter_getter=>fp_server_event.
        rv_value = 'DDLB_CLICK'.
      ENDIF.
    This would refresh the screen when the user selects any value from the dropdown.
    Regards,
    Radhika

  • How to show "ALL" Values by default in Page Drop-Down Lists in Pivot Tables

    Hi Everyone,
    Iam stuck with 1 problem please can any 1 help me if u know the solution.
    Here is my problem:
    How to show "ALL" Values by default in Page Drop-Down Lists in Oracle BI Pivot Tables?
    For example, if you place Region in the pages area, a Region drop-down list allows the user to select a particular region, and see the data for only that region, rather than seeing all the Regions,But by default its not showing "ALL" option in the drop down list ,rather than doing that its showing result for only 1 region by default.
    And an other problem with this pages area is, if we palce the multiple attributes in the Pages area in the pivot table, the (Fields)result is showing in vertically, the attributes 1 by 1(Every attribute in a new line) ,rather than showing like that, is there any way to show the results in horizantally?(We want to have it as a seperate drop drown list for every field horizantally not as a concatenated list).

    Thanks Nikhil. But I am fetching the values from the LOVCache.java.
    I am using <af:selectManyChoice>. Is there any way I can use LOVCache.java value for selecting default values instead of hard coding?
    I mean to say can I write
    unselectedLabel="#{LOVCache.entityTypeSelectionList.anyValue}"
    where LOVCache.entityTypeSelectionList is used to populate the drop down box.
    Regards,
    Aseet

  • How to populate data from dynamic drop down list to the text field

    Hi,
    I tried to populate data from dynamic drop down list to city field. I would like to concat data from drop down list.When selecting add button to add the item and select item from drop down list, data should be displayed in the text field. However, Please help. I spent alot of time to make it works I am not successful.
    Please see the link below.
    https://acrobat.com/#d=SCPS0eVi6yz13ENV0cnUdw
    Thanks for your help
    Cindy

    Hi Rosalin,
    Loop the hidden table, get the values and populate drop down in each iteration.
    DropDownList1.addItem("Text","Value");
    You can use one more solution for this scenario. If it is a matter of 2,3 dropdowns, put three dropDowns in the form layout and give seperate static data binding to them. At run time make the dropDowns hide/visible as per the requirement.
    Hope this helps.
    Thanks & Regards,
    Sanoosh

  • Dynamic table with dynamic drop-down list values

    Hi,
    I need to display a dynamic table with 2 columns on an interactive form.
    My Context is defined as below:
    Root
    StudentData     0..n
    StudentName
    StudentCourses     0..n
    Text
    Value
    The 1st column should display student name, 2nd column should display student courses. The courses will be different for each student. I populated the context properly. I checked it by printing them. My DDL is bound to "Student Courses".
    When there is one row -> The DDL is populated with the courses of student 1 (as there is only one).
    When there are more rows -> The DDLs for all the students are populated with all the courses of all the students.
    I want to see the data populated like:
    TEXTFIELD    DROP-DOWN LIST
    Student 1------Student1-Course1
    Student1-Course2
    Student1-Course3
    Student 2------Student2-Course1
    Student2-Course2
    Student2-Course3
    I tried to do this in plain web dynpro using SVS.. it is also working similarly.
    I have set the singleton property of nodes "StudentData" and "StudentCourses" to false.
    Could any one tell me where I am going wrong?
    Thanks
    Ram

    Ram,
    I'm not sure how much this will help, but I know I had the same problem as you when I tried to get a similar thing working, but I can't remember which of the many changes I made fixed the problem, so I'll just show you my code and perhaps you can see if anything is different than yours.
    Here's where I'm creating my dropdown - in my case EastNew_RegOut is the same as your StudentData, and RateTypeDropValues is the same as your StudentCourses (the comments in the code are not meant to sound bossy to you, this is actually an example piece of code that other developers in my company "steal", so I have to put very specific instructions in there!):
    int nodeSize = wdContext.nodeEastNew_RegOut().size();
    for (int i = 0; i < nodeSize; i++) {
         //create an element called "table", that's the element at i.  So, basically it's a row.  Maybe I should have
         //called it "row" instead of table.
         IPublicDeviceExchange.IEastNew_RegOutElement table = (IPublicDeviceExchange.IEastNew_RegOutElement)wdContext.nodeEastNew_RegOut().getElementAt(i);
         //this line of code just executes an rfc that finds out what rates need to be in the dropdown for this particular row
         executeRateTypeDropdown(rateCategory, table.getNum(), wdContext.currentEastNew_MeterOutElement().getReggrp());
         //clear out what's already in there before we re-populate it.
         table.nodeRateTypeDropValues().invalidate();
         //now, I'm looping through all the values in the *actual* rate type dropdown (the one that's an RFC, populated by the above "execute" method)
         for (int j = 0; j < wdContext.nodeEastRatetype_DropdownOut().size(); j++) {
              //for each element in the *actual* Rate type dropdown, I'm going to create an element in my node that I created
              //and set the values from the *actual* one as the values in my node.
                        IPublicDeviceExchange.IRateTypeDropValuesElement element = wdContext.createRateTypeDropValuesElement();
              IPublicDeviceExchange.IEastRatetype_DropdownOutElement rateTypeOut = (IPublicDeviceExchange.IEastRatetype_DropdownOutElement)wdContext.nodeEastRatetype_DropdownOut().getElementAt(j);
              element.setText(rateTypeOut.getText());
              element.setValue(rateTypeOut.getRatetype());
              //here's another key - notice how I don't say wdContext.nodeRateTypeDropValues() - it's the one that's
              //directly off that table I created earlier - the thing that's essentially a row in my newReg table.
              //So, what I'm doing here is adding that new element I created to the dropdown FOR THAT ROW!               
              //(btw, if you're trying to duplicate this, and this method does not exist for your "table" object, it's
              //probably because you didn't listen to me above and you didn't create your node with the singleton property
              //set to false.)
              table.nodeRateTypeDropValues().addElement(element);
    As for my layout... my table is bound to the EastNew_RegOut node, and the column with the dropdown is bound to RateTypeDropValues.Value  (that's probably obvious, but there you have it anyway)
    Finally, in my context, EastNew_RegOut is singleton = true (I was surprised about this, actually, I would have assumed it was false) with a selection of 0..1 and RateTypeDropValues has singleton set to false with a selection of 0..1
    I hope that helps to some degree!
    Jennifer

  • The drop down list values want to vary based on the contents of another drop down field

    hi,
    hi in search page i have two drop down list. i have two tables and one mapping tables. service line and subservice line are tables and i have one mapping table. using rapid application i create one component using mapping table. now in search page i have two drop list. one is servline and another is sub serviceline. in service line i have values like 1,2 k  for subservice 3,4.5,6 for one service line ex. for 1 i have two subservice 3,4 and for 2 i have 5,6. now my requirment in if i choose service line 1 in first drop down list, automatically in second drop down list want to contain values 3, 4. before both the drop down list have values.if i chose one value the correponding mapping value want to come in drop down list in same context node.

    Hi,
    This requirement involves defining p-getter for the service type, and the v-getter of you sub type.
    Since this involves to populate the values of subtype attribute depending on value of service type, u need a round trip.
    This is done in the p-getter of the 1st attribute(service type in your case).
    In the v-getter of the 2nd attribute, 1st fetch the current value of attribute 1, then filter the value in the dropdown table according to ur logic.
    Ref :Drop down values in table view
    Regrads
    Anish

  • Help needed in Drop down list value input

    Hi experts,
    My problem is, I added a field on a screen as a drop down list box and passed all the values to it. Everything is fine. But I need to display the field like if there are no input values to be used by the user, the user should be able to enter some value manually which is not in the list. I'm unable to get this facility. Plzz Help me out.
    It's really urgent. Points will be rewarded to the solution.

    hi ,
    Here is a sample of code for creating a dropdown list in screen painter , and this has got the solution of your question :
    module create_drop_down_box_material output.
      select matnr from mara
               into table l_tab_mara_matnr
               where matkl = 'ZPMBMAT'.
      if not l_tab_mara_matnr[] is initial.
        select maktx from makt
                     into  l_tab_collect_maktx_frm_db-material_descr
                     for all entries in l_tab_mara_matnr
                     where matnr = l_tab_mara_matnr-material_no.
          append l_tab_collect_maktx_frm_db.
        endselect.
      endif.
      loop at l_tab_collect_maktx_frm_db into l_wa_collect_maktx_frm_db.
        l_wa_mat_descr-key = l_wa_collect_maktx_frm_db-material_descr.
        append l_wa_mat_descr to l_tab_mat_descr.
      endloop.
      name = 'ZCOT_PPT_DTLS-MATERIAL_DESCR'.
      call function 'VRM_SET_VALUES'
        exporting
          id              = name
          values          = l_tab_mat_descr
        exceptions
          id_illegal_name = 1
          others          = 2.
      free: l_tab_mat_descr,l_tab_collect_maktx_frm_db.
    endmodule.                 " create_drop_down_box_material  OUTPUT
    Regards,
    Ranjita

  • Dynamic Drop-Down list in a table row or subform

    Hi,
    I need to display multiple drop-down list elements dynamically. Each of these DDLs will have different values.
    For example:
    The table will have 2 columns (Student Name text field and Courses drop-down)
    Row 1: Student 1 & Courses of Student1 in DDL
    Row 2: Student 2 & Courses of Student2 in DDL
    When I execute my app, both the drop-downs (i.e. for both the students) are displaying all the courses of all the students. I tried a lot with binding options..
    $record.Students[].Courses[]
    is refering to all elements of the node. If I use the index 0 for Students node, I am getting 1st element rows.. if I use 1, I am getting 2nd element rows,,,
    But How can I set the binding so that Row 1 has only Student 1 courses and Row 2 has Student 2 courses?
    IS THERE A WAY TO DYNAMICALLY SET THE BINDING USING JAVASCRIPT?
    I tried with tables, subforms.. it is not working. It is working fine in plain web dynpro table but not in an interactive form. I am using NW 2004s SP11, Web Dynpro Java. LiveCycle Designer 7.1, Adobe Reader 7.09.
    There are some other posts talking about similar issue.. I tried the solutions mentioned there as well, but nothing worked.
    I would really appreciate if any one can provide a solution or pointer to my problem.
    Thanks
    Ram

    Hey. Uh, this probably isn't the answer you were looking for, but it sounds like you've got a problem with your database design there. Generally speaking, your tables shouldn't have multi-valued fields, in the relational model anyway (sql). Instead, you should look at adding a separate table like EMPLOYEE_HOBBIES. Then you have a foreign key using the employees primary key as the foreign key in the employee_hobbies table, see what I mean? I might have misunderstood your explanation though, I'm not sure.
    Alternatively, you could just have hobbies as a big freeform varchar field, and don't bother to make people separate their hobbies into different fields (you'd have to abandon the drop-down listbox idea in this case). If there's no really important reason to make the distinction, then it's probably easier just to not do it.

  • Beginner Problems - How to sum drop down lists in a table

    Hi,
    Please forgive my newness but I'm creating a table with 10+ rows and columns and need to sum the colums. The user is expected to select a number from a drop down list and I would like to sum those nbumbers up at the bottom of the column, seems simple enough...
    I have named each cell in the bindings tab but can't seem to find the right sum script. I just started using livecycle and have had a good experience up until now.
    I wish it was like excel where you just need to click or highlight the cells you want to sum and be done with it but I can't seem to find the easy button...
    Cant you just highlight a column, name it and then use that name in a sum script?
    Thanks so much for any help and I've looked around but can't get a grip on this one so I apologize if it's been asked before.
    Go easy on me.

    One last thing.
    I can manage this one on my own but it's taking so long to do it the way I'm going at it.
    Basically, I've overpopulated most of my drop down list items, some by over 100 and I'd like to restrict the results that can be chosen by the user.
    Right now, I'm deleting each value in the List Item field in the cell tab one by one but I have a lot more to go and this could take a few hours at this rate. Is there no way for me to just highlight a large chunk and remove it that way or do I have to go one by one clicking the delete button? I can't find any option to delete more than one at a time which seems odd.
    Sorry if I'm not clear enough.
    Thanks again either way.
    ~OK~
    I just ended up copying a new cell to each overpopulated cell and rename. Seems to have worked and definitely saved some time, kind of obvious I suppose... but would be nice to be able to delete more than one item at once in the list item field.

  • Adf drop down list in adf  table

    hi all
    i m trying to create a data table that have a column on it as drop down list ,the list get the value good as bind variable passed to it and work good when create a new record but when i try to update the record
    always get this error
    <Utils><buildFacesMessage> ADF: Adding the following JSF error message: java.lang.ArrayIndexOutOfBoundsException
    oracle.jbo.JboException: JBO-29000: java.lang.ArrayIndexOutOfBoundsException
    and when i try to print the value of the list it print the index not the value
    when i change it(the drop down list) to lis of value LOV it didnt git any record in the LOV
    my code is :
    <af:column headerText="#{bindings.DeptLabView3.hints.CntPc.label}"
    id="c4">
    <af:selectOneChoice value="#{row.bindings.CntPc.inputValue}"
    label="#{row.bindings.CntPc.label}"
    required="#{bindings.DeptLabView3.hints.CntPc.mandatory}"
    shortDesc="#{bindings.DeptLabView3.hints.CntPc.tooltip}"
    id="soc3">
    <f:selectItems value="#{row.bindings.CntPc.items}"
    id="si4"/>
    </af:selectOneChoice>
    </af:column>
    please any one help
    Edited by: user554540 on 20/02/2010 08:50 ص

    Hi,
    I would like to use selectOneChoice in af:table, but i've got error: "java.lang.ArrayIndexOutOfBoundsException, msg=0"
    Can u send me an example for using selectOneChoice in af:table?
    Thanks,
    J.
    <af:column headerText="#{bindings.viewTsheets1.hints.ProjectId.label}"
    id="c8">
    <af:selectOneChoice value="#{row.bindings.ProjectId.inputValue}"
    label="#{row.bindings.ProjectId.label}"
    required="#{bindings.viewTsheets1.hints.ProjectId.mandatory}"
    shortDesc="#{bindings.viewTsheets1.hints.ProjectId.tooltip}"
    id="soc2">
    <f:selectItems value="#{row.bindings.ProjectId.items}"
    id="si2"/>
    </af:selectOneChoice>
    </af:column>
    -----------------------------------------------------------------------------------------------------------------------------------------------------------

  • Why won't my drop down list populate from the array?

    I am using the following array. 
    var actDesc = new Array(" ",
    "Desc1 ",
    "Desc2 ",
    "Desc3 ");
    // Array of HUD Activity Numbers.
    var actNum = new Array(null,
    "1 ",
    "2 ",
    "3 ");
    // This populates the Description Drop-down List and works just fine.
    function populateActDesc(dropdownField)
          var i;
          for (i=0; i < actDesc.length; i++)
             dropdownField.addItem(actDesc[i]);
    //This is supposed to populate the Description Number Drop-down List but doesn't work.
    function populateActNum(dropdownField)
          var i;
          for (i=0; i < actNum.length; i++)
             dropdownField.addItem(actNum[i]);
    // Populates another field based on the Description Field value chosen and works as intended.
    function getDesc(hudActivityDescription, hudActivityNumberField)
       var i;
       for (i = 0; i < actDesc.length; i++)                
          if (actDesc[i] == hudActivityDescription)        
            hudActivityNumberField.rawValue = actNum[i];        
       break;               
    I placed the following into the drop-down list object holding the actDesc array (Event: initialize; Language: javascript):
    actNoScript.populateActDesc(this);
    This works just fine.
    I placed the following into the drop-down list object holding the actNum array (Event: initialize; Language: javascript):
    actNoScript.populateActNum(this);
    This doesn't work.  Any ideas?
    Any help would be greatly appreciated.  I am using LCD 8.2 ES on Vista 32bit.
    Thanks,
    Jerald

    Hi Jerald,
    You can't assign null to the display value of a drop down control.  If you change the HUD activity number array to remove the null it should work. 
    That is;
    // Array of HUD Activity Numbers.
    var actNum = new Array("  ","1 ","2 ","3 ");
    Bruce

  • Drop Down List Box from an Array?

    I have an array - a lovely little 1-dimensional array of customer last names - that I want to display in a drop down list box so my user can begin to type a value in that list box and CF will bring up the matching entry.
    I have tried cfloop and cfselect, but haven't had any success. Once the user clicks on a name, I want to be able to take that value and do some other processing.
      Any suggestions?

    No Ajax - CF is a ***** enough as it is.
    OK - I see where you started to go with your link, but lost you somewhere in Step 2.
    I like the idea of a master query with sub queries off of it (Queries of Queries).  Here's what I got so far:
    <cfquery 
    name = "MasterMemberQuery" datasource = "cfissues">
            SELECT *  FROM Members  
            ORDER BY LastName</cfquery>
      <cfquery  name = "LastNameQry" dbtype = "query">
         SELECT MemberID, LastName  
         FROM MasterMemberQuery  
        ORDER BY LastName</cfquery>
    This worked perfectly - nice cfselect to display the last names - just like before.  However, I still cannot capture the user's choice from the cfselect statement:
    <cfform> 
          <cfselect name = "ChosenLastName"  
                        query = "LastNameQry"  
                        value = "MemberID"  
                        display = "LastName"  
                        size = "1">  
         </cfselect>
         <cfoutput>
                   The chosen MemberID = '#LastNameQry.MemberID#'
         </cfoutput>
    </cfform>
    The name "ChosenLastName" is always labelled as invalid, and the cfoutput always gives the MemberID of the first entry in the LastNameQry, never the user's choice. 
    I need to take the user's choice of last name, capturing the MemberID (the value attribue of the cfselect) and read the MasterMemberQuery to get just the single member's data.
    And is it me or does this forum's site run at about 300 baud?????

Maybe you are looking for

  • A big cup of "zip it" or the definative final P67 vs X58 answer thread

    none of this will matter in 6 months however until then... this should be a sticky 2600K, Motherboard, 16gig ram $711 990x, motherboard, 12 gig ram $1408  24Gig ram $1552 why the 990x? its the only processor that can match or beat the 2600k either st

  • Pls answer the following questions:

    Hi friends, Please let me know the answers to the following abap questions: 1. To link the loop to a table contro, we use the additon WITH CONTROL else this works as a stand-alone ___________________. 2. TCODE to check for the consistency of workflow

  • Error while translating message to native format

    Hi, I am getting the following error. file:/D:/product/10.1.3.1/OracleAS/bpel/domains/default/tmp/.bpel_BPELProcess_Wait_1.0_f424c58781ab2927050a79384d0d7535.tmp/writeName.wsdl [ Write_ptt::Write(opaque) ] - WSIF JCA Execute of operation 'Write' fail

  • FTP Permission

    Dear Friends we have a windows server 2008 R2 that installed FTP Site in the IIS and Assign some files and folders to this FTP Site. when we want set permission to it for user access , only we have read and write permission in IIS for users. if we se

  • Change the font of a selected text

    First of all sorry for my english because i'm spanish. I'm doing a simple text editor 100% compatible with all the web browsers. The editor must to have the option of change the font of a selected text. I don't know how to do this. Thank you.