Huge select box fails..

I have a massive amount of items in a select box, and that produces an error because the string is too long I guess.
What kind of other posibilities is there??
I have an order page, where I have to add some order lines. In each line I have a selectbox where I can choose which item has to be in the orderline. But now I have so many items that the error occurs. I cant really find another way to easily add items to the orderline.
Thanks
Bjarke

Hi Sir. I'm kind of a beginner with APEX and I tried implementing the work-around with the solution you provided but I'm getting stuck. Is there anyway you can help? I would really appreciate it, and I promise not to pester you with any more questions!
1 -REGION SOURCE FOR TABULAR FORM:
select
"ROOM_NO",
"BUILDING",
"ROOM_NO" ROOM_NO_DISPLAY,
"GUEST_NAME",
"COMPANY",
"BADGE",
"ARRIVALDATE_",
"DEPTDATE",
"NO_PAX",
"BUILD_ID",
"VACANCY",
"REMARKS",
"RESIDENT"
from "#OWNER#"."HOTEL"
2 - SETTINGS FOR GUEST_NAME COLUMN:
Display As: Select List (query based LOV)
Display Extra Values: Yes
Display Null: Yes
Null display value: -Select-
Null return value: (leave blank)
List of values definition:
SELECT NULL d, NULL r FROM DUAL
3 - PL-SQL REGION DEFINITION:
Template: No Template
Display Point: Before Footer (so that it is after the tabular form)
Region Source:
BEGIN
HTP.P('<script type="text/javascript">');
HTP.P('var depts = new Array (');
HTP.P('new Array("%null%","-Select-")');
FOR d IN (SELECT NUMBER, LAST, FIRST FROM MASTERTABLE ORDER BY 1)
LOOP
HTP.P(', new Array("' || d.LAST || '","' || d.FIRST || '")');
END LOOP;
HTP.P(')');
HTP.P('</script>');
END;
REGION HEADER:
<script type="text/javascript">
function appendToSelect(pSelect, pValue, pContent)
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all)
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
else
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
</script>
REGION FOOTER:
<script type="text/javascript">
function setLists(f)
var fItems = document.getElementsByName(f);
var x;
var v;
var o;
var d;
for (x = 0; x < fItems.length; x++)
o = fItems[x];
v = o.value;
o.options.length = 0;
for (d = 0; d < depts.length; d++)
appendToSelect(o, depts[d][0], depts[d][1]);
o.value = v;
if (o.selectedIndex == -1)
o.selectedIndex = 0;
setLists("f03");
</script>
I think the problem is that the SELECT LIST that I'm attempting to populate comes from a different table (MASTERTABLE) than the region source for the tabular form (HOTEL). If that is an issue, can you provide me with the solution? I would greatly appreciate it if you can help...

