Populate Combo Box field into another field

I've got a form (form1) based off a table (table1).  In the form I have a field from table1 called
bagtype that is a combobox type field with a row source from another table with two fields that show up in the drop down box when selected.  When I select a field from the dropdown box only the first field populates the actual form field
(and underlying table) which is what I want.  What I'd also like to happen is the second field of the combo box that doesn't populate the bagtype field is for it to populate another field (from table1) on the same form and store that
value in the underlying table as well.  The other field in the form is called
AStd.   
TAK

Hi,
you need 1 line of VBA code in the AfterUpdate event of the combo box:
Me!NameOfTheTargetFieldOrControl = Me!BagType.Column(1)
The column index is zero based i.e. 0 = first column of the combo box, 1 = second column etc.
cu
Karl
Access FAQ (de/it): donkarl.com
Access Lobby: AccessDevelopers.org

Similar Messages

  • Combo box in JavaScript and store the combo box values into database

    i am a developer, i have a task ie.. i have combo box in JavaScript and i have to store the combo box values into database through JavaServerPage..
    i please every one to have a look on this and please reply soon....

    dear sir,
    your suggestions are really greater the god.............
    i have applied as you said , now i am the page as updated and also i nform you that its multi select ....
    i will show the codings , then u will get a clear identification
    <script language= "JavaScript">
    <!--
    function one2two() {
        m1len = m1.length ;
        for ( i=0; i<m1len ; i++){
            if (m1.options.selected == true ) {
    m2len = m2.length;
    m2.options[m2len]= new Option(m1.options[i].text);
    for ( i = (m1len -1); i>=0; i--){
    if (m1.options[i].selected == true ) {
    m1.options[i] = null;
    function two2one() {
    m2len = m2.length ;
    for ( i=0; i<m2len ; i++){
    if (m2.options[i].selected == true ) {
    m1len = m1.length;
    m1.options[m1len]= new Option(m2.options[i].text);
    for ( i=(m2len-1); i>=0; i--) {
    if (m2.options[i].selected == true ) {
    m2.options[i] = null;
    //-->
    </script>
    <form method="POST" name="theForm" action="update.jsp">
    <table bgcolor="white" border="1" cellpadding="5" cellspacing="2" align="center">
    <tr><td align="center">
    <select id=menu1 size=10 multiple>
    <option>javascript</option>
    <option>php</option>
    <option>Zeo</option>
    <option>asp</option>
    <option>jsp</option>
    <option>ajax</option>
    <option>struts</option>
    </select>
    <p align="center"><input type="button" onClick="one2two()" value=" >> "></p>
    </td><td align="center">
    Languages you know:<BR>
    <SELECT NAME="language" multiple>
    <OPTION VALUE="c">C
    <OPTION VALUE="c++">C++
    </SELECT>
    <p align="center"><input type="button" onClick="two2one()" value=" << " ></p>
    </td></tr></table>
    <center><input type="submit" value="update"></center>
    </form>
    <h4><u>Back<h4>
    <script language= "JavaScript">
    var m1 = document.theForm.menu1;
    var m2 = document.theForm.language;
    </script>
    </body>
    </html>

  • Populate Combo box  from recordgroup

    I made a procedure to Get the values for a combo box these procedure send the values to another procedure that create a recordgroup and populate the recordgroup and the list. I'm not having errors at compilation time but the list is empty and I have values entered. What would it be.

    Eunice,
    did you call populate_list('<user_list>',<recordgroup>) ?
    Please provide code snippets.
    Frank

  • Populate Combo box on runtime

    Hi all,
    Please help me to populate a combo box on runtime.
    vcclient_no:=FK_SPLIT(vcBuffer);
    vcpol_ref:=FK_SPLIT(vcBuffer);
    vcmake:=FK_SPLIT(vcBuffer);
    vcmodel:=FK_SPLIT(vcBuffer);
    vcchassis:=FK_SPLIT(vcBuffer);
    i need to populate the values in these variable to a combo box.

    There is a built-in called ADD_LIST_ELEMENT, this will help you.

  • MS Excel/VBA: Querying DB to populate combo boxes

    Hi.
    I am trying to populate five different combo boxes.
    They are in an order of importance - market, product, duration, trade period description and trade date. Therfore, if a user selects a different market, then all of the other combo boxes should automatically update to show, for example, only the products which operate in that market should be visible, and this should be iterated all of the way down the other three combo boxes.
    I have written code for this to happen so the query for product only includes those for that market.
    However, when I use the ListFillRange to select all of the available products and populate the combo boxes an error occurs sometimes stating "Application-defined or object-defined error". It highlights the .Refresh BackgroundQuery:=False line.
    Is there a better way to go about completing this task?
    Thanks, Dan.

    Sometimes I've seen this in access with form, where the database data has either something line a linefeed character or a load of spaces before the actual
    text eg " text" in which case the
    columns in the control will be too narrow.
    You could try udjusting your coulumns width in its control
    You might need to loop through each item in the cotrol and adjust using say
    the MID() function or the TRIM() function.

  • How do you use the combo box to populate a text box

    I am a beginner when it comes to Java Script.  I have viewed many different discussions, look at a lot of "help" articles dealing with Acrobat 9 and Java Script, but only to be left confused and dazed.  I am hoping someone will be able to tell me how to write a script that will populate a text box that is on my form with the combo box selection's export value...
    Thanks

    If you want the text box to be read-only, just set it up with the following custom calculate script:
    // Set this field value to the value of the combo box
    event.value = getField("combo1").value;
    but replace "combo1" with the actual name of the combo box field.
    If you want something else, post again with more information.

  • SelectOneChoice to populate an InputText field

    I am using JDeveloper 10.1.3 and ADF, and I would like to have a DataBound SelectOneChoice dropdown list populate the selected value into another InputText field in the form. The destination is just a plain InputText field.
    From what I can see, the result of the selection HAS to go into some Base Data Source field, but that's not what I want to do. Is this not possible or is there another way to allow someone to populate a field from a dropdown list.
    Thanks.
    Andy

    Are you using ADF BC in the back end? Would it help if you added a transient attribute to the VO (ie one which is non database) and then you could simply return the value from the list into that (and so use the existing binding dialog?)
    Alternatively check out this.
    http://groundside.com/blog/GrantRonald?title=conditional_rendering_of_jsf_fields_depe&more=1&c=1&tb=1&pb=1
    You just need to do the first part of this example...i.e. create a proxy bind variable and return the value from the drop down into the bind var and then display this bind var in a text field on the page.
    Regards
    Grant Ronald

  • Combo box or similar where more than one selection can be made

    Hi. I need to create a combo box field or similar where more than one selection can be made. Does anyone know if this is possible? I know this can be done with the check box tool but the client wants a drop down box. Thanks in advance.

    I don't quite understand some of this but of course you can bind more than one object into the RMI Registry. If you use different names the clients will use the object corresponding to whatever name they looked up. If you rebind different objects to the same name, the clients will use the object that was there at the time they did the lookup.
    Clustering is a problem for RMI/JRMP because stubs are not location-transparent: they refer to the originating JVM. If you need this kind of functionality I would use RMI/IIOP and do some CORBA magic in the ORBs at both the clustered servers. CORBA references are location-transparent so a service can be logically 'moved' from one JVM to another.

  • Problem pre-populating a combo box

    Hello,
    I am having problems pre-populating a combo box from a process.
    This combo box field exists in the OIM User Form and in another process form.
    Both combo box fields are populated from the same Lookup Definition: Lookup.Jazztel.TipoDeDocumento which looks like this:
    Code Key Decode
    1      DNI (NIF)
    2     Pasaporte
    4     Visado
    6     Nº Identificación de Extranjero
    9     C.I.F.
    I've tried these methods to pre-populate the combo box:
    * Using an adapter with a SET VARIABLE Logic Task (this adapter returns the code key that is selected in the OIM User form).
    * Using an adapter that returns the decode field from the code key and pass it to the Process combo box.
    In these cases, the process form combo box is not pre-populated correctly. It always shows C.I.F.
    I tried modifying the combo box in the following way:
    Code Key Decode
    DNI (NIF)      DNI (NIF)
    Pasaporte      Pasaporte
    Visado     Visado
    Nº Identificación de Extranjero Nº Identificación de Extranjero
    C.I.F. C.I.F.
    and it get pre-populated correctly.
    I need the code keys to be numbers. Does anyone know how can a combo like this be pre-populated?
    Moreover and curiously, the process form combo box appears ordered alphabetically (according to the decode fields):
    Code Key Decode
    9     C.I.F.
    1      DNI (NIF)
    6     Nº Identificación de Extranjero
    2     Pasaporte
    4     Visado
    and the OIM User Form Combo box, appears ordered numerically (according to the code key numerical order):
    Code Key Decode
    1      DNI (NIF)
    2     Pasaporte
    4     Visado
    6     Nº Identificación de Extranjero
    9     C.I.F.
    Does anyone know why?
    Thank you very much

    Try prepopulate combobox by lookup code.
    But it must displayed as decode.

  • In edit mode, can't select specific options in combo box

    I need to edit options in a combox box.  When I click on the option I want to edit, it's actually reflected in the combo box, but the option I selected doesn't stay highlighted for editing. The highlight jumps to a different option. This is consistent, but not all options jump.  I can't edit many of the options. Using Acrobat 9 Pro.
    Any suggestions? 

    try67 says..."It's not necessary to use Acrobat 5 to edit form fields. Acrobat 9 can do it just fine."
    For the most part, A5 and A9 field editing process is the same.  Editing the combox box properties is EXACTLY the same. Open the combo box field properties, select the options tab. Click on the option you want to change. The text shows up in the upper window. Edit the text. Save the edited option. It goes to the bottom, Then run it up to where it goes in the list and delete the prior option.   In Acrobat 9 (on two machines in our office) the item you click on does not stay selected. The job at hand has a list of 33 options, some stay selected, some do not and are impossible to select...even to delete.
    In Acrobat 5, this same process works perfectly.
    I'm quite sure that anyone serious (aka trying to make money) about Acrobat production keeps a copy of A5 on hand.  Try setting tab order in V9 on a 900 field form that requires a mix of column and row ordering. Then go to the window at the left and pick a field and try to run it up to where it goes. The window doesn't even scroll.  You have to set your field down, scroll the window and pick it up and go another jag. And then, scroll back down and try to find your place to pick up the next field. In A5, you simply click the fields on the form in the order you want them.  10 minutes vs. 2 hours.
    This is not "just fine".

  • To filter data in two dates using combo box component

    Hi,
    I have a requirement like, i need to filter data in chart between two dates from two combo box.. From combo_box and To combo_box.
    I am using one QaaWS to populate LOV's into Combo box's and another QaaWS for chart data. Universe is the same one on SAP  BI query.
    LOV's are populating into both combo's and chart as well, i used a query refresh button after choosing two dates and press button.
    Data is not reflecting as per the choice of dates.
    If any one have such scenario, request you to share the same....
    Thanks in advance...
    Raj..

    Problem is with ranges, not with dates, my data is working fine with CALDAY (in BI Query)....
    My query variable is on FiscalPeriod month, like "FEB 2011"  to "OCT 2011" and is optional, but it is fails in QaaWS to execute when i try to input any months.
    If we give default values in BI query format is like K4/010.2011 for october month. QaaWS doesnt fail and executes, but if i change any value in QaaWS it is taking as "OCT 2011"
    And in Xcelsius it is not recognizing eaither of the formats like, K4/010.2011 or "OCT 2011"
    the format is not matching with xcelsius.

  • Cany you link a combo box to a submit form button?

    This question pertains to Adobe Acrobat 9 Standard.
    On my form, I have a combo box that lists 5 names and a button that I want to use to submit the form via email. 
    Based on the combo box selection, I want the submit button (when pressed) to submit the completed form directly to the email address that corresponds to the name selected.
    Is there a way to do this?
    Any help will be greatly appreciated!

    The Industry combo box contains the following keystroke script:
    // Custom Keystroke script for combo box
    (function () {
    if (!event.willCommit) {
    // Set up an array for arrays of industry corresponding to export values in this combo box
    var aIndustry = [];
    aIndustry[0] = ["--"]
    aIndustry[1] = ["Jen H"];
    aIndustry[2] = ["Al M"];
    aIndustry[3] = ["Steve T"];
    aIndustry[4] = ["Al M, Jen H, Steve T, Glen P"];
    aIndustry[5] = ["Al M"];
    aIndustry[6] = ["Al M"];
    aIndustry[7] = ["Steve T"];
    aIndustry[8] = ["Jen H"];
    aIndustry[9] = ["Glen P"];
    aIndustry[10] = ["Al M, Jen H, Steve T, Glen P"];
    aIndustry[11] = ["Steve T"];
    aIndustry[12] = ["Al M"];
    aIndustry[13] = ["Jen H"];
    aIndustry[14] = ["Jen H"];
    aIndustry[15] = ["Al M"];// Get the export value of the selected item
    var ex_val = event.changeEx;
    // Populate the combo box field with the industry
    getField("BD Executive").setItems(aIndustry[ex_val]);
    When one of the 15 industries are selected, the Executive field automatically populates with one of four names (or, in two instances, all four names).
    Let's say I choose Construction as my Industry.  The Executive field automatically has Jen H's name.
    When the form is complete and I click the Submit Button, I want it to submit the form by e-mail directly to Jen H.
    So do I have to enter a script somewhere within the Executive field or the Submit Button field?
    Please excuse my ignorance.  I'm very, very new to this.
    Thanks again for everything!!!

  • Combo box in form manager

    Hi!
    I've made a form in Designer 8 with combo box, tested it (everything was ok) and than upload it to form manger. And here the problem beggins. When I'm writting something in combo boxes field it looks like there wasn't any or sometimes I can write only 10 letters when the Combo Box was set up for 11. Why is that? I want to use Combo Boxes. Is it a bug of FM? Thanks.

    VC,
    Have you had a chance to add an example? I checked your application and could not find the combo box in tabular form.
    Robert
    http://apexjscss.blogspot.com

  • LOV's in form combo box - how to change font size?

    Greetings:
    I've a table generated form (custom vs. tabular), with a combo-box field that fills with a LOV's that has as it's visible data, a rather long concatenated string. Therefore, this field makes the entire form rather wide when the LOV's contains a long string (as returned from the SQL that gathers the data).
    I've tried using the FONT tag in the 2nd tab (Form wizard) for custom layouts; that didn't work.
    Anyone have ideas for decreasing the font size of the LOV's? Else, I'll have to leave-out some of the info concatenated on that string.
    As always, thanks for you continued guidance and support...
    Ed in Tampa

    Hi,
    Changing the font size and other properties like font color, width, height, etc.. of the form elements can be achieved by using Cascading Style Sheet (CSS).
    It cannot be changed using <FONT> tag.
    In Portal, one can add the CSS attribute to the HTML tags in the custom layout of the form. But adding the CSS attribute to FORM elements (Input, select..)is not possible through Form wizards.
    However, this can be achieved by creating a form through the Dynamic Page. In this case you have to define your whole form.
    To know more about CSS you can visit: http://www.mako4css.com
    Thanks,
    Shivank

  • Combo box internationalization

    I'm trying to brainstorm ways that I can design my application so that I have the benefits of a drop down / combo box list and free form text entry while at the same time being as globalization ready as possible.
    I like the feature in some combo boxs where the end user may select a choice from a list but may also type in entry values that doesn't exist in the predefined list. On the other hand, I would like the predefined list to be properly localized for different target audiences - for example, if the combo contains a list of cities, I'd want the same entry to refer to the city Venice in English as Venice but as Venezia in Italian and Venise in French.
    One way of approaching this problem is two have two fields: a combo box that prohibits users from free form entry (but has a list of most choices) and a second text field that a user types in if they can't find the desired value in the combo box. The combo box entries would be stored in an locale-independent or consistent way in the data store while the display would change depending on the user's selected locale. (Unfortunately, the contents of the text box would not be in any way localized).
    Can anyone think of other ways to accomodate the goal of having a list of some sort (not necessarily a combo box) that allows user entry while at the same time most entries are stored in a locale independent way (so that they can be easily localized)?

    That's true - I didn't specify what type of combo box it is. That was intentional, as I'm open to anything that will get the job done. I have to admit to not knowing a lot about the JComboBox control but I've read the Java Swing Component Tutorial on Combo Boxes (and specifically the JComboBox) and I can see what you're talking about. It's a good suggestion that you've made.
    Part of what I need to do (and not stated in my original goal) is to be able to save the combo box's (or whatever control -- I'll call it combo box for simplicity ) value to a database (solution must work in both Oracle and SQL Server) field and then later retrieve these values to display them in a form and in a list. Issues that I'll need to deal with are sorting based on the combo field value, comparing records for equality (and specifically their combo box field values), and searching for a record based on a value in a combo box field.
    A bit more information on my requirements may help people with their suggestions - as noted, localization is a priority, data must be saved to an Oracle or SQL Server database and I need to deal with sorting, comparison, and searching based on the combo field. I will be working with a three tier architecture and a rich client tier, but would like to do as much as possible in terms of sorting, comparison, and searching at the database level for performance reasons. I'll likely need to do some work in the middle tier - what kind of support does Java give for comparing, sorting, and searching a bulk set of records, w.r.t respect to the combo box problem as I've described it so far?

Maybe you are looking for