Attach Dynamic ComboBox

Hi dear,
I am still working with Jdev9i and need to attach a dynamic combo box to the grid in applet. i found an oracle class called StaticGridComboBox(), but this good only for a static combo. Is there a class/method to attach a dynamic combo to the grid? or any work around?
Thanks

Frank,
I meant a combobox that could be bound to a table.
Thanks.

Similar Messages

  • Dynamic ComboBox

    Hi,
    I'd like to create a dynamic combobox that will add entries according to user input from a dialog box.
    Can anyone advise on how to achieve this?
    Thanks in advance
    Bulleo

    Hello,
    import java.awt.event.*;
    import javax.swing.*;
    public class ComboDialog extends JFrame
         JComboBox combo = null;
         ComboDialog()
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              JPanel content = new JPanel();
              combo = new JComboBox(new String[] { "Please enter a new Entry" });
              JButton newEntry = new JButton("new Entry");
              newEntry.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        combo.addItem(
                             JOptionPane.showInputDialog("Please enter a new Entry:"));
              content.add(newEntry);
              content.add(combo);
              setContentPane(content);
              setSize(200, 200);
              setLocationRelativeTo(null);
              setVisible(true);
         public static void main(String[] args)
              new ComboDialog();
    }Hope it helps,
    Regards
    Tim

  • Email attachment Dynamic Name:

    Hi
    I have to send the Email with the content and the attachments, here the email content and attachemts contains different set of data , attachment needs to be an .HTML file which has to be generated during the mapping & its content is the part of the email body content...and the attachment name is dynamic...like PO Number or customer name
    i am going through the Stefan's blog: /people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping
    i am not getting the email content and the payload, in this blog dosn't  mentioned about any module to be put in the email receiver...kindly let me know i am missing something from this blog?
    i am getting the payload as mentioned in the blog but at the receiver side i am not getting email content & body...am receiving mail with only subject...
    regadrs
    Nisar
    The receiver paylod is genereated as follows:
    "----AaZz Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline This is a sample file -AaZz Content-Type: application/xml; name=file.xml Content-Disposition: attachment; filename=file.xml <?xml version="1.0" encoding="UTF-8" ?><ORDERS05><IDOC BEGIN="1"><EDI_DC40 SEGMENT="1"><TABNAM>EDI_DC40</TABNAM><MANDT>021</MANDT><DOCNUM>0000000045565114</DOCNUM><DOCREL>620</DOCREL><STATUS>30</STATUS><DIRECT>1</DIRECT><OUTMOD>2</OUTMOD><IDOCTYP>ORDERS05</IDOCTYP><MESTYP>ORDRSP</MESTYP><STDMES>ORDRSP</STDMES><SNDPOR>SAPBC3</SNDPOR><SNDPRT>LS</SNDPRT><SNDPRN>BC3-021</SNDPRN><RCVPOR>XID100</RCVPOR><RCVPRT>LS</RCVPRT><RCVPRN>XID100</RCVPRN><CREDAT>20080527</CREDAT><CRETIM>112753</CRETIM></EDI_DC40><E1EDK01 SEGMENT="1"><ACTION>12</ACTION><ZTERM>12</ZTERM><NTGEW>21</NTGEW></E1EDK01><E1EDK14 SEGMENT="1"></E1EDK14><E1EDK03 SEGMENT="1"></E1EDK03><E1EDK04 SEGMENT="1"></E1EDK04><E1EDK05 SEGMENT="1"></E1EDK05><E1EDKA1 SEGMENT="1"><E1EDKA3 SEGMENT="1"></E1EDKA3></E1EDKA1><E1EDK02 SEGMENT="1"></E1EDK02><E1EDK17 SEGMENT="1"></E1EDK17><E1EDK18 SEGMENT="1"></E1EDK18><E1EDK35 SEGMENT="1"></E1EDK35><E1EDK36 SEGMENT="1"></E1EDK36><E1EDKT1 SEGMENT="1"><E1EDKT2 SEGMENT="1"></E1EDKT2></E1EDKT1><E1EDP01 SEGMENT="1"><E1EDP02 SEGMENT="1"></E1EDP02><E1CUREF SEGMENT="1"></E1CUREF><E1ADDI1 SEGMENT="1"></E1ADDI1><E1EDP03 SEGMENT="1"></E1EDP03><E1EDP04 SEGMENT="1"></E1EDP04><E1EDP05 SEGMENT="1"><E1EDPS5 SEGMENT="1"></E1EDPS5></E1EDP05><E1EDP20 SEGMENT="1"></E1EDP20><E1EDPA1 SEGMENT="1"><E1EDPA3 SEGMENT="1"></E1EDPA3></E1EDPA1><E1EDP19 SEGMENT="1"></E1EDP19><E1EDPAD SEGMENT="1"><E1TXTH1 SEGMENT="1"><E1TXTP1 SEGMENT="1"></E1TXTP1></E1TXTH1></E1EDPAD><E1EDP17 SEGMENT="1"></E1EDP17><E1EDP18 SEGMENT="1"></E1EDP18><E1EDP35 SEGMENT="1"></E1EDP35><E1EDPT1 SEGMENT="1"><E1EDPT2 SEGMENT="1"></E1EDPT2></E1EDPT1><E1EDC01 SEGMENT="1"><E1EDC02 SEGMENT="1"></E1EDC02><E1EDC03 SEGMENT="1"></E1EDC03><E1EDC04 SEGMENT="1"></E1EDC04><E1EDC05 SEGMENT="1"></E1EDC05><E1EDC06 SEGMENT="1"></E1EDC06><E1EDC07 SEGMENT="1"></E1EDC07><E1EDCA1 SEGMENT="1"></E1EDCA1><E1EDC19 SEGMENT="1"></E1EDC19><E1EDC17 SEGMENT="1"></E1EDC17><E1EDC18 SEGMENT="1"></E1EDC18><E1EDCT1 SEGMENT="1"><E1EDCT2 SEGMENT="1"></E1EDCT2></E1EDCT1></E1EDC01></E1EDP01><E1CUCFG SEGMENT="1"><E1CUINS SEGMENT="1"></E1CUINS><E1CUPRT SEGMENT="1"></E1CUPRT><E1CUVAL SEGMENT="1"></E1CUVAL><E1CUBLB SEGMENT="1"></E1CUBLB></E1CUCFG><E1EDL37 SEGMENT="1"><E1EDL39 SEGMENT="1"></E1EDL39><E1EDL38 SEGMENT="1"></E1EDL38><E1EDL44 SEGMENT="1"></E1EDL44></E1EDL37><E1EDS01 SEGMENT="1"></E1EDS01></IDOC></ORDERS05>"
    The Email Body content should be
    " This is a sample file"
    the attachment should be the IDOC strucutre which is getting stored as .HTML file....
    kindly let me know what are the things that i need to take care in the receiver mail adapter to separate these two....
    Edited by: Nisar Khan on May 27, 2008 8:59 PM

    Sorry made simple mistake in reciver mail adapter....works good now.....stefans blog is excellent.

  • Dynamic comboBox in a dataGrid?

    i have a dataGrid that starts out blank. When a button is
    clicked, it populates based on the contents of a few components.
    The 3rd column needs a comboBox. I need the following
    behaviors:
    1-when the button is clicked, this populates with the text
    values in a certain text field.
    2-under certain circumstances, i need to be able to add and
    subtract from this comboBox.
    i have read this:
    http://blog.flexmonkeypatches.com/2008/02/18/simple-datagrid-combobox-as-item-editor-examp le/
    but it looks like the comboBox in that example has fixed
    values. How can i dynamically alter the values in
    these comboBoxes? i have the comboBoxes in the dataGrid
    component, but i can't figure out how to access their
    dataProviders!
    thanks!

    You can have your comboBox itemRenderer populate based on an
    ArrayCollection in your dataDrid dataProvider. Then, by changing
    the dataProvider's ArrayCollection field, you could change each of
    the comboBoxes accordingly. If you need different comboBox values
    for different comboBoxes, then you will need something a bit
    different. It would help to see your code.
    Vygo

  • Mail with attachment; dynamic receiver

    Hi everybody,
    we are sending a mail with attachment though mail adapter.
    In Micosoft Exchange the mail is received correct und the attachment is displayed.
    We got also a signature server.
    There the attachment is not regocnized.
    Any ideas.
    Is MS Exchange more error toleranting that onther mail servers?
    Any ideas are appreciated
    Regards Mario

    Hi,
    1) XML payload as attachment (with dynamic name)
    2) recipient (recipient email id is part of input xml payload, but not part of the mapped XML payload)
    These two is possible by using Mail Package. You have a standard xsd for mail package which you can download from the SAP Note 748024.
    The xml created in you java mapping which will be your attachment should be put into the <content> tag of the mail package xml structure. and the file name can be set in the <Content_Type> tag.
    <?xml version="1.0"; encoding="UTF-8"?>
    <p2:Mail xmlns:p2="http://sap.com/xi/XI/Mail/30">
    <Subject>My Invoice</Subject>
    <From>from email address<;/From>
    <To>to email address</To>
    <Content_Type>text/plain;name="MyFile.csv";</Content_Type>  --> file name here
    <Content>123;A49;aaa</Content>   -> attachment xml here
    </p2:Mail>
    And you have to select MailPackage in the receiver mail adapter.
    Regards,
    Aravind

  • Attaching dynamic movie clips in a static moviclip

    I have a problem regarding attahing these movieclips(images)
    to a label (movieclip) on the stage and when i will move label the
    all images shoild move with label which attched to that label , i
    have tried lot through hit test but not working because i have lots
    of dynamic movieclips(images) and how to attach these movieclips on
    the label movieclip which is static movieclip in my case do u have
    any sample or any question regarding this ??? pl help me out .
    Thnx

    In as2, you can't dynamically alter the parent - child
    relationships of movieclips.
    When you mean a 'static' movieclip do you just mean one
    that's not attached at runtime... I'm assuming its still a
    movieclip ...e.g. its not for example 'static text'. just checking.
    So long as it is ... here's how I would try to do it:
    have each label clip contain an array of 'linked' image
    clips. Whenever you move the label clip then have the event or
    enterFrame handler for that label clip loop through the array of
    'linked' clips and move them by the same x and y values. I think
    this would work - its the way I would try to do it anyhow. Others
    may have a better idea.
    This approach would be more complicated if there was
    different scaling or rotation etc applied to the container clips of
    the images or the labels.

  • Issue in attaching dynamic Query to the View Object

    Hi,
    We are having a View Object attached to the JRAD page.
    The View object is build thru as Expert mode. There is no any CDATA
    SQLQUERY stored in the VO.xml file.
    We are building the query dynamically and attaching it to the VO in
    RUNTIME.
    The code is as below
    // getFcstQuery() is method used to return the dynamic query
    String query = getFcstQuery();
    // Setting the Query to View Object
    getViewDef().setQuery(query);
    setQuery(query);
    The JRAD page has sorting option on 5 columns. so when a sorting is
    done the data are interchanged between the clients.
    For example how the query will be build id
    Say for the first user the query will be as
    "select ename,eno,dno from emp where eno=1 "
    for the second user the query may be
    "select ename,eno,dno from emp where eno=2 "
    Now if both the user hit the sorting on any of the column the data is
    interchagned between this both users.
    Please provide solution if possible.
    Thanks in advance
    Balamohan

    Hi Steve,
    We are using 5 tables in building the query.
    Say,
    1) summary
    2) transactions
    3) transactions_history
    4) rules
    5) rules_temp
    but only 2 tables are used at a time
    for read only we are using
    summary table
    for edit only mode we are using
    1) transactions and
    2) rules
    tables
    for edit and recalculate mode we are using
    1) transactions and
    2) rules_temp
    tables
    for one more condition we are using
    1) transactions_history and
    2) rules
    tables
    From all the above combination we are getting 5 columns. All the columns are defined the above combination tables. So using the same region. based on the conditions the combination of tables will change.
    Becoz of this we are building the query dynamically.
    Thanks
    Balamohan

  • SPD List serial WorkFlow attach Dynamic approvers, Document Sets attached to List

    SPD Workflow:
    System : SharePoint 2013
     1. Approver's should be fetched from a people picker item of another List based on condition (Filter with department)
     2. Workflow should be serial & approvers should be dynamic from above list item people picker based on department condition
     3. As it is a List workflow i.e., Custom List is associated to Workflow but I need to upload a document set as a List item
     4. When ever user creates a New List Item, Initiation page should allow him to attach multiple documents, while uploading first document into list from Intiation page, it should create a unique document set with a sequence number and other documents
    should be added in the same document set & that document set should be attached to list item.
    5. Action from Email should reflect the workflow approval.
    /*below point is not Important to achieve in SPD*/
    6. I would like to create a separate List or New List after 1000 document sets are uploaded to workflow list & workflow should be associated automatically when a New List is created
    *I know how to achieve It from server or client side coding..
    suggest optimized way to achieve above points in SPD 2013 & OOB only?
    V

    Hi,
    I had tested again with multi workflows which are assigned to three users, they all worked well.
    At first, the workflow would send an email to the first approver, when the first approver approved; then send an email to the second approver, when the second approver approved; then send an email to the third approver.
    When the third approver approved, the workflow would completed, then the assigner who started the workflow would receive an email that the workflow has been completed.
    You can create a simple workflow to check whether it works.
    Such as you can just only use the “Start Approval Process” one action to check whether it works.
    Did the issue occur in other lists or libraries?
    You can create a new list or library, then create an approval workflow to check whether it works.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to get the values of 2 dynamic comboboxes in one jsp to another jsp?

    I have 2 comboboxes and one submit button on my jsp page.I select a value in 1st combobox then the values in the second combobox populated from the database. next i select 2nd combobox and then submit the button.After submit the button call the next jsp page. In that page i want to display the values of two comboboxes. but my problem is , in that page only 2nd combobox value is displayed.1st combobox is displayed as null. plz tell me, how to get the values of two comboboxes at a time?
    Select.jsp:
    <%@ page language="java" import="java.sql.*" %>
    <%!
         Connection con = null;
         Statement  st  = null;
         ResultSet  rs  = null;
         String     sql = null;
         void addItems(javax.servlet.jsp.JspWriter out, String sql)
           try{     
              rs = st.executeQuery(sql);
              while( rs.next() )
                   out.println("<option>" + rs.getString(1) + "</option>");               
         }catch(Exception e)
                   System.out.println(e);
    %>
    <HTML>
    <HEAD>
    <TITLE>JSP WITH  MULTIPLE FORMS</TITLE>
    <script language="javascript">
              function checking()
                        form1.submit();
         </script>
    </HEAD>
         <body>
             <center>
             <b><font size="5" color="#333399">Staff ID:</font></b></center>
                     <FORM NAME="form1" METHOD="POST" ACTION="Select.jsp">
                         <p align=center>
                         Details of Staff :  
                       <SELECT 1 NAME="type" onchange="checking();">
                                    <option> Administrator </option>
                              <option> OfficeAssistent </option>
                              <option> Clerk </option>
                                  </SELECT 1>
                          </p>
    </FORM>
                      <FORM NAME="form2" METHOD="POST" action="welcome1.jsp">
                      <center>
                          <TABLE><TR><TD>Staff ID:</TD>
                                 <TD><SELECT 2 NAME="staff_id">
                    <%    
            String type = request.getParameter("type");
            try {
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            con = DriverManager.getConnection("jdbc:odbc:java","system","manager");
            catch (ClassNotFoundException ex) {
                   System.out.println(ex);
            catch (SQLException ex)
                System.out.println(ex);
         st  = con.createStatement();
         sql = "select staff_id from "+type+"";
         addItems(out, sql);
    %>
              </SELECT 2>
           </TD>
         </TR>
    </table></center>
    <h2> Details of <%= type + "s" %> </h2>
                         <center><input type=submit value=ok onclick="submit();"></center>
                  </FORM>
         </BODY>
    </HTML>
    welcome1.jsp
    <center><h1>WEL COME</h1></center>
    <%    
            String type = request.getParameter("type");
            String sid = request.getParameter("staff_id");
    %>
    <h2> Details of <%= type + "s" %> </h2>
    <h2> Details of <%= sid %> </h2>

    <SELECT 1 NAME="type" onchange="checking();">
                                    <option value = "0"> Administrator </option>
                              <option value = "1"> OfficeAssistent </option>
                              <option value = "2"> Clerk </option>
                                  </SELECT 1>

  • DataGrid with dynamic comboboxes

    I need to design a dataGrid with comboboxes in one column. These comboboxes should all have different dataProviders based on a value from column 1. What would a general approach be?
    Thanks

    The renderer's data property is the data for the entire row so you can get the column1 data and assign the combobox's dataprovider accordingly.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • How to create dynamic combobox

    hi Gurus,
    I have a jsp page and I want to setup a combobox on it that will get clientnames from the databse(mysql). Can someone give me source code to get the job done. I have class for connection.
    here is my code for class
    package admin;
    import java.sql.*;
    //     http://www.javaservice.net/%7Ejava/bbs/read.cgi?b=javatip&c=r_p&m=devtip&n=1014323889&s=t
    public class DBPool {
         private static boolean connect = false;
         private static Connection[] cons = null;
         private static int maxCons = 10;
         //private static Boolean[] consStatus = new Boolean[maxCons];
         private static int conID = -1;
         private static final String dbURL = "jdbc:mysql://localhost:3306/virsarmedia";
         private static final String user = "root";
         private static final String password = "";
         // This DB Pool needs to be re-written so that uses Vector(or Hashtable)
         // not to share one Connection for many Statements
         static{
              try
                   System.out.print("Loading MySQL Driver ... ");
                   Class.forName("org.gjt.mm.mysql.Driver");
                   System.out.println("OK");
              }catch(ClassNotFoundException e){System.out.println(e.getMessage());}
         // create Connection
         public static final synchronized Connection createConn(){
              try{
                   return DriverManager.getConnection(dbURL,user,password);
              } catch (SQLException e){
                   e.printStackTrace();
                   return null;
         // get db pool manager
         public static final synchronized Connection getConnMgr(){
              // create connections when it's called at the first
              if(!connect){
                   cons = new Connection[maxCons];
                   for(int i=0; i<maxCons; i++){
                        cons[i] = createConn();
                        if(cons[i] == null) return null;
                   connect = true;
              // round robin returning Connection
              conID++;
              if(conID <= maxCons) conID = 0;
              try{
                   if(cons[conID].isClosed()) cons[conID] = createConn();
              } catch(SQLException se){
                   System.out.println(se.getMessage());
                   cons[conID] = createConn();
              return cons[conID];
         // destory all connections
         public static final void destory(){
              connect = false;
              for(int i=0; i<maxCons; i++){
                   if(cons[i] != null){
                        try{
                             cons.close();
                        } catch(SQLException se){
                             cons[i] = null;
              cons = null;
         // get numberOfRows
         public static final int getRows(ResultSet rs){
              int numberOfRows = 0;
              try{
                   rs.last();
                   numberOfRows = rs.getRow();
                   rs.beforeFirst();
              } catch(SQLException se){
                   se.printStackTrace();
              return numberOfRows;
    I have a servet doing the job of retrieveing the records from the databse.
    I want to retrieve all records client names from the databse and display it in the combo box.package data;
    import admin.*;
    import business.*;
    import java.sql.ResultSet;
    import java.sql.*;
    import java.util.Vector;
    public class ClientDB {
         final static String TBL_USER = "client";
    public static int readClientID(Connection connection, Client client) throws SQLException{
    //This method will return 0 if ClientID isn't found.
    String query = "SELECT ClientID FROM Client " +
    "WHERE ClientID = '" + client.getClientID() + "'";
    Statement statement = connection.createStatement();
    ResultSet record = statement.executeQuery(query);
    record.next();
    int clientID = record.getInt("ClientID");
    record.close();
    statement.close();
    return clientID;
    Here is code for JSP where I want to set combobox <%@ page import="java.util.*" %>
    <%@ page language="java" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="admin.*" %>
    <%@ page import="data.*" %>
    <%
    String query = "SELECT clientName from client";
         //     Statement statement = null;
         %>
    <SELECT NAME="userSelectedCategory" onChange="this.form.submit();">
    <%
    try{
                   Statement statement = connection.createStatement();
    ResultSet result = statement.executeQuery(query);
              }catch(Exception e){
                   e.printStackTrace();
              } finally{
                   try{
                        if(statement != null) statement.close();
                   }catch(SQLException se){
                        se.printStackTrace();
    //Create a blank first option so the onChange event works.
    out.println("<option value=\"-\">-</option>");
    //Loop though all the categories in the database
    while(result.next())
    //This is a category from the database
    String optionCategoryValue = result.getString(1);
    //Construct the option tag in a String variable
    String optionTag = "<OPTION VALUE=\"" + optionCategoryValue + "\"";
    if(optionCategoryValue.equals(userSelectedCategory))
    optionTag += " selected=\"selected\"";
    //close the option tag
    optionTag += ">" + optionCategoryValue + "</OPTION>";
    //printout the option tag
    out.println(optionTag);
    //Close the result set and statment to free up resoures
    %>
    </SELECT>
    }Everything else is ok except the combo. Infact I don't know how I can set it. I am trying to do this since last 48 hours. please help me.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Sorry Code for JSP is wrong here is right CODE. I am sorry about that
    <!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN//">
    <html>
    <link href="../virsar.css" rel="stylesheet" type="text/css" />
    <head>
    <title>Virsar Media Administation Menu</title>
    </head>
    <body>
    <table cellspacing=0 cellpadding=0>
         <td><img src="../images/title.jpg"></td>
    </table>
    <table cellspacing=0 cellpadding=0 width=800>
         <td width=20>
    <!-- <br><br><br><br><br><br><br><br><br><br> -->
         </td>
         <!-- <td width=1 bgcolor=black></td> -->
         <td>
    <h1>Subscriptions Processing Menu!</h1>
    <%-- Following code can be used to Add the record on the front end--%>
    <script language="JavaScript">
    function validate(form) {
        if (form.paymentID.value=="") {
            alert("Please fill in PaymentID");
            form.paymentName.focus();
        else if (form.clientID.value=="") {
            alert("Please fill in ClientID");
            form.clientID.focus();
        else if (form.paymentType.value=="") {
            alert("Please fill in Payment Type");
            form.paymentType.focus();
        else {
            form.submit();
    </script>
    <table cellpadding="5" border=1>
      <tr valign="bottom">
        <th>Subscription ID</th>
        <th>Client ID</th>
        <th>Client Name</th>
        <th>Subscription Type</th>
        <th>Amount</th>
        <th>Subscription Start Date</th>
        <th>Subscription Expiry Date</th>
        <th>Description</th>
        <th>State</th>
           <th>Update Subscription</th>
              <th>Delete Subscription</th>
      </tr>
    <%@ page import="business.*" %>
    <% java.util.Vector payments = (java.util.Vector)session.getAttribute("payments");
    if(payments != null){
        for (int i =0; i<payments.size(); i++){
            Payment payment = (Payment)payments.get(i);
         if(payment instanceof Payment){
            %>
            <tr valign="top">
                <td><p><%= payment.getPaymentID() %></td>
                <td><p><%= payment.getClientID() %></td>
                <td><p><%= payment.getClientName() %></td>
                <td><p><%= payment.getPaymentType() %></td>
                <td><p><%= payment.getPaymentAmount() %></td>
                <td><p><%= payment.getPaymentStartDate() %></td>
                <td><p><%= payment.getPaymentExpiryDate() %></td>
                <td><p><%= payment.getPaymentDescription() %></td>
                <td><p><%= payment.getPaymentState() %></td>
                <td><a href="../servlet/admin.ShowPaymentServlet?paymentID=<%=payment.getPaymentID()%>">Update </a></td>
                <td><a href="../servlet/admin.DeletePaymentServlet?paymentID=<%=payment.getPaymentID()%>">Delete </a></td>
            </tr>
            <%
    %>
    </table>
    <form action="../servlet/admin.AddPaymentServlet" method="get">
    <table cellspacing="5" border="0">
        <tr>
            <td align="right">Subscription ID:</td>
            <td><input type="text" name="paymentID"
                    value="">
            </td>
        </tr>
        <tr>
            <td align="right"> Client Name :</td>
            <%-- ---------------------------------------- this is where I want to set my combo -------------------- --%>
                <td>
                          <input name="clientName" type = "text" value= "../servlet/admin/ShowCompanyNames.getClientID()"></input>
                </td>
            <!--  <td><input type="text" name="clientName"
                    value="">
            </td> -->
        </tr>
        <tr>
            <td align="right"> ClientID </td>
            <td><input type="text" name="clientID"
                    value="">
            </td>
        </tr>
        <tr>
            <td align="right"> Payment Type :</td>
         <!--   <td><input type="text" name="paymentType"
                    value="">
            </td>
         -->
               <td>
                <INPUT TYPE=RADIO NAME="paymentType" VALUE="Monthly">Montly
                   <INPUT TYPE=RADIO NAME="paymentType" VALUE="Yearly">Yearly
                   <INPUT TYPE=RADIO NAME="paymentType" VALUE="One Time">One Time
                   <INPUT TYPE=RADIO NAME="paymentType" VALUE="Other">Other<br>
                  </td>
        </tr>
           <tr>
            <td align="right"> Payment Amount :</td>
            <td><input type="text" name="paymentAmount"
                    value="">
            </td>
        </tr>
           <tr>
            <td align="right"> PaymentStartDate :</td>
            <td><input type="text" name="paymentStartDate"
                    value="">
            </td>
        </tr>
           <tr>
            <td align="right"> PaymentExpiryDate :</td>
            <td><input type="text" name="paymentTelephone"
                    value="">
            </td>
        </tr>
           <tr>
            <td align="right"> Description :</td>
            <td><input type="text" name="paymentDescription"
                    value="">
            </td>
        </tr>
           <tr>
            <td align="right"> Status :</td>
            <td><input type="text" name="paymentState"
                    value="">
            </td>
        </tr>
           <td></td>
            <td><input type="button" value="Add Subscription info."
                       onClick="validate(this.form)"></td>
        </tr>
    </table>
    </form>
    <table>
    <tr>
    <td>
    <form action="Cadmin.PaymentsServlet" method="get">
        <input type="submit" value="Refresh List">
    </form>
    </td><td>
    <form action="../Admin/index.html">
        <input type="submit" value="Go Back">
    </form>
    </td>
    </table>
         </td>
    </table>
    </html>
    </body>
    </html>

  • Dynamic combobox using jsp

    HI All,
    This is very urgent for me please help me to come out of this.
    I just want to display the values in combobox from database using jsp,but i have difficulty in doing it can any one help me for this.I will be thankfull if any one gives me a code for the same.
    Ramesh.R

    very simple example
    <%@ page import="java.sql.*" %>
    Add Item:
    <SELECT NAME="item">
    <ol>
    <%
    Connection con5 =
    DriverManager.getConnection("url","user","password");
    String q5 = "query" ;
    Statement stmt5 = (Statement)con5.createStatement();
    ResultSet rs5 = stmt5.executeQuery(q5);
    while(rs5.next()){
    String str5= rs5.getString("field");
    %>
    <li> <% out.print("<OPTION>" + str5); %>
    <% } %>
    </ol>
    </SELECT>

  • Dynamic comboboxes in netbeans

    Hi all,
    I have created java desktop application using netbeans 6.
    I have created two comboboxes, A and B combobox. The list of value of B combobox will depend on the value chosen from A combobox. Both comboboxes are bind to the database.
    The query for combobox A looks like:
    brandQuery2 = java.beans.Beans.isDesignTime() ? null : paint_dbPUEntityManager.createQuery("SELECT b FROM Brand b");
            brandList2 = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : brandQuery2.getResultList();while query for combobox B looks like : Select p from Product
      producttypeQuery = java.beans.Beans.isDesignTime() ? null : paint_dbPUEntityManager.createQuery("SELECT p FROM Producttype p WHERE p.pktype IN (Select pr.fktype FROM Product pr WHERE pr.fkbrand =" + getBrandSelected() + ")" );
            producttypeList = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : producttypeQuery.getResultList();I have an action listener for combobox A which called the query again for combobox B.
    After value is selected from combobox A, there are no list of values for comboBox B.
    what i should at the action listener?
    Appreciate the help.
    Regard,
    yun

    Hello and welcome to the forum. I have a couple of friendly recommendations to help you better get your questions answered. First of all, try to avoid resurrecting old threads. If you have a problem that you want solved, start your own thread. If there's another thread that's related to yours, then by all means reference it in your thread, but don't resurrect it.
    Next, when posting your code, please use code tags so that your code will retain its formatting and be readable. To do this, you will need to paste already formatted code into the forum, highlight this code, and then press the "code" button at the top of the forum Message editor prior to posting the message. You may want to click on the Preview tab to make sure that your code is formatted correctly. Another way is to place the tag &#91;code] at the top of your block of code and the tag &#91;/code] at the bottom, like so:
    &#91;code]
      // your code block goes here.
      // note the differences between the tag at the top vs the bottom.
    &#91;/code]or
    {&#99;ode}
      // your code block goes here.
      // note here that the tags are the same.
    {&#99;ode}Finally you may have better luck getting your questions answered if you can post a compilable example of your problem. We don't want to see your whole program, but rather you should condense your code into the smallest bit that still compiles, has no extra code that's not relevant to your problem, but still demonstrates your problem, in other words, an SSCCE (Short, Self Contained, Correct (Compilable), Example). For more info on SSCCEs please look here:
    [http://homepage1.nifty.com/algafield/sscce.html|http://homepage1.nifty.com/algafield/sscce.html]

  • Attaching Dynamic Movie Clips on a Stage Movie Clip

    Hi guys ,
    I am calling more images in dynamic movieclip on the stage
    from XML file and show them on the stage after that evry movieclip
    is draggable and there is lots of labels (movieclips) on which i
    have to drag the images called from xml files and placed on that
    label , label is also draggable once when i placed object on the
    label moviecli then when i drag the label all images placed in side
    the label should also move with the label .
    And there might be more labels and more images , i can place
    any images in a label or more images on different label but will
    work siimilarly described above .
    So please suggest me and help me out ASAP.

    Ok if I understand you, you have several movieclips on the
    stage that are created dynamically. Some of them are called
    "labels" and some are images. You want to drag and drop an image
    onto a label. Then when you do that you want the image to become a
    child movieclip of the label movieclip. That way when you drag the
    label movie clip and all the images inside it will move along with
    it.
    Are the images movieclips as well or are they just images?

  • Attaching User ComboBox to TestStand API

    I am using a custom interface that gives my application an Office 2003 look incliding the dockable panels and toolbars, I would like to use the ComboBox controls that I normally use rather than the NI ComboBox that comes with TestStand, How do I connect those custom Combo boxes to the TestStand API?

    There is no simply way to connect non-TestStand UI control to a manager control such that it behaves the same way as a connected TestStand UI control. Instead, you must implement the desired behavior in the usual way you program your controls.
    This means you have to use the methods and events that your combo box offers to add and remove items and to respond to user selections.
    To obtain the data to populate the combobox or to perform an action in response to a user selection, you might need to call the TestStand API. Which methods you call would of course depend on what you are showing in the combo box.

Maybe you are looking for