Similar Messages

  • Webkit select box not working...

    Hi folks,
    I'm trying to create a simple select box in an air application, and while the select box is populated, it will not drop down. It just flashes and then rolls back up.
    The select box on the following simple page fails:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
            <title>Untitled Document</title>
        </head>
        <body>
            <select name="myselect" id="myselect">
                <option value="1">1</option>
                <option value="2">2</option>
                <option value="3">3</option>
            </select>
        </body>
    </html>
    What is the trick to getting these select boxes to work properly in webkit? I can use my arrow keys to traverse up and down the options in the select list, but that's not really good enough. I want it to work properly.
    Any ideas what the heck is going on?
    Thanks,
    Chris

    Okay, I've got an update on this problem.
    Just to test this against another platform that uses the webkit engine, I tried the following code in Safari 4.0.4 for Windows:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
            <title>Untitled Document</title>
        </head>
        <body>
            <select name="myselect" id="myselect">
                <option value="1">1</option>
                <option value="2">2</option>
                <option value="3">3</option>
            </select>
        </body>
    </html>
    ... and even though the select box isn't inside a proper form tag, the code still works just fine. In fact, I tested the following code too:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
            <title>Untitled Document</title>
        </head>
        <body>
            <form name="myselect">
                <select name="myselect" id="myselect">
                    <option value="1">1</option>
                    <option value="2">2</option>
                    <option value="3">3</option>
                </select>
            </form>
        </body>
    </html>
    ... and this ALSO works perfectly fine.
    However the same simple code fails miserably in AIR 1.5. Does anyone have a clue why that is? Again, should I upgrade to AIR 2.0 beta? A google search for problems with webkit and select boxes has returned nothing helpful. I'll check this forum again, but so far I've not gotten anything helpful here either.
    Is nobody using AIR with straight HTML/JavaScript/AJAX? Is that why no one has been able to help me? Is *everybody* using Flex? I'm getting a bit frustrated at this point.

  • Need help with moving items betwen 2 netui select boxes

    Hi,
    I have 2 multiple select boxes for possible courses and assigned courses. I need a way to implement move of option items from one box to another using buttons. The user can select courses from one box and move them to another. I am not sure how I would do that with netui select boxes and a pageflow method. If I use javascript, i get all kinds of errors even though I am trying to use the tagid. If validation fails, then the select boxes dont save the updated content.
    Please help.
    Bindu

    Ahmed_Arafa wrote:
    hii all,
    i have a list item.. in this list item i have a two list item value
    1- visa ,list elements visa
    2- cash ,list elements cash
    i need when user select visa from list item then appear text item (visa_number)
    i change item visa_number visible to no
    that's my code i write it
    trigger
    when new-block-instance
    IF :RESERVATION.PAY_METHOD = 'visa'THEN
         SET_ITEM_PROPERTY('RESERVATION.VISA_NUMBER',VISIBLE,PROPERTY_TRUE);
    ELSE
    SET_ITEM_PROPERTY('RESERVATION.VISA_NUMBER',VISIBLE,PROPERTY_FALSE);     
    END IF;**My problem is when i click on cash in the first nothing happen and this right
    when i click to visa second nothing happen this not right
    **when i click on visa first every thing is working
    i need when i click on visa any time item appear and when i would like to click to cash.. visa item is disappearWrite your code in When-List-Change trigger at list_item.
    Hope this will help you.

  • How to fill selection box with clientside data?

    i want to make a html form that reads option values from the client.
    Because there are too many data, it's not reasonable for me to design a page which connects to server each time to fill the selection boxes.Instead i want to check if data resides at the clientside, if so fill selection boxes with that data, if not download it for the first time and store it on the client for later local retrieval.In addition i must be able to update that data residing on the client when i want.

    Hi,
    I can tell you some hints. Use cookies to store the information on to the client-side. You can read data from cookies using JavaScript. If you want to store huge amount of data on to the client-side, perhaps this would not be a better idea. In J2EE architecture we often use sessions to store values. You need to design your implementation in such a way that for the first time you fetch all the values from the database and put it in a session, and the next time onwards you can get the values from the session itself and thereby you can avoid going to database each and everytime. Write a Java class which has all the necessary get and set methods and store the object in the session. Using that object reference you can set and get the values from it. I hope this will help you.
    Thanks

  • How to do it?? in SELECT BOX

    here is the bean class sample code of getting the result set from
    database
    public void setMembers2()
    String query1="select e.idcode from employee e,wb_login w where e.idcode=w.idcode ";
    stmt1=conn1.createStatement();
    rs1=stmt1.executeQuery(query1);
    System.out.println("Executed query");
    if(rs1.next())
    do{
    id=rs1.getString(1);
    System.out.println("THE IDCODE IS JAVA "+id);
    setId_code(id);
    } while(rs1.next());
    else
    System.out.println("THE IDCODES ");
    here is the sample code in jsp i have to populate the Idcode's in SELECT BOX
    <select name="idcode" size="1" >
    <%
    String str1="";
    promotionbn.setMembers2();
    str1=promotionbn.getId_code();
    System.out.println("THE IDCODE IN JSP PAGE IS "+str1);
    %>
    <option value="<%=str1%>"> <%=str1%>
    </select>
    But in the select box priniting only one record.........

    Hey,
    Where are u defining the get/set methods method ??. The code u gave is not very clear. Acording to what u gave below it will surely print only one record probably the last one.
    KM
    here is the bean class sample code of getting the
    result set from
    database
    public void setMembers2()
    String query1="select e.idcode from employee
    e,wb_login w where e.idcode=w.idcode ";
    stmt1=conn1.createStatement();
    rs1=stmt1.executeQuery(query1);
    System.out.println("Executed query");
    if(rs1.next())
    do{
    id=rs1.getString(1);
    System.out.println("THE IDCODE IS JAVA
    CODE IS JAVA "+id);
    setId_code(id);
    } while(rs1.next());
    else
    System.out.println("THE IDCODES ");
    here is the sample code in jsp i have to populate the
    Idcode's in SELECT BOX
    <select name="idcode" size="1" >
    <%
    String str1="";
    promotionbn.setMembers2();
    str1=promotionbn.getId_code();
    System.out.println("THE IDCODE IN JSP PAGE IS
    "+str1);
    %>
    <option value="<%=str1%>"> <%=str1%>
    </select>
    But in the select box priniting only one
    record.........

  • The html select box option is not getting displayed properly in IE11

    The html select box option is not getting displayed properly in IE11
    I have developed a website that has a select box drop down. The select box drop down is getting displayed properly in IE9. But in IE11, if I am selecting any option apart from the first one, the whole select box option is getting moved up in the page.
    In IE11, if option 2 is selected, then the select options is getting moved up. But in IE9, if option 2 is selected, then the select options is getting displayed properly.
    Please let me know the fix so that the select options are displayed in the same manner as in IE9.
    Sorry but I am unable to upload images as this site is throwing some error

    Hi Kevin Shen,
    Thanks for post.
    I tried above code in ie 11(version 11.0.9600.17633).
    But it is not working. If you select option 2, and open select box then it open on the select box.
    It should open below the select box.
    Code for above:-
    <select>
    <option>1</option>
    <option>2</option>
    <option>3</option>
    </select>
    Sorry I could not attach screen shot. We have normal select box with three options. If we select option 2, it is showing option list on the select box. It is coming below the select box in ie 10 and other browse like chrome. 
    So what we should do, so that all options will come below the select box?
    Thanks,
    Yogesh Toke

  • Multi-Select Box Not Displaying Values Passed From Grid?

    Coldfusion 8
    I inherited an application and am trying to maintain and improve it... hit a snag today.
    I have a multi-select box that is not displaying what I expect.  The values come from a ColdFusion grid which is based off a database query.
    Here is the code for the select - does not work - nothing is selected:
    <cfselect name="USER_IDS" multiple="true" queryposition="below" selected="USER_IDS" query="ActiveUsersPlus" disabled="#disabled#" value="G_USER_WORK_UNIT_SK" display="G_USER_ID" >
    </cfselect>
    Now if I change the multiselect to a single select like below - it takes the first item in the field list (from the grid) and selects it in the drop down.
    <cfselect name="USER_IDS" multiple="false" queryposition="below" selected="USER_IDS" query="ActiveUsersPlus" disabled="#disabled#" value="G_USER_WORK_UNIT_SK" display="G_USER_ID" >
    </cfselect>
    Or if I assign a variable like this and use the multi-select code it seems to work as well.
    testlist = "22,26";
    <cfselect name="USER_IDS" multiple="true" queryposition="below" selected="#testlist#" query="ActiveUsersPlus" disabled="#disabled#" value="G_USER_WORK_UNIT_SK" display="G_USER_ID" >
    </cfselect>
    I have displayed the value of "User_IDs" in the grid and in the data entry part of the screen to see values of:  22,26
    to make sure that wasn't my issue.
    Do grids and multiselects require something additional?  Any advice on how to resolve?

    Problem was related to some javascript for the select box.  There was a function for a single select box but not a multiple select box - this fixed it: 
    if(theForm.elements[i].type == "select-multiple"){
                        var selectBox = theForm.elements[i];
                        var sbname = selectBox.name;
                        cpvalue = String(eval('record.data.' + sbname));
                        var NotifyArray = cpvalue.split(',');
                        for (var j=0; j < selectBox.length; j++) {
                            selectBox[j].selected = false;
                        for (var j=0; j < selectBox.length; j++) {
                            sbvalue = selectBox[j].value;
                            for (var k=0; k < NotifyArray.length; k++){
                                if (sbvalue == NotifyArray[k]){
                                    selectBox[j].selected = true;

  • Building a select box multiple times on one page.

    Hello,
    I have a ResultSet rsAgencies that contains all of the information needed to create the options for the agencies select box. It works something like this:
    <select name="selAgencyId" id="selAgencyId" class="Standard">
         <option value="-1" selected>Select One</option>
         <% while (rsAgencies.next()){ %>
              <option value="<%= rsAgencies.getInt("id") %>"><%= rsAgencies.getString("name") %></option>
         <%}%>
    </select>Pretty straight forward. But I need to print these same options out in several different select boxes on the same page and can't figure out how to encapulate this functionality in order to do it.
    In ASP, I would have simply had a function declared on this page that I would pass the ResultSet to. It would loop through the rs and build the options.
    But JSP won't let me declare a function (or maybe I just don't have the syntax right).
    I have also tried putting it in a bean and calling that function from the JSP, but it kindof skips over it for some reason.
    If anyone has done this and can give me a nudge toward the best practice, I would be forever grateful.
    Thanks
    James.

    Limey,
    Thanks. I did not know that about the declaration tags.
    Yes, I decided to build a function that accepts a resultset and returns a vector. It allows me to minimize trips to the database as well as loop through multiple times.
    I ended up putting that function in a bean that will hold all of my common functions for the application. I assume that is a pretty fairly standard way of sharing functionality from page to page.
    Thanks again.
    James.

  • URG:11i to R12.1.3: Invoice print Selected Invoices fails with REP-1419

    Hi,
    Invoice print Selected Invoices fails with the following error: Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    REP-1419: 'beforereport': PL/SQL program aborted.
    Checked the setups based on 557171.1, 375693.1,1101855.1.
    Still the issue is existing.
    May i know the cause of the issue or is it a bug?
    Thanks
    Nancy

    Hi ,
    The cause of the issue is the standard rdf is set to run for single operating unit. But R12 is a moac setup enable application. Hence The operating unit mode is changed to Single from null in system administration concurrent program setting for the XML report concurrent program.
    This fixed the issue.
    Thanks
    Nancy

  • How can I see the numbers of lines selected in a Multiple Selection Box?

    Hi everybody,
    what I want to do is to get in an array of numbers all the lines selected.
    For instance, if I select the rows 1,4 and 7 from a Multiple Selection Box
    of 10 rows in total, how can I see that array when the rows 1,4 and 7 are
    selected?
    Because I want to connect this numbers to Case Structure and if the only
    rows selected are 1,4 and 7, the Case Structure will only realize this cases,
    and the rest will be ignored.
    I'm sure there is some way to get what I want.
    Thank you for your helpful.

    THANK YOU VERY MUCH. IT WORKS PERFECTLY!!!
    "Dennis Knutson" wrote:
    >>If you just wire the list box to an array indicator, you will see that
    the>output is an array of the selected items. Auto index the array through
    a>for loop that has your case statement inside.>>Dennis Knutson>>"Carlos
    Jorge" wrote>>Hi everybody,>>what I want to do is to
    get in an array of numbers all the>lines selected.>For instance, if I select
    the rows 1,4 and 7 from a Multiple>Selection Box>of 10 rows in total, how
    can I see that array when the rows>1,4 and 7 are>selected?>>Because I want
    to connect this numbers to Case Structure>and if the only>rows selected are
    1,4 and 7, the Case Structure will only>realize this cases,>and
    the rest
    will be ignored.>>I'm sure there is some>way to get what I want.>>Thank you
    for your helpful.>>

  • Change the default option for a select box

    Hi,
    I have a select box, with the options built from a Spry Dataset
    <select name="AvatarSelect" id="AvatarSelect" spry:region="myAvatars">
        <option spry:repeat="myAvatars">{A_NAME}</option>
      </select>
    I wish to change the default selected option (which is usually the first row returned from the dataset) based on a value for A_NAME that I know from another spry dataset.
    Tried using Spry.$$('#AvatarSelect') to get to the the array of select options but to no avail.
    How can I cycle through the options and then set the selected on, based on a match for A_NAME?
    Cheers
    Phil

    Hi Phil
    I think this is the way
    <select name="AvatarSelect" id="AvatarSelect" spry:region="myAvatarsLookup myAvatarsValue">
      <option spry:repeat="myAvatarsLookup" spry:test="'{myAvatarsValue::A_NAME}'=='{myAvatarsLookup::id}'" value="{myAvatarsLookup::id}" selected="selected">{A_NAME}</option>
      <option spry:repeat="myAvatarsLookup" spry:test="'{myAvatarsValue::A_NAME}'!='{myAvatarsLookup::id}'" value="{myAvatarsLookup::id}">{A_NAME}</option>
    </select>
    Cheers

  • Selected file failed to open as a PDF error .. on ARES 7.0

    I am trying to enable some reader features using Adobe LiveCycle Reader Ex 7.0 but when I upload the pdf file i got this message
    "Error 442: Selected file failed to open as a PDF 'com.adobe.document.pdf.PDFOperationFailure: IDL:com/adobe/document/pdf/PDFOperationFailure:1.0'."
    when I open this fiel by Adobe Reader 8.0 I got this message
    "This document contained certain rights to enable some features in Adobe Reader. This document has been changed since it was created and these rights are no longer valid. Please contact the author for the original version of this document."
    is there any right should be assigned during the creation of PDF to avoid this error? i am using these products
    Adobe LiveCycle Reader Ex 7.0
    Adobe Acrobat 7.0
    Adobe Reader 8.0
    thank u;

    I am trying to enable some reader features using Adobe LiveCycle Reader Ex 7.0 but when I upload the pdf file i got this message
    "Error 442: Selected file failed to open as a PDF 'com.adobe.document.pdf.PDFOperationFailure: IDL:com/adobe/document/pdf/PDFOperationFailure:1.0'."
    when I open this fiel by Adobe Reader 8.0 I got this message
    "This document contained certain rights to enable some features in Adobe Reader. This document has been changed since it was created and these rights are no longer valid. Please contact the author for the original version of this document."
    is there any right should be assigned during the creation of PDF to avoid this error? i am using these products
    Adobe LiveCycle Reader Ex 7.0
    Adobe Acrobat 7.0
    Adobe Reader 8.0
    thank u;

  • So i just got a new mac, and i am trying to sync my songs that i bought on itunes, and some of the worked, but a huge selection of them have a little exclamation mark beside it and it says it can't be downloaded, why?

    so i just got a new mac, and i am trying to sync my songs that i bought on itunes, and some of the worked, but a huge selection of them have a little exclamation mark beside it and it says it can't be downloaded, why?

    Hello Pork Chop 2,
    Congratulations on your new Mac!  It sounds like your purchased songs are not playing completely after you downloaded them.  I recommend to following steps for an issue like this:
    Symptoms
    Occasionally, if a song purchased from the iTunes Store on a Mac or PC was not downloaded completely, the song may not play back fully. The song may abruptly stop during playback, and iTunes may start playing the next song in your library or playlist.
    Resolution
    If iTunes in the Cloud is available in your country, try the following steps to resolve the issue:
    Delete the purchased song that is exhibiting the problem from your iTunes library.
    Click on the Purchased link in the iTunes Store to view your previously purchased music.
    Download your previously purchased song from this list.
    You can find the full article here:
    Songs in iTunes may not play back completely
    http://support.apple.com/kb/TS4357
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Dynamic populating the items in the select boxes

    Hi,
    I need three select boxes on a webpage in such a way that the options in select box 2 should be populated only after selecting some item in "select box 1" and the options in the "select box 3" should be displayed by selecting the options in "the select box2". The data is being retrived from the database. I know that this functionality can be acheived through the "javascript". I am fine until getting the data from the database but not sure how to get it work using javascript.
    I would appreciate if someone can post any snippet of code or give any suggesstions or pointer on how to proceed....
    -coolers

    probably should ask on a javascript forum then. This is for java.

  • How to populate optional items in SELECT BOX

    // REGISTRATION.JSP//
    <%@ page import="java.util.Enumeration" %>
    <%@ page import="java.util.Vector" %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.lang.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="beans.register2" %>
    <jsp:useBean id="registerbn" scope= "session" class="beans.register2" />
    <% String base = (String) session.getAttribute("base");
    registerbn.setDburl((String)session.getAttribute("dbUrl"));
    registerbn.setDbuser((String)session.getAttribute("dbUserName"));
    registerbn.setDbpasswd((String)session.getAttribute("dbPassword"));
    System.out.println("Inside jsp - setMembers of promotion successful");
    registerbn.setMembers();
    System.out.println("after setting");
    %>
    <%
    String action=request.getParameter("action");
    %>
    <HTML>
    <HEAD>
    <TITLE> TIFR INTRANET </TITLE>
    </HEAD>
    <HEAD>
    <script language="_JavaScript1.2">
    function isIdcode()
    / validating
    function isUser()
    / validating
    function isEmail()
    / validating
    function isPassword()
    / validating
    function isDob()
    / validating
    </javascript> -----java script ends here----------------
    <TD align="top" valign="top"><jsp:include page="menu.jsp" flush="true"/>
    </td>
    <td>
    <table cellpadding="2" cellspacing="3" width="40%">
    <form method="post" action="./beans.register2">
    Fisrt question: we have creaated "register2.java "as beans class for setting the values in to the data base.
    is it correct ?
    <td width="40" align="center"
    <font face="arial" size="5" align="right">
    <b>
    Registration <hr> </hr>
    </b>
    </font>
    <br>
    </td>
    <tr valign="center" width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">IdCode </b> </font>
    </td>
    <td width="40%">
    <b><font face="Arial" size="2">
    <input type="text" name="idcode" size="6" style="border-style:solid" value="">
    </font></b>
    </td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">User </font></B></td>
    <td width="40%">
    <input type="text" name="user" size="12" style="border-style: solid" value="">
    </font></b></td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Password </font></B></td>
    <td width="40%">
    <input type="password" name="password" size="25" tabindex="20" style="border-style: solid" width="12" value="">
    </font></b></td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Section code </font></b></td>
    <td width="40%">
    <select size="1" name="section_code" tabindex="9"
    style="border-style: solid">
    <%@ include file="section.txt" %>
    Secound question:
    // inclided simple .txt file here
    // what if new item get enlisted in the database , we have to countinuesly update this .txt file ? so we head for creating simple beans class for retriving values
    then displaying in the SELECT box
    // we dont know how to do it.
    //other html tags //
    ----------------at end -----------------
    <input type="Submit" value="Submit" name="B1" > </td>
    <td width="40%">
    <input type="reset" value="Reset" name="B2"></td>
    <%
    String action=request.getParameter("Submit");
    if(action!=null && action.equals("Submit"))
    try{
    String idcode=request.getParameter("idcode");
    String user=request.getParameter("user");
    String password=request.getParameter("password");
    String seccode=request.getParameter("section_code");
    String Category=request.getParameter("Category");
    String BCategory=request.getParameter("BCategory");
    String Bheads=request.getParameter("Bheads");
    String OtherCategory=request.getParameter("OtherCategory");
    String email=request.getParameter("email");
    String day=request.getParameter("day");
    String month=request.getParameter("month");
    String year=request.getParameter("year");
    String Dob=day+"/"+month+"/"+year;
    String day1=request.getParameter("day1");
    String month1=request.getParameter("month1");
    String year1=request.getParameter("year1");
    String Doj=day1+"/"+month1+"/"+year1;
    registerbn.setIdcode("idcode");
    registerbn.setUser("user");
    registerbn.setPassword("password");
    registerbn.setSec_code("seccode");
    registerbn.setCategory("Category");
    registerbn.setBut_Category("BCategory");
    registerbn.setBut_heada("Bheads");
    registerbn.setOther_Category("OtherCategory");
    registerbn.setemail("email");
    registerbn.setDob("Dob");
    registerbn.setDoj("Doj");
    registerbn.saveData();
    /// saveData() is the one method where we are wrintn query to insert in to database//
    }catch(Exception ex)
    out.println("ERROR :has occured ");
    %>
    </table>
    </table>
    </table>
    </form>
    </td>
    </tr>
    <jsp include page="Footer.jsp" flush="true"/>

    To do that you have to get your recordset, and insert option tags into a while cicle. Something like this:
    <select name="mySelectName">
    <%while(myRecordSet.next()){%>
    <option value="<%=myRecordset.getObject(myField1)>"><%=myRecordset.getObject(myField2)%></option>
    <%}%>
    </select>

Maybe you are looking for

  • Report yields no data when viewing from InfoView

    Post Author: Johannes CA Forum: Publishing I've just installed CRXi server and I'm now trying to publish a simple Crystal report.  First of all, this report accesses a date field that's a string format yyyymmdd.  I'd like the report to run for today,

  • Link Sales Order & Purchase Order in Reports

    Hi All, We create all our Purchase Order's back-to-back to our Sales Orders. When we look at Row Details in a Sales Order we can see the linked Purchase Order, and vice versa. Is it possible to run a Query that will show the list of Sales Orders (all

  • Can't active the Voice on Maps Directions on the 5...

    Hi, I recently purchased a T-Mobile Nokia Nuron.  I have used the GPS driving directions on the Ovi Maps twice, but each time I was unable to find out how to get the voice function to work.  Is there a way for the phone to speak out the directions (e

  • Mail attachment with UDF in SAP PI 7.1

    Hello, I need to reproduce this solution in PI 7.1 /people/samuel.chandrasekaran2/blog/2008/10/06/xi-mail-adapter-dynamically-building-attachment-and-message-body-content-using-a-simple-udf It is about  adding lines of a message as an attachment to a

  • Recording from Reel to Reel

    I am trying to record from an old reel to reel machine to my MacBook. I have a Griffin iMic and have tried using GarageBand to record the audio. There are 2 output connection on the Reel to Reel machine -- output to Amp and output to Speaker. I have