Dynamically populating a combo box in Forms

I am having a hard time figuring out how to dynamically populate a combo box at run time. Could someone give me any ideas?
thanks, Robin

Use the built-in Populate_list. Read help on that and you'll know how to set it up.

Similar Messages

  • 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.

  • Tab Component Dynamic Visibility to Combo Boxes

    I am using a Tab component.  I have 3 tabs on my dashboard.  I have 2 Combo boxes that I am using to filter rows of data on 3 Excel sheets.  Both Combo boxes are not used on all the tabs.  How can I pass example: User clicks on Tab 1 and use dynamic visibility for Combo Box 1 and Combo Box 2 are visible.  If the user clicks on Tab 2 I want only Combo Box 1 to be visible.

    Hi Joe,
    This can be achieved in Dynamic visibility.
    On click on Tab,just map to some target(say value "1") and then For Combo box,set target cell mapped for tab to 1,which means when the target cell gets "1",show the Combo box.
    If you are not clear then you can refer the following URL,which will give you more informations about this.
    http://everythingxcelsius.com/2008/08/tip-7-xcelsius-dynamic-visibility-video-tutorial.html
    Rgds,
    Murali

  • Dynamic number of Combo boxes in an applet

    Hi,
    I'm quite new to Java & rite now, i've an reqt to build an applet. The problem is my applet will be having a dynamic number of combo boxes in it. This number is based on the parameter passed to the applet..
    any eg or references to a similar reqt would be very helpful.
    Regards
    -Sree Ram

    Define your combo boxes dynamically and put them in a vector:
    int numberOfComboBoxes = 7;
    Vector comboBoxes = new Vector( numberOfComboBoxes );
    for ( int i = 1; i <= numberOfComboBoxes; i++ ) {
    comboBoxes.add( i - 1, new Choice() );
    Now you can reference the combo boxes any time you like, no matter how many of them there are:
    for ( int j = 1; i < numberOfComboBoxes; i++ ) {
    System.out.println( ((Choice)comboBoxes.get( j - 1 )).getSelectedItem() );
    }

  • Problem in populating 2nd combo box depending upon the selection of 1st

    Hi all,
    I have 2 combo boxes on my jsp page ,say continent and country . obviously the data in 2nd box is dependant on selection made in the 1st . I'm using MySQL with tomcat 5.0.7 . and JSP.
    The first combo box in one form and the 2nd in another. After submitting first i 'm populating the second combo also.
    But the problem is after submitting the first form the page gets refreshing and i can't see the selected continent in the first combo box.
    The javascript code used follows:
    function callCapture(form)
    var item = continent.cmbContinent.selectedIndex;
    document.country.hidContId.value=continent.cmbContinent.options[item].value;
    document.continent.action="country.jsp?hidContId="+document.country.hidContId.value+"&buttName="+document.country.buttName.value+"";
    document.continent.target="_self";
    document.continent.submit();
    some one pls help me asap !

    Hi Reegz,
    that's what i'm also doing and i'm successfull till populating the second combo box but how do I keep the previous inputs on the page and reload the page based on the change of a selection box?
    Is their any mistake in the javascript code:
    Here is the code:
    function callCapture(form)
    var item = continent.cmbContinent.selectedIndex;
    document.country.hidContId.value=continent.cmbContinent.options[item].value;
    document.continent.action="country.jsp?hidContId="+document.country.hidContId.value+"&buttName="+document.country.buttName.value+"";
    document.continent.target="_self";
    document.continent.submit();
    Pls help me...

  • 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

  • Populating a combo box using values in a table

    I am trying to populate a drop down box with values from a table. I have got so far.
    The combo box is populated however the values in the box are blank.
    Can some suggest the necessary modifications?
    $query="select distinct(house_type) from tbl_accommodation";
    $stmt = ociparse($conn, $query);
    ociexecute($stmt);
    echo '<select name="house_type">';
    echo '<option value = "-1">Select:</option>';
    while($row=ocifetch($stmt)) {
         echo '<option>' . $row['house_type'] . '</option>';
         echo '</select>';
    Thanks

    The ocifetch() function needs ociresult() to get the data. See
    http://us.php.net/manual/en/function.oci-result.php
    You might want to use oci_fetch_assoc() instead.
    while($row=oci_fetch_assoc($stmt)) {
      echo '<option>' . $row['HOUSE_TYPE'] . '</option>';
    }For associative arrays, use the column name in upper case.
    NB Oci_fetch_assoc() is a PHP 5 function. If you don't have it, then
    you are using PHP 4 which has a much older version of the OCI8
    extension. I'd recommend upgrading PHP, or just replacing the old
    OCI8 with a newer one. See other recent threads about how to do this.

  • Dynamic values using combo box

    Hi,
    i have a doubt regarding the combo box.
    do clear it.
    Company [ ]
    bu[ ]
    onselectio of company , i should get bu values....
    i am getting the value in the bu list.......
    but the company name is not getting restored.
    giude me with the code part...
    its urgent...i need it now...
    it would kind enough if some one help me.
    thank u

    Could you provide how ur populating [bu]

  • Dynamic Update of Combo Boxes with Struts

    I need to update one dropdown box based off of the selection of the other. When I select an option I am using an onchange="reload()" to reload the page. The problem with this is as far as I can tell is only refreshing the html in the browser and not sending a new request back to the server. I have the tags bellow. If any one has any Ideas I would appreciate it.
    <bean:size id="planCount" name="new_enrollment_newEnrollmentForm" property="newEnrollmentTO.coverages[${status.index}].classPlans" scope="session"/>
    <c:choose>
         <c:when test="${planCount > 1}">
              <html:select name="new_enrollment_newEnrollmentForm" property="coverages[${status.index}].classPlanID" styleClass="coveragePlanDropDownSize" onClick="window.location.reload()" >
                        <html:option value=""/>
                        <html:options name="new_enrollment_newEnrollmentForm" property="coverages[${status.index}].classPlans" />     
              </html:select>
         </c:when>
         <c:otherwise>
              <c:out value="${coverage.classPlanID}"/>
         </c:otherwise>
    </c:choose>
    <bean:size id="volumeCount" name="new_enrollment_newEnrollmentForm" property="newEnrollmentTO.coverages[${status.index}].volumes" scope="session"/>
    <c:choose>
         <c:when test="${volumeCount > 1}">
              <html:select property="newEnrollmentTO.coverages[${status.index}].volume" styleClass="volDropDownSize">
                   <html:option value=""/>
                   <html:options name="new_enrollment_newEnrollmentForm" property="coverages[${status.index}].volumes"/>     
              </html:select>
         </c:when>
         <c:otherwise>
              <c:out value="${coverage.volume}"/>
         </c:otherwise>
    </c:choose>

    Yes, you are correct. Using the JavaScript reload() function will not submit anything to the JSP. Try something like onchange="document.forms[0].submit()" or something like that. JavaScript isn't my strong suit.
    Brian

  • Dynamic list of check boxes in forms 6i

    hi there, i'm trying to build a form which based on the contents of a table shows a number of check boxes, i'm having trouble figuring out how to go about i though, any ideas???

    the 3 builtin you should use are :
    create_group_from query.
    Populate_group
    Populate_list
    Check out the online help on these routines .

  • Dynamic population issue with repeated sub form

    I have a subform that populates a dropdown from another subform on a prior page. In the Enter event on the subform I have the following script:
    Drop Down 1
    this.clearItems();
    this.rawValue = null;
    this.fontColor = "0,0,0";
    var nCount = Subform3.Subform2.Subform1.instanceManager.count;
    console.println("nCount: " + nCount);
    for (var i=0; i<=nCount; i++)
    var vFld = xfa.resolveNode("Subform3.Subform2.Subform1[" + i + "]");
    var vItem = vFld.RiskNo.rawValue;
    this.addItem(vItem.toString());
    A second drop down is also populated in the PostOpen event on the subform with the following script:
    Drop Down 2
    this.clearItems();
    this.rawValue = null;
    this.fontColor = "0,0,0";
    var sf1 = Subform3.Subform2.resolveNodes ("Subform1[*]");
    for ( var i = 0; i < sf1.length; i++)
    if (CTPData.RiskRow.Risk.rawValue == sf1.item(i).RiskNo.rawValue)
      var controlsf = sf1.item(i).resolveNodes ("Controls.Control[*]");
      for ( var j = 0; j < controlsf.length; j++)
       var wInput = controlsf.item(j).ContNo.rawValue;
       this.addItem(wInput.toString());
    I then populate a text field with values based on drop down selections with the following Exit Event scripts:
    Exit Event Drop Down 1 to populate text field 1
    var sf1 = Subform3.Subform2.resolveNodes ("Subform1[*]");
    for (var i = 0; i < sf1.length; i++)
    if (CTPData.RiskRow.Risk.rawValue == sf1.item(i).RiskNo.rawValue)
       var wInput = sf1.item(i).RiskInput.rawValue;
       CTPData.RiskRow.RiskTxt.rawValue =(wInput);
       CTPData.ControlsRow.ControlTxt.rawValue = "";
    Exit Event Drop Down 2 to populate text field 2
    var sf1 = Subform3.Subform2.resolveNodes ("Subform1[*]");
    for ( var i = 0; i < sf1.length; i++)
    if (CTPData.RiskRow.Risk.rawValue == sf1.item(i).RiskNo.rawValue)
      var controlsf = sf1.item(i).resolveNodes ("Controls.Control[*]");
      for ( var j = 0; j < controlsf.length; j++)
    if (CTPData.ControlsRow.Control.rawValue == controlsf.item(j).ContNo.rawValue)
       var wInput = controlsf.item(j).ControlInput.rawValue;
       CTPData.ControlsRow.ControlTxt.rawValue =(wInput);
    These scripts work absolutely perfect for the first instance of the subform they are on.  On added instances of the subform however, the drop downs work but the populate text fields from the selected values do not.
    I am sure I am missing something simple but I can’t find it.
    I would greatly appreciate any pointers I could get.
    Thanks,
    Eagle

    I actually tried that with the same results.  It seems to me that the issue is that
    var wInput = controlsf.item(j).ControlInput.rawValue;
    CTPData.ControlsRow.ControlTxt.rawValue =(wInput);
    on the repeated subform has a different CTPData.ControlsRow.ControlTxt.  something like CTPData.ControlsRow.ControlTxt(0). but I don't understand enpough about repeated subform values to figure it out.
    Thanks,
    Eagle

  • Populate contact persons combo box.

    I want contact persons to be populated in combo box, for the chosen BP.
    If BP has more than 1 contact person, I want the first contact person from the drop down box
    selected.
    How to do this?Please reply

    Hi Trupti,
    in the BusinessPartner Form the Contact Person Box shows always the value from the
    "Default Contact Person"
    to change the value click on the contact persons tab, select the contact person and click the "Set As Default" button.
    or do you want something else ?
    regards
    David

  • Combo Box items missing

    Hi,
    I'm new to ADF and have a few basic questions.
    1)From a View Object in the Data Control Palette I dragged and dropped an attribute as Combo Box. When I run the panel no items are shown, although data is available at the database. I actually expected that ADF handels the item adding in a combo box. Is some coding really needed or what is the standard way of doing that?
    2) How can one handle dynamic displaying in combo boxes (one item selected in one box defines the items of the next one).
    Thanks.

    Hello Frank,
    thank you for your replay. Problem 1) is solved, I just had to pick the View Object and drop it as a combo box instead of the attribute itself.
    Regarding 2) I did it as follows:
    - In a JClient application I created Entity Object from two tables with 1:n relationship
    - Generated views from these EO's
    - Added those vews to my application module
    - Dragged and droppped both views in a JPanel as combo boxes
    Now what has to be reached is that by selecting one item from the first (master) combo box the items shown on the following one are only those that correspond to the Foreign Key relation.
    Thanks again
    Jan

  • Prob in retaining spaces in Combo Box, PLEASE HELP ASAP!!

    Hi
    In the application that I am working on, I have developed a screen wherein I populate the names of some schemes from the database, in a combo box (<Select><option></option></Select>).
    A particular scheme in the database has a multiple-word name with double spaces between the two words, or rather between the last of the two words and the brackets.
    e.g. Help CRY (Child Relief & You).
    Now, when this name is fetched fro the database, the double spaces between the CRY and ( are retained but when I display them in the combo box, i.e. between the <option> tags, somehow the double spaces disappear.
    Further on, in my servlet, I retrieve the same scheme name from the combo box and try to fetch some other entries from the database. At that point, since one of the spaces has disappeared, there is no database match found for the scheme name selected and I'm unable to proceed. This problem arises in the case of any number of spaces between the words while populating the combo box. It however works fine when I remove the double spaces and retain a single space between the words.
    Please let me know ASAP if combo boxes eat up such spaces and convert any number of spaces into a single space as a property or is something wrong with the JSP I have here. If this problem can never be resolved as a rule, then please tell me so that I can force the data providers to make sure they filter out such double spaces before sending the data to our databases.
    I'll be very grateful if your can help me out asap as we have to put up the site at the earliest possible date.
    Thanks a lot,
    Soumya

    why not you try to set the option value, like this:
    <option value="Help CRY (Child Relief & You)">words you wan display</option>
    Think if the display is not right it will not affect you from extracting the value.
    Regards,
    Jas

  • Tooltip for the Combo Box

    Hi Everyone,
    Tooltip is not coming for the Combo Box in Forms 10g!! Is there any specific reason why is it not available??
    With Regards,
    Yathish

    Its bug 1879328 I would think.

Maybe you are looking for

  • Oracle Authentication Services for OS11.1.1.3 - Unix Support

    Hello I am trying to locate what versions of Oracle Auth services for OS support unix? and versions of unix that oracle supports? appreciate any guidance. j

  • ORA-06512:OWA_UTIL AT LINE 354

    Hello, I created a new procedure to update the table through web page. I use html commands and owa_util package to get the user id owa_util.get_cgi_env('REMOTE_USER') I am using same code in lot of other procedures and they are all working. When I ru

  • BPS - Freezing lead columns in HTML web layouts

    Hi all, Is it possible somehow to freeze the lead columns in the HTML web layouts? I know the freezing can be done in the OWC excel in place, but then I can't find how to make the hierarchical display possible for excel in the web? Is this somehow po

  • Activation date / time

    Not an urgent message, more of a general query. My home hub arrived as expected this morning at 8am but the line has still not activated to enable me to use the phone or broadband. Today is the activation date given and I know it can take up untill m

  • Can't edit the details of the songs

    I am using Itunes 10.6 on a Windows 7. When I attempt to change specific info on tracks (Right Click>Get Info) some of the tracks have all catagories greyed out and I can't edit them. How do I change it? Please note these happen to around 70% of the