Adding New Data To Same Page - HELP

I am trying to put together a invoice on the fly, the products are added to the invoice by selecting the disired product from a drop down menu and hitting the add button. You SHOULD then be able to select more products from the same drop down menu and htting add again will include it in the invoice.... simple?? Well the problem i have is that when i hit the add button to add another item it just replaces the one i have already added.... this is very annoying... i cannot think of a way to take the product data through the form submission ready for adding too.
Any Ideas this is really bugging me, and the more time i spend on it, the worse its getting. Code Below
<%@ page buffer="32kb" %>
<%@ page import="java.sql.*, javax.servlet.ServletException, java.io.IOException, com.stock_control.*" %>
<%!
String convertResultsToSelect ( ResultSet rs, String selectName, String idCol, String descCol ) throws SQLException
StringBuffer sb = new StringBuffer ( "<select name=" + selectName +">" );
if (rs != null) {
while (rs.next()) {
          sb.append ( "<option value=" );
sb.append ( rs.getString(idCol) );
sb.append ( ">" );
sb.append ( rs.getString(descCol) );
sb.append ( "</option>" );
sb.append ( "</select>" );
return sb.toString ();
%>
<html>
<head>
<title>Members Area - Stock Check</title>
</head>
<body bgcolor="#CCCCCC" topmargin="0">
<%@ include file="topConn.jsp" %>
<%
          String msg = "";
          String name = "";
          String address1 = "";
          String address2 = "";
          String town ="";
          String postcode = "";
          String country = "";
          String phone = "";
          String mail = "";
          String comments = "";
          float total = 0;
          int nextFree = 0;
          String prodResults;
          int numberOfItems = 0;
     String shop = (String)session.getValue("SHOP");
     String selectProd = "SELECT ProductID, ProductName FROM product WHERE ShopID=";
     rs1 = stmt.executeQuery(selectProd+shop);
     prodResults = convertResultsToSelect( rs1, "product","ProductID","ProductName");
     rs = stmt.executeQuery("SELECT COUNT(*) AS stockLevel FROM product WHERE ShopID ="+shop);     
while(rs.next())
     numberOfItems = rs.getInt("stockLevel");
     Product[] products = new Product[numberOfItems];
if (request.getParameter("add")!=null)
          // get values from all text boxes....
          name = request.getParameter("name");
          address1 = request.getParameter("address1");
          address2 = request.getParameter("address2");
          town = request.getParameter("town");
          postcode = request.getParameter("postcode");
          country = request.getParameter("country");
          phone = request.getParameter("phone");
          mail = request.getParameter("mail");
          comments = request.getParameter("comments");
               // add data from dropdown
          String newProduct = request.getParameter("product");
          //connect to database and put product data into array + increment
               int thenewid = 0;
               String theName = "";
               float thePrice = 0;
               String nono = "0";
          String getProd = "SELECT * FROM product WHERE ProductID=";
          rs = stmt.executeQuery(getProd+newProduct);
          if(rs.next())
               thenewid = Integer.parseInt(newProduct);
               theName = rs.getString("ProductName");
               thePrice = rs.getFloat("SalePrice");
               Product addProduct = new Product(thenewid, theName, thePrice, nono);
               products[nextFree] = addProduct; //PROBLEM
               nextFree++;
// reload page with new data in form
//for loop arround array     
%>
<form method="GET">
<div align=center>
<p>
<%=prodResults%>
<input type="submit" value="Add" name="add"></p>
<TABLE width=100% height="1">
<TBODY>
<tr>
<td width="4%" height="19"> </td>
<td width="96%" height="19"> 
</td>
</tr>
<tr>
<td width="4%" height="198"> </td>
<td width="96%" height="198">
<div align="center"></div>
<table border="0" cellpadding="2" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber5">
<tr>
<td width="4%"> </td>
<td width="15%"><font face="Verdana" size="2">Customer Name</font></td>
<td width="30%"><input type="text" name="name" size="30" value="<%=name%>"></td>
<td width="19%"><font face="Verdana" size="2">Customer Phone #</font></td>
<td width="26%"><input name="phone" type="text" size="30" value="<%=phone%>"></td>
<td width="6%"> </td>
</tr>
<tr>
<td> </td>
<td><font face="Verdana" size="2">Address Line 1</font></td>
<td><input type="text" name="address1" size="40" value="<%=address1%>"></td>
<td><font face="Verdana" size="2">Customer E-mail</font></td>
<td><input name="mail" type="text" size="30" value="<%=mail%>"></td>
<td> </td>
</tr>
<tr>
<td height="32"> </td>
<td><font face="Verdana" size="2">Address Line 2</font></td>
<td> </td>
<td><font face="Verdana" size="2">Comments</font></td>
<td width="26%" rowspan="5"><p>
<textarea name="comments" cols="29" rows="5"><%=comments%></textarea>
</p>
<p>  </p></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><font size="2" face="Verdana">Town/City</font></td>
<td><input name="town" type="text" size="40" value="<%=town%>">
<input name="address2" type="text" size="40" value="<%=address2%>"></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><font size="2" face="Verdana">Post Code</font></td>
<td><input type="text" name="postcode" size="10" value="<%=postcode%>"></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><font size="2" face="Verdana">Country</font></td>
<td><input type="text" name="country" size="40" value="<%=country%>"></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="24"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="23"> </td>
<td><strong><font size="2" face="Verdana">Product Code</font></strong></td>
<td><strong><font size="2" face="Verdana">Name</font></strong></td>
<td><strong><font size="2" face="Verdana">Price</font></strong></td>
<td> </td>
<td> </td>
</tr>
<%
if (request.getParameter("add")!=null)
for(int i=0; i<nextFree; i++)
Product temp = products;
int prodID = temp.getid();
String prodName = temp.getname();
float prodPrice = temp.getprice();
total = total + prodPrice;
// work out total on the fly
%>
<tr>
<td height="23"> </td>
<td> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=prodID%> </font></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=prodName%></font></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<%=prodPrice%></font></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
<td> </td>
</tr>
<%
%>
<tr>
<td width="4%" height="23"> </td>
<td width="15%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
<td width="30%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
<td width="19%"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Total:</font></strong></td>
<td width="26%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=total%></font></td>
<td width="6%"> </td>
</tr>
</table>
<p align="center">
<input type="submit" value="Continue" name="continue">
          </form>
</p>
</td> </tr> </TBODY></table>
<%@ include file="bottomConn.jsp" %>
</body>
</html>

anyone?

Similar Messages

  • TableSorter errors when adding new data

    so here is the deal:
    I am using the TableSorter.java helper class with DefaultTableModel
    from: http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
    It works great when the data is static and I get it for the first time. however, occationally, when adding new data I get a NullPointerException error.
    in use:
    DefaultTableModel.addRow()
    DefaultTableModel.removeRow() and
    DefaultTableModel.insertRow() methods.
    Error:
    java.lang.ArrayIndexOutOfBoundsException: 5
         at com.shared.model.TableSorter.modelIndex(TableSorter.java:294)
         at com.shared.model.TableSorter.getValueAt(TableSorter.java:340)
         at javax.swing.JTable.getValueAt(Unknown Source)
         at javax.swing.JTable.prepareRenderer(Unknown Source)...
    code problem I:
        public Object getValueAt(int row, int column)
            return tableModel.getValueAt(modelIndex(row), column);
        }code problem II:
        public int modelIndex(int viewIndex)
                 return getViewToModel()[viewIndex].modelIndex;     
        }TableSroter class:
    package com.shared.model;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.util.List;
    import javax.swing.*;
    import javax.swing.event.TableModelEvent;
    import javax.swing.event.TableModelListener;
    import javax.swing.table.*;
    * TableSorter is a decorator for TableModels; adding sorting
    * functionality to a supplied TableModel. TableSorter does
    * not store or copy the data in its TableModel; instead it maintains
    * a map from the row indexes of the view to the row indexes of the
    * model. As requests are made of the sorter (like getValueAt(row, col))
    * they are passed to the underlying model after the row numbers
    * have been translated via the internal mapping array. This way,
    * the TableSorter appears to hold another copy of the table
    * with the rows in a different order.
    * <p/>
    * TableSorter registers itself as a listener to the underlying model,
    * just as the JTable itself would. Events recieved from the model
    * are examined, sometimes manipulated (typically widened), and then
    * passed on to the TableSorter's listeners (typically the JTable).
    * If a change to the model has invalidated the order of TableSorter's
    * rows, a note of this is made and the sorter will resort the
    * rows the next time a value is requested.
    * <p/>
    * When the tableHeader property is set, either by using the
    * setTableHeader() method or the two argument constructor, the
    * table header may be used as a complete UI for TableSorter.
    * The default renderer of the tableHeader is decorated with a renderer
    * that indicates the sorting status of each column. In addition,
    * a mouse listener is installed with the following behavior:
    * <ul>
    * <li>
    * Mouse-click: Clears the sorting status of all other columns
    * and advances the sorting status of that column through three
    * values: {NOT_SORTED, ASCENDING, DESCENDING} (then back to
    * NOT_SORTED again).
    * <li>
    * SHIFT-mouse-click: Clears the sorting status of all other columns
    * and cycles the sorting status of the column through the same
    * three values, in the opposite order: {NOT_SORTED, DESCENDING, ASCENDING}.
    * <li>
    * CONTROL-mouse-click and CONTROL-SHIFT-mouse-click: as above except
    * that the changes to the column do not cancel the statuses of columns
    * that are already sorting - giving a way to initiate a compound
    * sort.
    * </ul>
    * <p/>
    * This is a long overdue rewrite of a class of the same name that
    * first appeared in the swing table demos in 1997.
    * @author Philip Milne
    * @author Brendon McLean
    * @author Dan van Enckevort
    * @author Parwinder Sekhon
    * @version 2.0 02/27/04
    public class TableSorter extends AbstractTableModel
        protected TableModel tableModel;
        public static final int DESCENDING = -1;
        public static final int NOT_SORTED = 0;
        public static final int ASCENDING = 1;
        private static Directive EMPTY_DIRECTIVE = new Directive(-1, NOT_SORTED);
        public static final Comparator COMPARABLE_COMAPRATOR = new Comparator()
            public int compare(Object o1, Object o2)
                return ((Comparable) o1).compareTo(o2);
        public static final Comparator LEXICAL_COMPARATOR = new Comparator()
            public int compare(Object o1, Object o2)
                return o1.toString().compareTo(o2.toString());
        private Row[] viewToModel;
        private int[] modelToView;
        private JTableHeader tableHeader;
        private MouseListener mouseListener;
        private TableModelListener tableModelListener;
        private Map columnComparators = new HashMap();
        private List sortingColumns = new ArrayList();
        public TableSorter()
            this.mouseListener = new MouseHandler();
            this.tableModelListener = new TableModelHandler();
        public TableSorter(TableModel tableModel)
            this();
            setTableModel(tableModel);
        public TableSorter(TableModel tableModel, JTableHeader tableHeader)
            this();
            setTableHeader(tableHeader);
            setTableModel(tableModel);
        private void clearSortingState()
            viewToModel = null;
            modelToView = null;
        public TableModel getTableModel()
            return tableModel;
        public void setTableModel(TableModel tableModel)
            if (this.tableModel != null)
                this.tableModel.removeTableModelListener(tableModelListener);
            this.tableModel = tableModel;
            if (this.tableModel != null)
                this.tableModel.addTableModelListener(tableModelListener);
            clearSortingState();
            fireTableStructureChanged();
        public JTableHeader getTableHeader()
            return tableHeader;
        public void setTableHeader(JTableHeader tableHeader)
            if (this.tableHeader != null)
                this.tableHeader.removeMouseListener(mouseListener);
                TableCellRenderer defaultRenderer = this.tableHeader.getDefaultRenderer();
                if (defaultRenderer instanceof SortableHeaderRenderer)
                    this.tableHeader.setDefaultRenderer(((SortableHeaderRenderer) defaultRenderer).tableCellRenderer);
            this.tableHeader = tableHeader;
            if (this.tableHeader != null)
                this.tableHeader.addMouseListener(mouseListener);
                this.tableHeader.setDefaultRenderer
                        new SortableHeaderRenderer(this.tableHeader.getDefaultRenderer())
        public boolean isSorting()
            return sortingColumns.size() != 0;
        private Directive getDirective(int column)
            for (int i = 0; i < sortingColumns.size(); i++)
                Directive directive = (Directive)sortingColumns.get(i);
                if (directive.column == column)
                    return directive;
            return EMPTY_DIRECTIVE;
        public int getSortingStatus(int column)
            return getDirective(column).direction;
        private void sortingStatusChanged()
            clearSortingState();
            fireTableDataChanged();
            if (tableHeader != null)
                tableHeader.repaint();
        public void setSortingStatus(int column, int status)
            Directive directive = getDirective(column);
            if (directive != EMPTY_DIRECTIVE)
                sortingColumns.remove(directive);
            if (status != NOT_SORTED)
                sortingColumns.add(new Directive(column, status));
            sortingStatusChanged();
        protected Icon getHeaderRendererIcon(int column, int size)
            Directive directive = getDirective(column);
            if (directive == EMPTY_DIRECTIVE)
                return null;
            return new Arrow(directive.direction == DESCENDING, size, sortingColumns.indexOf(directive));
        private void cancelSorting()
            sortingColumns.clear();
            sortingStatusChanged();
        public void setColumnComparator(Class type, Comparator comparator)
            if (comparator == null)
                columnComparators.remove(type);
            else
                columnComparators.put(type, comparator);
        protected Comparator getComparator(int column)
            Class columnType = tableModel.getColumnClass(column);
            Comparator comparator = (Comparator) columnComparators.get(columnType);
            if (comparator != null)
                return comparator;
            if (Comparable.class.isAssignableFrom(columnType))
                return COMPARABLE_COMAPRATOR;
            return LEXICAL_COMPARATOR;
        private Row[] getViewToModel()
            if (viewToModel == null)
                int tableModelRowCount = tableModel.getRowCount();
                viewToModel = new Row[tableModelRowCount];
                for (int row = 0; row < tableModelRowCount; row++)
                    viewToModel[row] = new Row(row);
                if (isSorting())
                    Arrays.sort(viewToModel);
            return viewToModel;
        public int modelIndex(int viewIndex)
                 return getViewToModel()[viewIndex].modelIndex;     
        private int[] getModelToView()
            if (modelToView == null)
                int n = getViewToModel().length;
                modelToView = new int[n];
                for (int i = 0; i < n; i++)
                    modelToView[modelIndex(i)] = i;
            return modelToView;
        // TableModel interface methods
        public int getRowCount()
            return (tableModel == null) ? 0 : tableModel.getRowCount();
        public int getColumnCount()
            return (tableModel == null) ? 0 : tableModel.getColumnCount();
        public String getColumnName(int column)
            return tableModel.getColumnName(column);
        public Class getColumnClass(int column)
            return tableModel.getColumnClass(column);
        public boolean isCellEditable(int row, int column)
            return tableModel.isCellEditable(modelIndex(row), column);
        public Object getValueAt(int row, int column)
            return tableModel.getValueAt(modelIndex(row), column);
        public void setValueAt(Object aValue, int row, int column)
            tableModel.setValueAt(aValue, modelIndex(row), column);
        // Helper classes
        private class Row implements Comparable
            private int modelIndex;
            public Row(int index)
                this.modelIndex = index;
            public int compareTo(Object o)
                int row1 = modelIndex;
                int row2 = ((Row) o).modelIndex;
                for (Iterator it = sortingColumns.iterator(); it.hasNext();)
                    Directive directive = (Directive) it.next();
                    int column = directive.column;
                    Object o1 = tableModel.getValueAt(row1, column);
                    Object o2 = tableModel.getValueAt(row2, column);
                    int comparison = 0;
                    // Define null less than everything, except null.
                    if (o1 == null && o2 == null)
                        comparison = 0;
                    } else if (o1 == null)
                        comparison = -1;
                    } else if (o2 == null)
                        comparison = 1;
                    } else {
                        comparison = getComparator(column).compare(o1, o2);
                    if (comparison != 0)
                        return directive.direction == DESCENDING ? -comparison : comparison;
                return 0;
        private class TableModelHandler implements TableModelListener
            public void tableChanged(TableModelEvent e)
                // If we're not sorting by anything, just pass the event along.            
                if (!isSorting())
                    clearSortingState();
                    fireTableChanged(e);
                    return;
                // If the table structure has changed, cancel the sorting; the            
                // sorting columns may have been either moved or deleted from            
                // the model.
                if (e.getFirstRow() == TableModelEvent.HEADER_ROW)
                    cancelSorting();
                    fireTableChanged(e);
                    return;
                // We can map a cell event through to the view without widening            
                // when the following conditions apply:
                // a) all the changes are on one row (e.getFirstRow() == e.getLastRow()) and,
                // b) all the changes are in one column (column != TableModelEvent.ALL_COLUMNS) and,
                // c) we are not sorting on that column (getSortingStatus(column) == NOT_SORTED) and,
                // d) a reverse lookup will not trigger a sort (modelToView != null)
                // Note: INSERT and DELETE events fail this test as they have column == ALL_COLUMNS.
                // The last check, for (modelToView != null) is to see if modelToView
                // is already allocated. If we don't do this check; sorting can become
                // a performance bottleneck for applications where cells 
                // change rapidly in different parts of the table. If cells
                // change alternately in the sorting column and then outside of            
                // it this class can end up re-sorting on alternate cell updates -
                // which can be a performance problem for large tables. The last
                // clause avoids this problem.
                int column = e.getColumn();
                if (e.getFirstRow() == e.getLastRow()
                        && column != TableModelEvent.ALL_COLUMNS
                        && getSortingStatus(column) == NOT_SORTED
                        && modelToView != null)
                    int viewIndex = getModelToView()[e.getFirstRow()];
                    fireTableChanged(new TableModelEvent(TableSorter.this,
                                                         viewIndex, viewIndex,
                                                         column, e.getType()));
                    return;
                // Something has happened to the data that may have invalidated the row order.
                clearSortingState();
                fireTableDataChanged();
                return;
        private class MouseHandler extends MouseAdapter
            public void mouseClicked(MouseEvent e)
                JTableHeader h = (JTableHeader) e.getSource();
                TableColumnModel columnModel = h.getColumnModel();
                int viewColumn = columnModel.getColumnIndexAtX(e.getX());
                int column = columnModel.getColumn(viewColumn).getModelIndex();
                if (column != -1)
                    int status = getSortingStatus(column);
                    if (!e.isControlDown())
                        cancelSorting();
                    // Cycle the sorting states through {NOT_SORTED, ASCENDING, DESCENDING} or
                    // {NOT_SORTED, DESCENDING, ASCENDING} depending on whether shift is pressed.
                    status = status + (e.isShiftDown() ? -1 : 1);
                    status = (status + 4) % 3 - 1; // signed mod, returning {-1, 0, 1}
                    setSortingStatus(column, status);
        private static class Arrow implements Icon
            private boolean descending;
            private int size;
            private int priority;
            public Arrow(boolean descending, int size, int priority)
                this.descending = descending;
                this.size = size;
                this.priority = priority;
            public void paintIcon(Component c, Graphics g, int x, int y)
                Color color = c == null ? Color.GRAY : c.getBackground();            
                // In a compound sort, make each succesive triangle 20%
                // smaller than the previous one.
                int dx = (int)(size/2*Math.pow(0.8, priority));
                int dy = descending ? dx : -dx;
                // Align icon (roughly) with font baseline.
                y = y + 5*size/6 + (descending ? -dy : 0);
                int shift = descending ? 1 : -1;
                g.translate(x, y);
                // Right diagonal.
                g.setColor(color.darker());
                g.drawLine(dx / 2, dy, 0, 0);
                g.drawLine(dx / 2, dy + shift, 0, shift);
                // Left diagonal.
                g.setColor(color.brighter());
                g.drawLine(dx / 2, dy, dx, 0);
                g.drawLine(dx / 2, dy + shift, dx, shift);
                // Horizontal line.
                if (descending) {
                    g.setColor(color.darker().darker());
                } else {
                    g.setColor(color.brighter().brighter());
                g.drawLine(dx, 0, 0, 0);
                g.setColor(color);
                g.translate(-x, -y);
            public int getIconWidth()
                return size;
            public int getIconHeight()
                return size;
        private class SortableHeaderRenderer implements TableCellRenderer
            private TableCellRenderer tableCellRenderer;
            public SortableHeaderRenderer(TableCellRenderer tableCellRenderer)
                this.tableCellRenderer = tableCellRenderer;
            public Component getTableCellRendererComponent(JTable table,
                                                           Object value,
                                                           boolean isSelected,
                                                           boolean hasFocus,
                                                           int row,
                                                           int column)
                Component c = tableCellRenderer.getTableCellRendererComponent(table,
                        value, isSelected, hasFocus, row, column);
                if (c instanceof JLabel) {
                    JLabel l = (JLabel) c;
                    l.setHorizontalTextPosition(JLabel.LEFT);
                    int modelColumn = table.convertColumnIndexToModel(column);
                    l.setIcon(getHeaderRendererIcon(modelColumn, l.getFont().getSize()));
                return c;
        private static class Directive
            private int column;
            private int direction;
            public Directive(int column, int direction)
                this.column = column;
                this.direction = direction;
    }any input will be appreciated.
    thanks
    Peter

    The code you posted doesn't help us at all. Its just a duplicate of the code from the tutorial. The custom code is what you have written. For example do you update the TableModel from the Event Thread? Do you update the SortModel or the DefaultTableModel? If you actually provide your test code and somebody has already downloaded the sort classes, then maybe they will test your code against the classes. But I doubt if people will download the sort classes and create a test program just to see if they can duplicate your results (at least I know I'm not about to).

  • Adding new date field to already loaded data target.

    Hi,
        we have a cube containing date feild such as 0CALMONTH. the data is being loaded to the cube. now they have added new date feild (0FISCYEAR). how to get data to this feild. there is no data coming from source system for this feild. please can any one tell me how to include this feild and load data into it.
    with regards,
    sreekanth.

    Sreekanth,
       If Record creation date is the right field for deriving fiscal year, Why cant you derive the year from the date...by using automatioc time conversion...?? In update rules...??
      For exising data, you can do loop back to populate the data. see the below doc, for more info:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f421c86c-0801-0010-e88c-a07ccdc69601
    Hope it Helps
    Srini
    Message was edited by: Srini

  • Smart forms- when i print a report it print main window data on same page

    hi,
    when i print a report it print main window data on same page .
    i.e. if data is more then one page then it shows data page wise on computer screen but when i print it print all data on same only one page by over wrriting .
    pl. help why it is happening
    i create page in page i set next page and in second page give first page.
    mukesh

    mukesh,
    what happened to this: smart form
    close that please.
    by the way,did you tried with what i suggested?
    lets say mainwindow in 1st page.
    copy the first page to second page.
    now.
    for 1st page: next page is : page2
    for page2: next page is also : page2

  • Help on jsp code to display data in same page using using ajax ?

    Is there any jsp code to display in same page using using ajax ?

    Re: need help on how to display data in same jsp page. Locking.

  • New details on same page won't insert

    Hi,
    I am not able to get a master-detail-on-same-page to work properly.
    It is created with a wizard.
    After adding the first row and entering data, the row is lost when clicking Apply Changes of the master.
    The row is not inserted in the database.
    When I first add a second row without entering data, the first row is inserted when clicking Apply Changes of the master.
    Also when adding the second row, an extra Apply Changes button appears for the details.
    I am using theme '14. Modern' in APEX 3.0.1 on 10g XE.
    Any help will be welcome,
    Martijn

    Hi again,
    The same problem can be seen when following the Advanced Tutorial topic 'How to Create a Master Detail PDF Report'.
    After following the instructions you get a report with master detail form.
    When all detail rows are deleted, the Apply Changes button of the details table disappears.
    You now can add a fill in a new row. However the Apply Changes button won't save your new detail row. Though adding a next row without entering data will save the first row, and the Apply Changes button reappears.
    So, after all the job is done. However it is not the way of working we will instruct end users.
    Is their a way to get the Apply Changes reappear just after adding the first row?
    Thanks in advance,
    Martijn

  • Adding New Data To Line Chart: New Data Does Not Inherit Previous Color Scheme

    This has me very confused. Here's what's being done:
    Right-click on existing chart
    Select "Data..."
    Add additional data in the dialog that pops up
    Click check-mark
    The chart appends more data to the existing lines on the line chart, as it should, however the newly created portion of one of the lines (new data) is not the same color as the line up to that point. The line color is #0084A9, but when the new data is entered the new data on that same line is represented in an ever so slightly darker blue.
    Any guesses as to why that would be happening? I can manually chage it, but that's a hassle and shouldn't necessary - I wouldn't think, anyway. Any help would be appreciated.
    Thanks!
    Very Best,
    Tanner Campbell

    OK looked at this closer, and seen your problem  as  acolor shift from PMS to a CMYK that was slightly off.
    If you want to work with Hexadecimal colors, then you need to File>> Document Color Mode >> RGB, otherwise your colors won't stick but convert to cmyk and be off.
    Your graph went through some editing and got corrupted. I copied and pasted your date into a new graph, and then used the testube to apply samples to get your colors back. Will send you an email with fixed file.
    That’s the strangest thing.  The color you’re seeing is #4e46ff, the color it should be is the color reflected in the legend: #0083a9
    What’s extra interesting is that when I open it I see the legend color for the entire line. Then, when I add data, the section of the line that depicts the newly added data is #4e46ff …. So I have this two tone line.  It’s intriguing that you opened this on a mac and this difference was presence, I wonder if that is in anyway a clue. Maybe the original document was created in RGB and the new data is on CMYK? Thoughts?

  • Creation of new button on same page after insert command

    Hello All,
    I have an application running on apex.oracle.com where my workspace name is shruti_work,username is [email protected] and password is buwigi. The application name inside this is "app2"
    I am trying to achieve one functionality there but unable to get it so felt like seeking an help from experts here. I have two forms there one page1 form which is simplly made on an html region with go button which is navigating the page 1 items value to page 2 but simply passing their address witout updting the database table.
    In Page 2 i created page on a table or view, which made some extra buttons which i dont want like applychanges ,delete button, cancel button. I created a create button even which is updating my database with insert sql command. What i am seeing is after my create button is pressed i got navigated to same page 2 which i want to but the applychange button, cancel and delete button got appeared. I dont get the idea why it is so. i have checked the buttons even i didnt found anything there.
    All i want is when i press create button in page 2, my database get update and at the same page (2) a new button get appears which i have to use for other things. Approaching to this solution i created a button with giving databse action update and condition to this button "value of item in expression 1 is not null" and in expression 1 i passed p2_id...... but my new button is not getting created.
    Any help on this?

    Hi Jeff,
    I dont want applychanges button and delete button in my page 2. But when i created form on a table or view this but got created and i cannot delete it even. When i am navigating my page from page 1 to page 2 and filling the fields in page 2 and clicking create button, at that time i want after updating my table and running my plsql process which i have created which you can see in page processing, my button at same page get generate which i will use to navigate to other form. This button which i want to generate after clicking my create button will be meaningful only if my record get inserted in table. so that is why i want it at that time.
    I dont want any report so i am not creating form on a table or view

  • Dynamic Search/Results on same page - HELP!

    Here is my situation; any help will be GREATLY
    appreciated!!!!!
    - I have dynamic content using PHP/MySQL
    - I am attempting to create a record insertion page
    - within this page, I need the ability to querry the
    database and display the results on the same page and then use the
    results as a part of the record insertion/creation.
    So - I have many students, who are assigned a unique student
    number and I am creating a reservation system. The person entering
    the reservation will enter in the student id (as opposed to their
    name) and hit a 'find' button and the result, if found, will be
    displayed in a dynamic text field. Then, they fill out the rest of
    the info and submit the reservation which gets stored into the
    database.
    I have played around for a few hours now because I have no
    idea how to do this and have just been using trial and error. Can
    anyone PLEASE point me in the right direction?
    Thanks a bunch!!!
    Mav

    I agree, this approach does not seem secure.
    Seems like I could keep trying different ID's until I found
    one and then
    enter reservations under someone else's name and cause havoc
    on the system.
    "David Powers" <[email protected]> wrote in message
    news:eqhvig$h0t$[email protected]..
    > mavrickjcs wrote:
    >> So - I have many students, who are assigned a unique
    student number and
    >> I am creating a reservation system. The person
    entering the reservation
    >> will enter in the student id (as opposed to their
    name) and hit a 'find'
    >> button and the result, if found, will be displayed
    in a dynamic text
    >> field. Then, they fill out the rest of the info and
    submit the
    >> reservation which gets stored into the database.
    >
    > I'm not convinced that your approach is the best way,
    but it's quite
    > simple to do what you want.
    >
    > Create two forms on the page: one for searching for the
    details, the
    > second for creating the reservation. Use a conditional
    statement to hide
    > the second form until the first form has been submitted.
    You'll need to do
    > this by hand, but it's very easy.
    >
    > if (isset($row_recordsetName)) {
    > // this is where the second form goes
    > }
    >
    > Replace "recordsetName" with the actual name of the
    recordset.
    >
    > --
    > David Powers, Adobe Community Expert
    > Author, "Foundation PHP for Dreamweaver 8" (friends of
    ED)
    > Author, "PHP Solutions" (friends of ED)
    >
    http://foundationphp.com/

  • Button to Load New Content on Same Page

    I'm not new but I don't design enough websites in a year to keep up with all the new technology & I'm afraid I've missed some of the basics along the way.
    I design my sites with DIVs within Dreamweaver CS5 & I want to have a button within a DIV that when clicked will change out the entire content of another DIV, including pictures & text, etc...
    Basically I want to load a new page within a DIV on the same page.
    Very similar to what I used to do with frames back in the old days.
    I'm guessing there's a simple solution but I don't even know where to start with this.
    Any suggestions or help here will be greatly appreciated.
    Thanks in advance.
    Jamaica John

    Basically I want to load a new page within a DIV on the same page.Very similar to what I used to do with frames back in the old days.
    Hi John,
    I hope you don't plan to build your entire site around this model.  If you do, your home page is going to take forever to load.  And people on dial-ups and mobile devices won't appreciate all that excess bandwidth.
    A well-conceived web site should have separate pages to deal with each topic.   Also, search engines will treat you better if your site has pages with unique <titles> on them.  To make a consistent looking site (with same menu, header & footer on all pages), consider using DW Templates or Server-Side Includes.  
    DW Templates ~
    http://www.smartwebby.com/web_site_design/dreamweaver_template.asp#1
    SSIs ~
    http://www.smartwebby.com/web_site_design/server_side_includes.asp
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Triggering new window in same page

    Hi,
    can Any one tell me how to trigger a new window in the same page..... I mean how to display the data in news paper format
    ie; when the data is completed in 1st column it should continue in the 2nd column of the same page.........

    well,
    The businees requirement is .... the data should be displayed in newspaper format (column wise). ie; the windows are side by side in a page .... after finishing to print the data in 1st window it should continue in second(side) window of the same page rather than proceeding to a new page window.... I think this expalins my requirement...

  • Adding new Data Object while migrating from MI 2.5 to NM7.1

    Dear All,
          We have a custom MI 2.5 application which we need to migrate to 7.1. While migration, we want to add a newly created data object also in migrated application. But when I try to import MBO model, it is not letting me import new data object. The import finishes successfully. But changes in merepmeta.xml are not done. It creates a file with back up of existing merepmeta.xml i.e. merepmeta.xml.bak and create new merepmeta.xml but it is blank. Am I missing something???
           When I import MBO only with existing data objects (syncbos), it is allowing me perfectly. It is changing the merepmeta.xml accordingly as well without creating backup.
    Thanks in advance,
    Saptak Kulkarni.

    Dear Arjun,
         To answer your questions, previously all the SyncBOs were downloaded independently taking username as the import parameter in getList. (Default values). Yes we can provide the same with 7.1 but we wanted to have some sorts of associations between all SyncBOs.
         So first of all, we changed all the BAPI wrappers of old SyncBOs to download all the data independent of user. Now we created new Data Object to only download user specific data. We associated all other Data Objects on this DO. Created a rule for this data object to only download the sync user instance. We were expecting that whenever a user syncs, a single instance of new user data object will get downloaded and subsequently all other data objects having relationship on user will get downloaded. I hope this is not much confusing.
          Now while we import the MBO model, if we don't import new user data object, then also other data object instance get downloaded and fortunately properly filtered. We don't receive any kind of error over here.
          The new data object is not used anywhere in the application. The associations are in new data object and not in the older one. New data object is the leading one wherein others follow.
          Not a single instance is getting dropped for other Data Objects.
          The xml is blank only when we try to import the new Data Object and correctly it gives an error as expected when I try to deploy the application.
    Thanks in advance,
    Saptak.

  • Data Guard adding new data files to a tablespace.

    In the past, if you were manually updating an Oracle physical standby database there were issues with adding a data file to a tablespace. It was suggested that the data file should be created small and then the small physical file copied to the standby database. Once the small data file was in place it would be resized on the primary database then the repication would change the size on the standby.
    My question is, does Data Guard take care of this automaticlly for a physical standby? I can't find any specific reference on how it handles a new datafile.

    Never mind, I found the answer.
    STANDBY_FILE_MANAGEMENT=auto
    Set on the standby database will create the datafiles.

  • Adding new ipad to existing account - help!

    I'd like to use both my old iPad and new on the same account, but "provide valid values" error message appears with each attempt on that initial page  with "cellular #, email, passcode if required, and last four digits of SS#". Info is correct according to my account settings which I access via the old iPad.. Many repeat attempts here over the last week - what can I be doing wrong?

    Sure  - It's the ATT&T cellular account opened through my first ipad, for the that ipad. I'm hoping to add a new ipad to the account as I still wish to use the old one for awhile too.
    On this new ipad, it seems it will allow this, but on the initial screen for cellular registration, I can't get beyond the remedial information. I feel like there is something ridiculously obvious I am doing wrong.
    I'm hoping someone has done this before, and has insight as to what I am oblivious to.
    Thanks!!

  • Adding new data to update multiple series in charts - in one action

    I would like to know how to update a data series range in a chart all at once as can be achieved with Excel by
    manually entering row numbers to expand the data series range or
    by dragging a reference frame in a table to include additional data in the range.
    At present, the only way that I have discovered I can update a series is to manually change the cell reference detail for each series individually. This is achieved by selecting a single line and clicking several times on the Data reference cell in the Inspector Chart option by highlighting the cell reference details and then manually changing the cell reference for each series separately. This is tedious, time consuming and more than a little clumsy! What used to take me a few minutes to update my charts in Excel is taking me tens of minutes in Numbers.

    theguardian wrote:
    I would like to know how to update a data series range in a chart all at once as can be achieved with Excel by
    manually entering row numbers to expand the data series range or
    by dragging a reference frame in a table to include additional data in the range.
    Unless I'm misreading this, similar techniques work in Numbers.
    The original table contained only the sequential labels in column A and the data shown on the upper chart.
    I made two changes, similar to those in your list (but in the opposite order, hence the reversal in my numbering):
    2. Added data to cells B11:B15 (labeled J-N). (The data added is a copy of the first five data from the original series.) Selected the chart, then expanded the data series by dragging the control (small circle) down to include these cell (plus B16) in the charted range. The chart updated to include this data.
    1. Selected B11:B15, then went Table > Add Rows Below (keyboard shortcut: option-down arrow). Numbers added five rows to the table, and updated the chart to include those rows, as shown in the lower version of the chart. Paste the data into these new rows to add it to the chart.
    Although I had selected rows inside the charted range when adding new rows (to keep that "O" label on the x axis and show the 'space' before it), the five rows could as easily have been added to the end of the chart. Select B12:B16, press option-down arrow.
    Regards,
    Barry

Maybe you are looking for

  • Install R12 on a Virtual Machine hosted on Windows Vista

    I wanted to install Oracle EBS R12.1.1 on Windows Vista Home Premium 64-bit but used to get .\jre\nt\1.6.0\bin\java error. Hussein Sawwan helped and said that this is not certified. He adviced me to create a VMWare Server. Following is my experience.

  • Why i can't set an veriable into animation attributes?

    Hello, I have an simple question, why i can't put variables into animations ? <?xml version="1.0" encoding="utf-8"?> <s:Application width="100%" height="100%"                xmlns:fx="http://ns.adobe.com/mxml/2009"                xmlns:s="library://n

  • DW CS3 locked files and FTP issues - cannot update pages

    I just upgraded to Dreamweaver CS3 and now cant seem to update any of my web pages. I can connect to the server etc and see my files locally & remotely but when I try check out a file to update it I get an error message saying 'index.html is a locked

  • Web OS live chat

    No device Is WebOS live chat supposed to be working. When I try to use it I get the spinning icon and says connecting but never connects.

  • Caclulate freespace from temporary tablespace

    i want to manage temporary tablespace. i want information like total_space, space_used, free_space from temporary tablespace