DropDown List Error

I have a drop down list with three options..If I choose any option a corresponding subform displays. This is working fine if i choose any one option..but lets say I choose option 1, subform1 is displayed but I change the option to two or three...the program ends, stating acrobat error:
Adobe Acrobat 7.0 has encountered a problem and needs to close.
Description of the error states:
AppName: acrobat.exe AppVer: 7.0.1.1390 ModName: acroform.api
ModVer: 7.0.1.1390 Offset: 002d764b
Can anybody help as to how to rectify it

Hi, again!
The two columns are from the same table, yes. Here is an example of the database:
Name number
chocolate 3
In the db only appear the number 3, so what i want is that in the dropdown appear numbers from 0 to N, in this case 3. So i will choose the number what i want. To do this, i have done a function in mysql which functionalitty is to return numbers from 0 to N. So if i send the number 3, it must send numbers from 0 to 3.
After that, to prove it, I have created a new one dropdown sending a random value to the procedure. But when i run it, the dropdown doesn`t show anything. This is the code that i have done:
public SessionBean1() {
public void init() {
        a3();
public void a3(){
        try{
            String num="3";
            cantidadRowSet.setCommand("CALL sp_NumberList(?)");
            cantidadRowSet.setObject(0,num);
           cantidadDataProvider.refresh();
           int noofDBRows = cantidadDataProvider.getRowCount();
          opcionesprueba2 = new Option[noofDBRows+1];
           int rowcount = 0;
           if (noofDBRows > 0) { 
            cantidadDataProvider.cursorFirst();
           do {
           opcionesprueba2[rowcount] = new Option(cantidadDataProvider.getValue("1").toString());
           rowcount++;
            while (cantidadDataProvider.cursorNext());
            opcionesprueba2[rowcount] = new Option("999", "---------");
            }else{
        opcionesprueba2[rowcount] = new Option("999", "No Rows from DB");
        }catch(SQLException e){}
   }Thank you very much

Similar Messages

  • Dropdown list error - in table

    Hi,
    I�m trying to make a table with different fields, with one database. For example:
    Name product Number of products
    So i want to put in the number of products�s a dropdown list. For example, if the product chocolate has 6 units, in the dropdowlist may appear 1-2-...6 and i will select what i want. The database has a field withs these fields.
    So, what i have done is this:
    private void vinos(){
       int noofDBRows = vinosDataProvider.getRowCount();
       listOptionsVinos = new Option[noofDBRows + 1];
       int rowcount = 0;
       if (noofDBRows > 0) {
           // Build the Options Array with the data
           // from DataProvider plus Dummy Value
          vinosDataProvider.cursorFirst();
          do{
              String linea=vinosDataProvider.getCursorRow().getRowId(); 
              int aux=Integer.parseInt(vinosDataProvider.getValue("nUds").toString());
           for (int i=0;i<aux;i++){
                String i2=String.valueOf(i);
               listOptionsVinos=new Option(i2);
    } while (vinosDataProvider.cursorNext());
    // Add Dummy Value to Array at the end,
    // Use Dummy Value ("999") as Value for the Dummy!!
    // Note : - You could add the Dummy value at
    // any position of your choice
    listOptionsVinos[rowcount] = new Option("999", "-------");
    } else {
    listOptionsVinos[rowcount] = new Option("999", "No Rows from DB");
    } public void init() {
    vinos();
    }I have based in this page:
    http://www.netbeans.org/kb/55/dropdowncomp.html
    I know that it is erroneous because the listOptionVinos is common for all the rows, so if anyone could help me i will be pleased.
    Thanks you very much!
    *if anyone understand spanish please say to me because i�ll explain better.
    *si alguien entiende espa�ol que me diga y le intentare explicarselo mejor.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi, again!
    The two columns are from the same table, yes. Here is an example of the database:
    Name number
    chocolate 3
    In the db only appear the number 3, so what i want is that in the dropdown appear numbers from 0 to N, in this case 3. So i will choose the number what i want. To do this, i have done a function in mysql which functionalitty is to return numbers from 0 to N. So if i send the number 3, it must send numbers from 0 to 3.
    After that, to prove it, I have created a new one dropdown sending a random value to the procedure. But when i run it, the dropdown doesn`t show anything. This is the code that i have done:
    public SessionBean1() {
    public void init() {
            a3();
    public void a3(){
            try{
                String num="3";
                cantidadRowSet.setCommand("CALL sp_NumberList(?)");
                cantidadRowSet.setObject(0,num);
               cantidadDataProvider.refresh();
               int noofDBRows = cantidadDataProvider.getRowCount();
              opcionesprueba2 = new Option[noofDBRows+1];
               int rowcount = 0;
               if (noofDBRows > 0) { 
                cantidadDataProvider.cursorFirst();
               do {
               opcionesprueba2[rowcount] = new Option(cantidadDataProvider.getValue("1").toString());
               rowcount++;
                while (cantidadDataProvider.cursorNext());
                opcionesprueba2[rowcount] = new Option("999", "---------");
                }else{
            opcionesprueba2[rowcount] = new Option("999", "No Rows from DB");
            }catch(SQLException e){}
       }Thank you very much

  • Getting error to bind data to dropdown list

    hay dear,
    i bind data to a dropdown list, everything gonna ok but when i run the project the web page containing the bellow error message. could anyone help me
    Exception Handler
    Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
    Exception Details: java.sql.SQLException
    Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : oracle.jdbc.pool.OracleDataSource
    Possible Source of Error:
    Class Name: com.sun.gjc.spi.base.DataSource
    File Name: DataSource.java
    Method Name: getConnection
    Line Number: 112
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Exception Details: java.lang.RuntimeException
    java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : oracle.jdbc.pool.OracleDataSource
    Possible Source of Error:
    Class Name: com.sun.data.provider.impl.CachedRowSetDataProvider
    File Name: CachedRowSetDataProvider.java
    Method Name: setCursorRow
    Line Number: 343
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Exception Details: com.sun.rave.web.ui.appbase.ApplicationException
    java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : oracle.jdbc.pool.OracleDataSource
    Possible Source of Error:
    Class Name: com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl
    File Name: ViewHandlerImpl.java
    Method Name: cleanup
    Line Number: 603
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.

    I'm not a guru, but I would say : your jdbc isn't working. Make sure that it's functioning properly.
    The errormesages suggest that the application can not find the datasource.
    Best Regards,
    Martijn

  • JHeadstart 10.1.3: selection required error on mandatory dropdown list

    Situation:
    - JHeadstart 10.1.3 build 059
    - One JHeadstart Group containing three item regions
    - All items are in the item regions and the regions are stacked (generated as tabs)
    - In the first region (tab) a mandatory item generated as a dropdown list, using a dynamic domain
    When the page starts, the dropdown list displays the meaning value correctly and the list is populated with the correct values. There is no blank option in the list, which is also correct.
    If no changes are made to the list and we navigate to the second tab, an error occurs, displayed at the top of the page: status (which is the field name) - selection required.
    Under the status field a red message reads: A value must be entered. Even when we change the field's value to another list entry and navigate to the next tab, the error reappears. The error does not appear when we change the field back to a simple textImput item.
    Why does this error occur although the field has a correct value?
    Jean-Paul van der Meer and Toine van Beckhoven

    Steven,
    I do also have this problem. It occurs when the VO contains lookup attributes from another enitity.
    In the form I have an table with two stacked tabs as overflow. In the context part I do have 4 dropdownlist. Now when I change one of the lookup items (using a LOV group) and press the save button, the first two dropdownlists become empty and the message 'Selection required' is shown. After entering the values and saving again the other two dropdownlists become empty (no message is shown because those are optional). When I'm only changing other items (non lookup items) the form works fine. At first startup the mandatory dropdownlist do have a NULL-value.
    As temporary solution I moved all the dropdownlists to the stacked tabs and that also works fine. When three are moved and one remains in the context part, the problem still occurs.
    With kind regards,
    Martin Schaap

  • Error/fault when using reader and digitial signatures combined with dropdown list

    I'm working on a time card form for my company and they want me to have the form calculate the dates for the two week pay period when the ending day of the pay period is selected, that part I have down through code.  The problem I am running into though is that when the user is using Adobe reader to digitally sign and send the file to their supervisor the file is changing the selection date field back to the first selection in the drop down list after the first digital signature is applied and the file saved.  This error does not occur when the user is utilizing Adobe Pro though.  Does anyone have any ideas?  I'm wondering if it is something to do with the dropdown list settings or some kind of locking feature not working properly with the reader version.  I am editing/creating the form through LiveCycle Designer ES4. 

    Hi,
    The drop down list box, by default will have a blank value. If you can declare that as obligatory then the report will force the user to enter the value in it.
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • Selecting a Role from dropdown list throws error

    Hi,
    I'm using CRM Web UI 7.0. I'm facing problem selecting a Role from dropdown list in the assignment block Roles in the screen Employee. The problem is that the dropdown list doesn't show any value on clicking and gives an error message "Error on page" at the bottom of page. The roles exist in the system and also I'm able to see them for Accounts screen & in the GUI.
    Kindly help.
    Regards,
    Shaili

    Hi,
    Just to add to this issue: WebUI-> Account Management-> Contacts-> Roles-> Edit list. When we try to add a role from dropdown in Firefox, it works fine but same throws an error in Internet Explorer related to some script.
    Did someone face similar issue and how was it solved?
    Regards,
    Shikha

  • SelectOneMenu dropdown list Validation Error

    I've been trying to get a selectOneMenu working properly for a while now. I've added a "blank" value at the top, but it seems to be causing me a lot of problems.
    If I click the "Cancel" button on my page, which navigates away from the current page, I get this error: "Validation Error: Value is not valid" if I've selected "None" from the dropdown list.
    Here's my code for my selectOneMenu :
    <h:selectOneMenu binding="#{task.dropDownCategoryNew}" id="dropDownCategoryNew" style="position: absolute; left: 576px; top: 480px" value="#{SessionBeanTask.intSelectedValue}">                                                       
    <f:selectItem itemLabel="None"  itemValue="0"/>                           
    <f:selectItems binding="#{task.dropdown1SelectItems}" id="dropdown1SelectItems" value="#{task.task_categoryDataProvider.options['task_category.id,task_category.name']}"/>                                                       
    </h:selectOneMenu>Does anyone have any idea why this might not be working?
    Thanks so much

    Alright I got it.
    You were perfectly right, I was storing the first item as a string with the value "0". What confused me was that in the HTML source code they all were represented as:<option value="0" selected="selected">None</option>
    <option value="1">Sales</option>All I had to do was bind the selectItem to an int value like this:
    <f:selectItem itemLabel="None" itemValue="#{task.intNoneValue}"/>Thank you BalusC

  • Unable to embed External CSS file, dropdown list,filter panel and dimension filter are not working in SAP Design Studio Tool

    Hello Everyone,
    I am new to SAP Design Studio. I am working on creating dashboards and I am using Design Studio 1.2 version. Please suggest some solutions for the following issues. Thanks in Advance.
    1. External CSS file which is embeded using custom CSS option under "application component properties" is not working.
        * I kept the external CSS file inside repository-> my application folder.
    2. During runtime, getting javascript error while selecting '-' option from filter panel.
    3. Unable to select or type dimension name under "dimension filer component" properties.
    4. Getting runtime error for dropdown list, and I have inserted the following code under "onStartup" option of Application component properties.
    "DROPDOWN_1.setItems(DS_1.getMemberList("PRODUCTREF", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 20));
    and dimension values are not populated in auto suggest."

    There should be an Error Log under View > Error Log that gives you more details of these errors.  Could you add that?  There is also a View > Script Problems log that provides more details as well.

  • DropDown list appl  is not working when integrated into Portal

    Hi all,
    In my WebDynpro appl, I have a dropdown list.Which sends data to backend(R/3). This appl is working fine, when it is integrtaed into portal, even before i select from dropdown am getting <b>Access Denied error</b>.
    Help me.
    Thanks a lot.

    Sounds like a PCD Permissions issue. Try assigning Read Access permissions to Everyone group for the following items:
    1) the Folder containing the iView and/or
    2) the application itself
    Read about how to assign permissions using the <a href="http://help.sap.com/saphelp_nw04/helpdata/en/f6/2604db05fd11d7b84200047582c9f7/frameset.htm">Permissions Editor</a>
    Read about <a href="http://help.sap.com/saphelp_nw04/helpdata/en/f6/2604f005fd11d7b84200047582c9f7/frameset.htm">Permissions</a>
    Message was edited by: Umair Salam

  • How to delete one number in the dial pad dropdown list?

    When calling a phone number from Skype, I mistyped the phone number.  Now whenever I call a phone number, the dial pad's dropdown list includes the mistyped phone number.  I want to delete that single number from the dial pad's dropdown list. Unfortunately I obeyed some people's suggestions in other topics.  Now the contents of all chat histories with all ordinary Skype contacts are gone.  I used to save logs of those forever, but the attempt to delete one phone call history actually deleted all chat histories with everyone.  That was not what I wanted. ... And then, to add insult to injury, whenever I call a phone number, the dial pad's dropdown list still includes the mistyped phone number that I want to delete. Is there any way to do it? Even though I make more typos than everyone else, even though my keyboard's Backspace button gets a pounding, surely I'm not the only one?

    NOT My day - just typed out a message and clicked Preview. The message is gone. Short reply - this is suppose, at heart, to be a telephone system. BASICS like keyboard entry error correction should be available (in an intuitive way). Backspace doesn't erase last entry and you cannot even delete ALL the entry. Would you fix this or explain why it cannot be done - and then find out how it can.

  • How to extract data from xml field to dropdown list?

    Hi,
    I have designed a form and connected to a SQL server database using a web service. The XML data retrieved from wsdl connection is currently hold in a text field called 'XMLfield'. I need to extract the data such as 'PersonnelName' from XMLfield into a dropdown list. I used the following code and I do not get any error, but nothing come up and all my fields in the forms become bank when i click the dropdown list.
    I would appreciate it if anyone can help me with this issue.
    form1.DropDownList::click - (JavaScript, client)
    xfa.datasets.data.loadXML(form1.XMLfield.rawValue,0,1);
    form1.XMLfield.rawValue = xfa.datasets.data.saveXML();
    var dataGroup = xfa.resolveNode("xfa.data.Timesheet.Personnel.PersonnelName");
    var dataGroupLength = dataGroup.nodes.length;
    if (dataGroupLength == 0) {
      xfa.host.messageBox("There are no parts in the XML doc");
    else {
      for (var i=0; i < dataGroupLength; i++){
        this.addItem(dataGroup.nodes.item(i).nodes.item(0).value);
    Thanks,
    Roya

    Hi Roya,
    I think the loadXML will override your form data, so blanking out your fields.  You could try loading the xml data at the xfa.datasets level (that is xfa.datasets.loadXML(form1.XMLfield.rawValue,0,1);) or using E4X to process the XML.
    Another option though might be more rework is to use the Acrobat SOAP api which will return you a JavaScript object so you wont have to do any XML work.
    There's a good intro to the SOAP api here, http://www.avoka.com/blog/page/11/.
    Regards
    Bruce

  • Not All Items Appearing In Dropdown List

    Hi,
    You have a newbie here. I am trying to populate a dropdown list in a JSP with the following code, but not all the records are being displayed (approximately 4900 records are displayed). The Submit button that follows this Select tag is not being displayed, nor are any error messages being encountered. The last Option tag is incomplete. Any clues?
    Thanks,
    Neil.
    +{color:#0000ff}Vendor: <select name="gsdb">+
    +<% String vGSDB = null;+
    String vName = null;
    String GSDB = null;
    +if(request.getParameter("gsdb") == null){+
    GSDB = "";
    +}else{+
    GSDB = request.getParameter("gsdb").toString().substring(0,5);
    +}+
    i = 0;
    +while(i < vendorName.length) {+
    +if (vendorName == null) {+
    break;
    +}+
    vGSDB = vendorName.substring(0,5);
    vName = vendorName.substring(6);
    +if(vGSDB.equalsIgnoreCase(GSDB)) {+
    out.println("<option value=\"" vGSDB + "\"selected>" + vName + " **" + vGSDB + "**</option>+
    +");+
    +}else{+
    +out.println("<option value=\"" + vGSDB + "\">" + vName + " **" + vGSDB + "**</option>+
    +");+
    +}+
    +i++;+
    +}+
    +%>+
    +</select>{color}+

    You have 4900+ records?? I'd say there was some exception being thrown somewhere, either you're running out of memory or something. Your response isn't coming completely which indicates that your output was interrupted but since it had been committed, the server couldn't redirect to an error page or display the exception or stack trace.
    Check your logs, there'll definitely be something there.

  • Data Table will not bind to Dropdown List selection

    I get the following error when I try to use my own database tables (As in the "Using Databound Components to Access Databases" tutorial). It is a Oracle9i database. The Table (Vehicle)I use to populate the Dropdown List has around 450 000 rows, and the ComponentRowset returns 362 000 rows when run without a parameter.
    Exception Details: javax.faces.el.EvaluationException
    java.lang.NullPointerException
    Possible Source of Error:
    Class Name: com.sun.faces.el.ValueBindingImpl
    File Name: ValueBindingImpl.java
    Method Name: getValue
    Line Number: 206
    Please help! What am I doing wrong? As far as I can see the code is identical to the "Using Databound Components to Access Databases" tutorial.
    Here is the code:
    * Page1.java
    * Created on 12 October 2004, 05:56
    * Copyright jgenis
    package ucodapp;
    import javax.faces.*;
    import com.sun.jsfcl.app.*;
    import javax.faces.component.html.*;
    import com.sun.jsfcl.data.*;
    import javax.faces.component.*;
    import com.sun.sql.rowset.*;
    import javax.faces.event.*;
    import javax.faces.convert.*;
    public class Page1 extends AbstractPageBean {
        // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
        private int __placeholder;
        private HtmlForm form1 = new HtmlForm();
        public HtmlForm getForm1() {
            return form1;
        public void setForm1(HtmlForm hf) {
            this.form1 = hf;
        private HtmlDataTable dataTable1 = new HtmlDataTable();
        public HtmlDataTable getDataTable1() {
            return dataTable1;
        public void setDataTable1(HtmlDataTable hdt) {
            this.dataTable1 = hdt;
        private JdbcRowSetXImpl componentRowSet = new JdbcRowSetXImpl();
        public JdbcRowSetXImpl getComponentRowSet() {
            return componentRowSet;
        public void setComponentRowSet(JdbcRowSetXImpl jrsxi) {
            this.componentRowSet = jrsxi;
        private HtmlOutputLabel componentLabel1 = new HtmlOutputLabel();
        public HtmlOutputLabel getComponentLabel1() {
            return componentLabel1;
        public void setComponentLabel1(HtmlOutputLabel hol) {
            this.componentLabel1 = hol;
        private HtmlOutputText componentLabel1Text = new HtmlOutputText();
        public HtmlOutputText getComponentLabel1Text() {
            return componentLabel1Text;
        public void setComponentLabel1Text(HtmlOutputText hot) {
            this.componentLabel1Text = hot;
        private UIColumn column1 = new UIColumn();
        public UIColumn getColumn1() {
            return column1;
        public void setColumn1(UIColumn uic) {
            this.column1 = uic;
        private HtmlOutputText outputText1 = new HtmlOutputText();
        public HtmlOutputText getOutputText1() {
            return outputText1;
        public void setOutputText1(HtmlOutputText hot) {
            this.outputText1 = hot;
        private HtmlOutputText outputText2 = new HtmlOutputText();
        public HtmlOutputText getOutputText2() {
            return outputText2;
        public void setOutputText2(HtmlOutputText hot) {
            this.outputText2 = hot;
        private UIColumn column2 = new UIColumn();
        public UIColumn getColumn2() {
            return column2;
        public void setColumn2(UIColumn uic) {
            this.column2 = uic;
        private HtmlOutputText outputText3 = new HtmlOutputText();
        public HtmlOutputText getOutputText3() {
            return outputText3;
        public void setOutputText3(HtmlOutputText hot) {
            this.outputText3 = hot;
        private HtmlOutputText outputText4 = new HtmlOutputText();
        public HtmlOutputText getOutputText4() {
            return outputText4;
        public void setOutputText4(HtmlOutputText hot) {
            this.outputText4 = hot;
        private UIColumn column3 = new UIColumn();
        public UIColumn getColumn3() {
            return column3;
        public void setColumn3(UIColumn uic) {
            this.column3 = uic;
        private HtmlOutputText outputText5 = new HtmlOutputText();
        public HtmlOutputText getOutputText5() {
            return outputText5;
        public void setOutputText5(HtmlOutputText hot) {
            this.outputText5 = hot;
        private HtmlOutputText outputText6 = new HtmlOutputText();
        public HtmlOutputText getOutputText6() {
            return outputText6;
        public void setOutputText6(HtmlOutputText hot) {
            this.outputText6 = hot;
        private UIColumn column4 = new UIColumn();
        public UIColumn getColumn4() {
            return column4;
        public void setColumn4(UIColumn uic) {
            this.column4 = uic;
        private HtmlOutputText outputText7 = new HtmlOutputText();
        public HtmlOutputText getOutputText7() {
            return outputText7;
        public void setOutputText7(HtmlOutputText hot) {
            this.outputText7 = hot;
        private HtmlOutputText outputText8 = new HtmlOutputText();
        public HtmlOutputText getOutputText8() {
            return outputText8;
        public void setOutputText8(HtmlOutputText hot) {
            this.outputText8 = hot;
        private UIColumn column5 = new UIColumn();
        public UIColumn getColumn5() {
            return column5;
        public void setColumn5(UIColumn uic) {
            this.column5 = uic;
        private HtmlOutputText outputText9 = new HtmlOutputText();
        public HtmlOutputText getOutputText9() {
            return outputText9;
        public void setOutputText9(HtmlOutputText hot) {
            this.outputText9 = hot;
        private HtmlOutputText outputText10 = new HtmlOutputText();
        public HtmlOutputText getOutputText10() {
            return outputText10;
        public void setOutputText10(HtmlOutputText hot) {
            this.outputText10 = hot;
        private UIColumn column6 = new UIColumn();
        public UIColumn getColumn6() {
            return column6;
        public void setColumn6(UIColumn uic) {
            this.column6 = uic;
        private HtmlOutputText outputText11 = new HtmlOutputText();
        public HtmlOutputText getOutputText11() {
            return outputText11;
        public void setOutputText11(HtmlOutputText hot) {
            this.outputText11 = hot;
        private HtmlOutputText outputText12 = new HtmlOutputText();
        public HtmlOutputText getOutputText12() {
            return outputText12;
        public void setOutputText12(HtmlOutputText hot) {
            this.outputText12 = hot;
        private UIColumn column7 = new UIColumn();
        public UIColumn getColumn7() {
            return column7;
        public void setColumn7(UIColumn uic) {
            this.column7 = uic;
        private HtmlOutputText outputText13 = new HtmlOutputText();
        public HtmlOutputText getOutputText13() {
            return outputText13;
        public void setOutputText13(HtmlOutputText hot) {
            this.outputText13 = hot;
        private HtmlOutputText outputText14 = new HtmlOutputText();
        public HtmlOutputText getOutputText14() {
            return outputText14;
        public void setOutputText14(HtmlOutputText hot) {
            this.outputText14 = hot;
        private RowSetDataModel dataTable1Model = new RowSetDataModel();
        public RowSetDataModel getDataTable1Model() {
            return dataTable1Model;
        public void setDataTable1Model(RowSetDataModel rsdm) {
            this.dataTable1Model = rsdm;
        private HtmlSelectOneMenu dropdown1 = new HtmlSelectOneMenu();
        public HtmlSelectOneMenu getDropdown1() {
            return dropdown1;
        public void setDropdown1(HtmlSelectOneMenu hsom) {
            this.dropdown1 = hsom;
        private UISelectItems dropdown1SelectItems = new UISelectItems();
        public UISelectItems getDropdown1SelectItems() {
            return dropdown1SelectItems;
        public void setDropdown1SelectItems(UISelectItems uisi) {
            this.dropdown1SelectItems = uisi;
        private JdbcRowSetXImpl vehicleRowSet = new JdbcRowSetXImpl();
        public JdbcRowSetXImpl getVehicleRowSet() {
            return vehicleRowSet;
        public void setVehicleRowSet(JdbcRowSetXImpl jrsxi) {
            this.vehicleRowSet = jrsxi;
        private BigDecimalConverter dropdown1Converter = new BigDecimalConverter();
        public BigDecimalConverter getDropdown1Converter() {
            return dropdown1Converter;
        public void setDropdown1Converter(BigDecimalConverter bdc) {
            this.dropdown1Converter = bdc;
        // </editor-fold>
        public Page1() {
            // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
            try {
                componentRowSet.setDataSourceName("java:comp/env/jdbc/CDS");
                componentRowSet.setCommand("SELECT ALL TRACKER.COMPONENT.PINNO, TRACKER.COMPONENT.UNITCODE, TRACKER.COMPONENT.INSTALLEDDATE, TRACKER.COMPONENT.INSTALLREPORTNO, TRACKER.COMPONENT.TNUSERIALNO, TRACKER.VEHICLE.REGNO, TRACKER.VEHICLE.VINNO, TRACKER.VEHICLE.VEHICLEID, TRACKER.TRACKERAGREEMENT.TAID, TRACKER.TAPRODUCT.TAPRODUCTID, TRACKER.COMPONENT.COMPONENTID, TRACKER.COMPONENT.TAPRODUCTID, TRACKER.COMPONENT.COMPONENTTYPEID, TRACKER.COMPONENT.INSTALLERID, TRACKER.TAPRODUCT.TAID, TRACKER.TAPRODUCT.PRODUCTTYPEID, TRACKER.TAPRODUCT.TAPRODUCTSTATUSID, TRACKER.TAPRODUCT.PRORATANRDAYS, TRACKER.TAPRODUCT.CONTRACTPERIOD, TRACKER.TAPRODUCT.BILLINGFREQUENCYID, TRACKER.TAPRODUCT.CANCELLATIONDATE, TRACKER.TAPRODUCT.STARTDATE, TRACKER.TAPRODUCT.SOURCEID, TRACKER.TAPRODUCT.PRICINGDATE, TRACKER.TAPRODUCT.DEALTYPEID, TRACKER.TAPRODUCT.ACTIONTYPEID, TRACKER.TAPRODUCT.ISSTANDARDBATTERY, TRACKER.TAPRODUCT.AUDITUSERID, TRACKER.TAPRODUCT.AUDITSRID, TRACKER.COMPONENT.SERIALNUMBER, TRACKER.COMPONENT.RECEIVEDDATE, TRACKER.COMPONENT.RESPONSECODE, TRACKER.COMPONENT.REPLYCODE, TRACKER.COMPONENT.ACTIVATIONCODE, TRACKER.COMPONENT.ALERT, TRACKER.COMPONENT.ALTDEACTIVATIONCODE, TRACKER.COMPONENT.INSTALLEDLOCATION, TRACKER.COMPONENT.VERSION, TRACKER.COMPONENT.SOFTWAREVERSION, TRACKER.COMPONENT.CANACTIVATE, TRACKER.COMPONENT.COMPONENTSTATUSID, TRACKER.COMPONENT.SIMNO, TRACKER.COMPONENT.LOCATECELLNO, TRACKER.COMPONENT.AUDITDT, TRACKER.COMPONENT.THEFTNO, TRACKER.TAPRODUCT.STATUSBEFORECANCELLATION, TRACKER.TAPRODUCT.AUDITDT, TRACKER.TRACKERAGREEMENT.VEHICLEID, TRACKER.TRACKERAGREEMENT.CUSTOMERID, TRACKER.TRACKERAGREEMENT.TASTATUSDATE, TRACKER.TRACKERAGREEMENT.TASTATUSID, TRACKER.TRACKERAGREEMENT.AUDITUSERID, TRACKER.TRACKERAGREEMENT.AUDITSRID, TRACKER.TRACKERAGREEMENT.AUDITDT, TRACKER.VEHICLE.MAKEMODELID, TRACKER.VEHICLE.VEHICLECOLOURID, TRACKER.VEHICLE.COLOURSHADEID, TRACKER.VEHICLE.BATTERYID, TRACKER.VEHICLE.INSURERID, TRACKER.VEHICLE.ENGINENO, TRACKER.VEHICLE.CHASSISNO, TRACKER.VEHICLE.POLICYNO, TRACKER.VEHICLE.YEARMODEL, TRACKER.VEHICLE.JOINDATE, TRACKER.VEHICLE.POLICYCOMMENCEDATE, TRACKER.VEHICLE.DESCRIPTION, TRACKER.VEHICLE.ACTIVE, TRACKER.VEHICLE.METALLICIND, TRACKER.VEHICLE.TEMPREGNO, TRACKER.VEHICLE.ORDERNUMBER, TRACKER.VEHICLE.POLICYSEQUENCENO, TRACKER.VEHICLE.AUDITUSERID, TRACKER.VEHICLE.AUDITSRID, TRACKER.VEHICLE.AUDITDT, TRACKER.VEHICLE.THEFTNO  FROM TRACKER.COMPONENT INNER JOIN TRACKER.TAPRODUCT ON TRACKER.COMPONENT.TAPRODUCTID=TRACKER.TAPRODUCT.TAPRODUCTID INNER JOIN TRACKER.TRACKERAGREEMENT ON TRACKER.TAPRODUCT.TAID=TRACKER.TRACKERAGREEMENT.TAID INNER JOIN TRACKER.VEHICLE ON TRACKER.TRACKERAGREEMENT.VEHICLEID=TRACKER.VEHICLE.VEHICLEID WHERE TRACKER.VEHICLE.VEHICLEID=?");
                dataTable1Model.setDataCacheKey("com.sun.datacache.Page1.componentRowSet");
                dataTable1Model.setRowSet(componentRowSet);
                dataTable1Model.setSchemaName("");
                dataTable1Model.setTableName("");
                vehicleRowSet.setDataSourceName("java:comp/env/jdbc/CDS");
                vehicleRowSet.setCommand("SELECT ALL TRACKER.VEHICLE.VEHICLEID, TRACKER.VEHICLE.REGNO  FROM TRACKER.VEHICLE");
                vehicleRowSet.setFetchSize(1000);
            } catch (Exception e) {
                log("Page1 Initialization Failure", e);
                throw e instanceof javax.faces.FacesException ? (FacesException) e : new FacesException(e);
            // </editor-fold>
            // Additional user provided initialization code
            // Initialization Code
            // Part of the Using Databound Components to Access Databases Tutorial
            // You can find this tutorial on the web -- use the link on the Welcome page
            try {
                vehicleRowSet.execute();
                vehicleRowSet.next();
                dataTable1Model.setObject(1, vehicleRowSet.getObject("VEHICLEID"));
            } catch (Exception ex) {
                throw new FacesException(ex);
            } // end try catch
        protected ucodapp.ApplicationBean1 getApplicationBean1() {
            return (ucodapp.ApplicationBean1)getBean("ApplicationBean1");
        protected ucodapp.SessionBean1 getSessionBean1() {
            return (ucodapp.SessionBean1)getBean("SessionBean1");
         * Bean cleanup.
        protected void afterRenderResponse() {
            vehicleRowSet.close();
            vehicleRowSet.close();
            componentRowSet.close();
        public void dropdown1_processValueChange(ValueChangeEvent vce) {
            // Dropdown List Event Code
            // Part of the Using Databound Components to Access Databases Tutorial
            // You can find this tutorial on the web -- use the link on the Welcome page
            try {
                dataTable1Model.setObject(1, dropdown1.getValue());
                dataTable1Model.execute();
            } catch (Exception e) {
                log("vehicle id change exception", e);
                error("Exception changing Vehicle Id: " + e);
            } // end try catch
            // User event code here...

    Take a look at the Page1 constructor.
    It appears that you're trying to bind the datatable to 2
    different rowsets. I suggest to clean up this
    constructor to make sure you're using the right
    rowset.
    Your value binding expressions on each column
    of the datatable may not be set to the right column.
    John
    JSC QA

  • Is it possible? two dropdown list

    I try to get a value from the first dropdown(jdbc connection) in the second dropdown box.
    using jdeveloper 10.1.3.4
    I always get error message;
    500 Internal Server Error
    java.lang.NullPointerException     at hr.DataHandler.get_prj_num(DataHandler.java:446)     at _test__dropdown._jspService(_test__dropdown.java:68)     [/test_dropdown.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.4.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.javaI think request.getParameter() in second dropdown box can not read it from the first dropdown box.
    would you help me ? - code is the following, not everything because of space-
    ****datahandler class****
        public ResultSet get_prj_num(String job_title) throws SQLException {
          try {
            job_title = job_title.toUpperCase();
            getDBConnection();
            String jobquery = "begin ? := get_prj_num(String job_title); end;";
            CallableStatement callStmt = conn.prepareCall(jobquery);
            callStmt.registerOutParameter(1, OracleTypes.CURSOR);
            callStmt.execute();
            rset = (ResultSet)callStmt.getObject(1);
          } catch ( SQLException ex ) {
          logException( ex );
          return rset;
    ***function in database***
    FUNCTION GET_PRJ_NUM(st in VARCHAR2)
    RETURN PRJPKG_NUM.REF_CURSOR
    AS PRJNUM_CURSOR PRJPKG_NUM.REF_CURSOR;
    BEGIN
    OPEN PRJNUM_CURSOR FOR
    SELECT PROJECT_NUMBER FROM PROJECTS WHERE STATE_CODE =st;
    RETURN PRJNUM_CURSOR;
    END;
    ****jsp page a part of it -for space*****
    <%@ page language="java" import=" java.sql.ResultSet"%>
          <jsp:useBean id="empsbean" class="hr.DataHandler" scope="session"/>
           <%ResultSet rset = empsbean.get_prj();%>
        </h3><form action="insert_action.jsp ">
          <table cellspacing="2" cellpadding="3" border="1" width="70%">
            <tr>
              <td width="30%">
                <span class="bold">
                  <span class="bold">
                    <span class="bold">
                      <span class="bold">
                        JOB_TITLE
                      </span>
                    </span>
                  </span>
                </span>
              </td>
              <td width="70%">
                <select size="1" name="JOB_TITLE">
                  <%while (rset.next ())
        out.println("<option value=" + rset.getString("state_code") + ">" +
        rset.getString("state_code") + "</option> "  );
    empsbean.closeAll();
    %>
                </select>
              </td>
            </tr>
            <tr>
              <td width="30%">
                <span class="bold">
                  <span class="bold">
                    <span class="bold">
                      <span class="bold">
                        STATUS
                      </span>
                    </span>
                  </span>
                </span>
              </td>
              <td width="70%">
                <select size="1" name="prjnum_drop">
    <%ResultSet rset1;
    String job_title = request.getParameter("JOB_TITLE");
    // String job_title ="TN";
      rset1 = empsbean.get_prj_num(job_title);
    %>
                  <%while (rset1.next ())
        out.println("<option value=" + rset1.getString("project_number") + ">" +
        rset1.getString("project_number") + "</option> "  );
    empsbean.closeAll();%>Edited by: Jin on Oct 10, 2008 2:51 PM

    after debugging, I have one error now.
    500 Internal Server Error
    java.lang.NullPointerException     at _test__dropdown._jspService(_test__dropdown.java:70)     [/test_dropdown.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.4.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)java.lang.NullPointerException     at test_dropdown._jspService(_test__dropdown.java:70)-the error points at the following;
    String job_title = request.getParameter("JOB_TITLE");
    it seems the second dropdown couldn't get the value from the first dropdown selection.
    I wonder jdbc connection in the first dropdown still alive when the second dropdown list turns.
    is it easy to use Servlet with the two dependent dropdown list?
    thanks

  • Return a value based on dropdown list

    I am a newbie in making PDF form and had recently started working with Live cyle to create a fillable form and managed to create a usable one patterned with the sample Purchase Order Form (by trial and error) which came along with the installation. Can somebody please help me with this form.  I have a dropdown list on the ITEMS column and want it to automatically display the unit price of the item selected from the drop down list. By the way I managed to make the table flowable.

    http://forms.stefcameron.com/2009/02/25/expandable-table-with-totals/

Maybe you are looking for

  • Passing non-key field values to a form from a tree link

    I'd like to be able to link to a record form from a tree, and to pre-populate certain fields in the form from values available in the tree, even if there isn't a record matching the primary key value on the tree. I hope that makes sense. Let me fill

  • Transfer from rdbms to RFC using XI

    Hi Does any one have step by step document of how to transfer from rdbms to RFC using XI . Kindly help me

  • I am not able to download the music files i purchased several days ago

    My account hacked. I know that because person changed the security question but not the password. I made a purchased recently. Purchased songs and there was a previous two book purchase from Apple Store. When i try to download them to my Mac, i am re

  • Multiple component instances for one component usage

    Hi,all How can I create multiple component instances for one component usage. I'm using the following code for creating  a single component instance for specific component usage: if(c_Usage.hasActiveComponent())       c_Usage.deleteComponent(); if(wd

  • COnVERSION ROUTINE in data element level

    how can we write the CONVERSION ROUTINE in data element level for a field in data dictionary ?.........plz if possible give the EXAMPLE code also?