One model for several tables

Hello!
I want to use one model in two tables.That's why within Model(in getModel method) I must know what table request my Model.
How can I do that?

Two different Table Views have data from One table in DB, but with different selection filter.
That's why I want to use one model class with variable in it, that contain name of request TableView.

Similar Messages

  • One check for several vendors

    Hi Gurus: I am trying to create one payment for several vendors. I tried F-58 and it works fine. I also created a unique payment method to map to a specific account. The business requirement is "How can we pay one check to American Express" for several invoices from several vendors". So I added American Express as an alternative payee to each of the vendors. All works fine except that the client wants the record on the FCHX file that is sent to the bank as well as one check for that vendor. FCHX means that we would need to use F110 & not F-58. However in F110 I cannot group several vendors to be paid by one payee...correct?
    Any help with be GREATLY Appreciated!
    thanks
    Brian

    Hi,
    I'm afraid I don't have an answer but I'd like to highlight the question/thread since we have the same issue.
    We have several cases of invoice documents that needs to be posted to different vendors, because we need to report the Accounts Payable on the different vendors' VAT numbers for legal purposes. The payments for several documents might, however, be going to the same payee. I.e. we might have ten invoices booked on ten different vendors but with only one payee.
    We are using the alternative payee/permitted payee functionality but the problem is that F110 generates one payment document per vendor. We would like to have one document per payee. This is possible in F-53 or F-58 (where I can manually select several vendors in the same clearing) but we need to use F110 since we are generating both check printouts and DMEE files for these payments. The bank charges us a fee for each payment, so in the example mentioned they would charge us ten fees instead of one. So it is very costly if this cannot be solved.
    Any suggestions? The setting mentioned previously in this thread does not help.
    Many thanks in advance for your input!
    /Michael

  • Updating model for pivot table in af:iterator

    Using Master Detail relationship, i am trying to create multiple forms at runtime. I want to show all the forms at once. Each form has some header fields and a pivot table. Header field is coming from master table and pivot table should be made from child.
    I am using af:iterator to iterate over master table rows and show header:
    <af:iterator id="i1"
                value="#{bindings.MasterTableVO.collectionModel}" var="row"
                varStatus="index"> For pivot table, i dragged Child View Object from Data Controls to make pivot table.
    <dvt:pivotTable id="pivotTable1"
              value="#{bindings.ChildTableVO.pivotTableModel}"
              summary="pivot table" sizing="auto"
              pivotEnabled="false" drillingEnabled="false"/>                                    Now while iterating, i am not able to get updated model for pivot table. Values from Master table are being updated, but pivot table from child table showing details corresponding to the first row of master table everywhere.
    So can you please help me, how to get the updated pivot table model corresponding to the current row in parent iterator ?
    I am using JDeveloper 11.1.1.6.0
    Thank You.
    VS

    Hi Aswini ,
    I didnot worked for me. I need to change the usecase a bit..
    however you can eaisly display the af:table inside iterator in readonly mode, but when you perform crud operations inline then it gives problems..
    Can you explain your usecase.
    Regards,
    Santosh.

  • One application for Several Organizations

    Hi experts,
    Can we use one Application for Several Organizations? I studied in HFM Admin Document. We use only one organization in our project.
    Can we use this application for another Organization?
    by
    kumari

    Hi,
    I can say that you can use as many.organisation as you want but there are same parameters to take into consideration.
    First,what do you mean by organisation. Group or number of groups?
    Second, how many entities has each organisation. Have you the necessary infrastructure (server, cpu power, RAM)to support these calculations.
    Hope that I help,
    Thanos

  • One MDIS for several MDS

    Hello,
    Is it possible to use one MDIS for several MDSs?
    For example, configure mdis.ini in the following way:
    [GLOBAL]
    String Resource Dir=E:\PROGRA2\SAPMDM1.5\IMPORT~1\LangStrings\
    Log Dir=E:\PROGRA2\SAPMDM1.5\IMPORT~1\Logs\
    Server=MDS1,MDS2,MDS3
    Best regards,
    Dale

    Hi Dale,
    This is indeed a good question and i tried this as well but it is not possible to use more then one MDM Server with one Import Server. When you make the entry in MDIS.ini against the server attribute, it treats that as a single string hence if you specify more than one server name it will not recognize even the single.
    Hope it helps.
    Regards,
    Jitesh Talreja

  • One model for JTree and JTable

    Hi.
    Is it possible for a JTree and a JTable to share one model?
    Thank you

    Hope u r not using Comonent TreeTable
    If u have Tree & Table different components, just want to have a common model then u can try this,
    It is nothing but default implementation given in DefaultTableModel
    public class MyTreeTableModel extends DefaultTreeModel implements TableModel, Serializable {
    protected Vector dataVector;
    /** List of listeners */
    protected EventListenerList listenerList = new EventListenerList();
    /** The <code>Vector</code> of column identifiers. */
    protected Vector columnIdentifiers;
    public MyTreeTableModel(TreeNode root) {
    this(root, false);
    // constructor for TreeModel only
    public MyTreeTableModel(TreeNode root, boolean asksAllowsChildren) {
    super(root, asksAllowsChildren);
    // constructor for TableModel only
    public MyTreeTableModel() {
    this(0, 0);
    private static Vector newVector(int size) {
    Vector v = new Vector(size);
    v.setSize(size);
    return v;
    // constructor for TableModel only
    public MyTreeTableModel(int rowCount, int columnCount) {
    this(newVector(columnCount), rowCount);
    // constructor for TableModel only
    public MyTreeTableModel(Vector columnNames, int rowCount) {
    super(null);
    setDataVector(newVector(rowCount), columnNames);
    // constructor for TableModel only
    public MyTreeTableModel(Object[] columnNames, int rowCount) {
    this(convertToVector(columnNames), rowCount);
    // constructor for TableModel only
    public MyTreeTableModel(Vector data, Vector columnNames) {
    super(null);
    setDataVector(data, columnNames);
    // constructor for TableModel only
    public MyTreeTableModel(Object[][] data, Object[] columnNames) {
    super(null);
    setDataVector(data, columnNames);
    * Returns a default name for the column using spreadsheet conventions:
    * A, B, C, ... Z, AA, AB, etc. If <code>column</code> cannot be found,
    * returns an empty string.
    * @param column the column being queried
    * @return a string containing the default name of <code>column</code>
    private String getDefaultColumnName(int column) {
    String result = "";
    for (; column >= 0; column = column / 26 - 1) {
    result = (char)((char)(column%26)+'A') + result;
    return result;
    * Returns a column given its name.
    * Implementation is naive so this should be overridden if
    * this method is to be called often. This method is not
    * in the <code>TableModel</code> interface and is not used by the
    * <code>JTable</code>.
    * @param columnName string containing name of column to be located
    * @return the column with <code>columnName</code>, or -1 if not found
    public int findColumn(String columnName) {
    for (int i = 0; i < getColumnCount(); i++) {
    if (columnName.equals(getColumnName(i))) {
    return i;
    return -1;
    * Returns <code>Object.class</code> regardless of <code>columnIndex</code>.
    * @param columnIndex the column being queried
    * @return the Object.class
    public Class getColumnClass(int columnIndex) {
    return Object.class;
    // Managing Listeners
    * Adds a listener to the list that's notified each time a change
    * to the data model occurs.
    * @param     l          the TableModelListener
    public void addTableModelListener(TableModelListener l) {
    listenerList.add(TableModelListener.class, l);
    * Removes a listener from the list that's notified each time a
    * change to the data model occurs.
    * @param     l          the TableModelListener
    public void removeTableModelListener(TableModelListener l) {
    listenerList.remove(TableModelListener.class, l);
    * Returns an array of all the table model listeners
    * registered on this model.
    * @return all of this model's <code>TableModelListener</code>s
    * or an empty
    * array if no table model listeners are currently registered
    public TableModelListener[] getTableModelListeners() {
    return (TableModelListener[])listenerList.getListeners(
    TableModelListener.class);
    // Fire methods
    * Notifies all listeners that all cell values in the table's
    * rows may have changed. The number of rows may also have changed
    * and the <code>JTable</code> should redraw the
    * table from scratch. The structure of the table (as in the order of the
    * columns) is assumed to be the same.
    public void fireTableDataChanged() {
    fireTableChanged(new TableModelEvent(this));
    * Notifies all listeners that the table's structure has changed.
    * The number of columns in the table, and the names and types of
    * the new columns may be different from the previous state.
    * If the <code>JTable</code> receives this event and its
    * <code>autoCreateColumnsFromModel</code>
    * flag is set it discards any table columns that it had and reallocates
    * default columns in the order they appear in the model. This is the
    * same as calling <code>setModel(TableModel)</code> on the
    * <code>JTable</code>.
    public void fireTableStructureChanged() {
    fireTableChanged(new TableModelEvent(this, TableModelEvent.HEADER_ROW));
    * Notifies all listeners that rows in the range
    * <code>[firstRow, lastRow]</code>, inclusive, have been inserted.
    * @param firstRow the first row
    * @param lastRow the last row
    public void fireTableRowsInserted(int firstRow, int lastRow) {
    fireTableChanged(new TableModelEvent(this, firstRow, lastRow,
    TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT));
    * Notifies all listeners that rows in the range
    * <code>[firstRow, lastRow]</code>, inclusive, have been updated.
    * @param firstRow the first row
    * @param lastRow the last row
    public void fireTableRowsUpdated(int firstRow, int lastRow) {
    fireTableChanged(new TableModelEvent(this, firstRow, lastRow,
    TableModelEvent.ALL_COLUMNS, TableModelEvent.UPDATE));
    * Notifies all listeners that rows in the range
    * <code>[firstRow, lastRow]</code>, inclusive, have been deleted.
    * @param firstRow the first row
    * @param lastRow the last row
    public void fireTableRowsDeleted(int firstRow, int lastRow) {
    fireTableChanged(new TableModelEvent(this, firstRow, lastRow,
    TableModelEvent.ALL_COLUMNS, TableModelEvent.DELETE));
    * Notifies all listeners that the value of the cell at
    * <code>[row, column]</code> has been updated.
    * @param row row of cell which has been updated
    * @param column column of cell which has been updated
    public void fireTableCellUpdated(int row, int column) {
    fireTableChanged(new TableModelEvent(this, row, row, column));
    * Forwards the given notification event to all
    * <code>TableModelListeners</code> that registered
    * themselves as listeners for this table model.
    * @param e the event to be forwarded
    public void fireTableChanged(TableModelEvent e) {
    // Guaranteed to return a non-null array
    Object[] listeners = listenerList.getListenerList();
    // Process the listeners last to first, notifying
    // those that are interested in this event
    for (int i = listeners.length-2; i>=0; i-=2) {
    if (listeners==TableModelListener.class) {
    ((TableModelListener)listeners[i+1]).tableChanged(e);
    * Returns an array of all the objects currently registered
    * as <code><em>Foo</em>Listener</code>s
    * upon this <code>AbstractTableModel</code>.
    * <code><em>Foo</em>Listener</code>s are registered using the
    * <code>add<em>Foo</em>Listener</code> method.
    * <p>
    * You can specify the <code>listenerType</code> argument
    * with a class literal,
    * such as
    * <code><em>Foo</em>Listener.class</code>.
    * For example, you can query a
    * model <code>m</code>
    * for its table model listeners with the following code:
    * <pre>TableModelListener[] tmls = (TableModelListener[])(m.getListeners(TableModelListener.class));</pre>
    * If no such listeners exist, this method returns an empty array.
    * @param listenerType the type of listeners requested; this parameter
    * should specify an interface that descends from
    * <code>java.util.EventListener</code>
    * @return an array of all objects registered as
    * <code><em>Foo</em>Listener</code>s on this component,
    * or an empty array if no such
    * listeners have been added
    * @exception ClassCastException if <code>listenerType</code>
    * doesn't specify a class or interface that implements
    * <code>java.util.EventListener</code>
    public EventListener[] getListeners(Class listenerType) {
    return listenerList.getListeners(listenerType);
    * Returns the <code>Vector</code> of <code>Vectors</code>
    * that contains the table's
    * data values. The vectors contained in the outer vector are
    * each a single row of values. In other words, to get to the cell
    * at row 1, column 5: <p>
    * <code>((Vector)getDataVector().elementAt(1)).elementAt(5);</code><p>
    * @return the vector of vectors containing the tables data values
    public Vector getDataVector() {
    return dataVector;
    private static Vector nonNullVector(Vector v) {
    return (v != null) ? v : new Vector();
    * Replaces the current <code>dataVector</code> instance variable
    * with the new Vector of rows, <code>dataVector</code>.
    * <code>columnIdentifiers</code> are the names of the new
    * columns. The first name in <code>columnIdentifiers</code> is
    * mapped to column 0 in <code>dataVector</code>. Each row in
    * <code>dataVector</code> is adjusted to match the number of
    * columns in <code>columnIdentifiers</code>
    * either by truncating the <code>Vector</code> if it is too long,
    * or adding <code>null</code> values if it is too short.
    * <p>Note that passing in a <code>null</code> value for
    * <code>dataVector</code> results in unspecified behavior,
    * an possibly an exception.
    * @param dataVector the new data vector
    * @param columnIdentifiers the names of the columns
    public void setDataVector(Vector dataVector, Vector columnIdentifiers) {
    this.dataVector = nonNullVector(dataVector);
    this.columnIdentifiers = nonNullVector(columnIdentifiers);
    justifyRows(0, getRowCount());
    fireTableStructureChanged();
    * Replaces the value in the <code>dataVector</code> instance
    * variable with the values in the array <code>dataVector</code>.
    * The first index in the <code>Object[][]</code>
    * array is the row index and the second is the column index.
    * <code>columnIdentifiers</code> are the names of the new columns.
    * @param dataVector          the new data vector
    * @param columnIdentifiers     the names of the columns
    public void setDataVector(Object[][] dataVector, Object[] columnIdentifiers) {
    setDataVector(convertToVector(dataVector), convertToVector(columnIdentifiers));
    * Equivalent to <code>fireTableChanged</code>.
    * @param event the change event
    public void newDataAvailable(TableModelEvent event) {
    fireTableChanged(event);
    // Manipulating rows
    private void justifyRows(int from, int to) {
    // Sometimes the MyTreeTableModel is subclassed
    // instead of the AbstractTableModel by mistake.
    // Set the number of rows for the case when getRowCount
    // is overridden.
    dataVector.setSize(getRowCount());
    for (int i = from; i < to; i++) {
    if (dataVector.elementAt(i) == null) {
    dataVector.setElementAt(new Vector(), i);
    ((Vector)dataVector.elementAt(i)).setSize(getColumnCount());
    * Ensures that the new rows have the correct number of columns.
    * This is accomplished by using the <code>setSize</code> method in
    * <code>Vector</code> which truncates vectors
    * which are too long, and appends <code>null</code>s if they
    * are too short.
    * This method also sends out a <code>tableChanged</code>
    * notification message to all the listeners.
    * @param e this <code>TableModelEvent</code> describes
    * where the rows were added.
    *                    If <code>null</code> it assumes
    * all the rows were newly added
    public void newRowsAdded(TableModelEvent e) {
    justifyRows(e.getFirstRow(), e.getLastRow() + 1);
    fireTableChanged(e);
    * Equivalent to <code>fireTableChanged</code>.
    * @param event the change event
    public void rowsRemoved(TableModelEvent event) {
    fireTableChanged(event);
    * Obsolete as of Java 2 platform v1.3. Please use <code>setRowCount</code> instead.
    * Sets the number of rows in the model. If the new size is greater
    * than the current size, new rows are added to the end of the model
    * If the new size is less than the current size, all
    * rows at index <code>rowCount</code> and greater are discarded. <p>
    * @param rowCount the new number of rows
    public void setNumRows(int rowCount) {
    int old = getRowCount();
    if (old == rowCount) {
    return;
    dataVector.setSize(rowCount);
    if (rowCount <= old) {
    fireTableRowsDeleted(rowCount, old-1);
    else {
    justifyRows(old, rowCount);
    fireTableRowsInserted(old, rowCount-1);
    * Sets the number of rows in the model. If the new size is greater
    * than the current size, new rows are added to the end of the model
    * If the new size is less than the current size, all
    * rows at index <code>rowCount</code> and greater are discarded. <p>
    public void setRowCount(int rowCount) {
    setNumRows(rowCount);
    * Adds a row to the end of the model. The new row will contain
    * <code>null</code> values unless <code>rowData</code> is specified.
    * Notification of the row being added will be generated.
    * @param rowData optional data of the row being added
    public void addRow(Vector rowData) {
    insertRow(getRowCount(), rowData);
    * Adds a row to the end of the model. The new row will contain
    * <code>null</code> values unless <code>rowData</code> is specified.
    * Notification of the row being added will be generated.
    * @param rowData optional data of the row being added
    public void addRow(Object[] rowData) {
    addRow(convertToVector(rowData));
    * Inserts a row at <code>row</code> in the model. The new row
    * will contain <code>null</code> values unless <code>rowData</code>
    * is specified. Notification of the row being added will be generated.
    * @param row the row index of the row to be inserted
    * @param rowData optional data of the row being added
    * @exception ArrayIndexOutOfBoundsException if the row was invalid
    public void insertRow(int row, Vector rowData) {
    dataVector.insertElementAt(rowData, row);
    justifyRows(row, row+1);
    fireTableRowsInserted(row, row);
    * Inserts a row at <code>row</code> in the model. The new row
    * will contain <code>null</code> values unless <code>rowData</code>
    * is specified. Notification of the row being added will be generated.
    * @param row the row index of the row to be inserted
    * @param rowData optional data of the row being added
    * @exception ArrayIndexOutOfBoundsException if the row was invalid
    public void insertRow(int row, Object[] rowData) {
    insertRow(row, convertToVector(rowData));
    private static int gcd(int i, int j) {
    return (j == 0) ? i : gcd(j, i%j);
    private static void rotate(Vector v, int a, int b, int shift) {
    int size = b - a;
    int r = size - shift;
    int g = gcd(size, r);
    for(int i = 0; i < g; i++) {
    int to = i;
    Object tmp = v.elementAt(a + to);
    for(int from = (to + r) % size; from != i; from = (to + r) % size) {
    v.setElementAt(v.elementAt(a + from), a + to);
    to = from;
    v.setElementAt(tmp, a + to);
    * Moves one or more rows from the inlcusive range <code>start</code> to
    * <code>end</code> to the <code>to</code> position in the model.
    * After the move, the row that was at index <code>start</code>
    * will be at index <code>to</code>.
    * This method will send a <code>tableChanged</code> notification
    * message to all the listeners. <p>
    * <pre>
    * Examples of moves:
    * <p>
    * 1. moveRow(1,3,5);
    * a|B|C|D|e|f|g|h|i|j|k - before
    * a|e|f|g|h|B|C|D|i|j|k - after
    * <p>
    * 2. moveRow(6,7,1);
    * a|b|c|d|e|f|G|H|i|j|k - before
    * a|G|H|b|c|d|e|f|i|j|k - after
    * <p>
    * </pre>
    * @param start the starting row index to be moved
    * @param end the ending row index to be moved
    * @param to the destination of the rows to be moved
    * @exception ArrayIndexOutOfBoundsException if any of the elements
    * would be moved out of the table's range
    public void moveRow(int start, int end, int to) {
    int shift = to - start;
    int first, last;
    if (shift < 0) {
    first = to;
    last = end;
    else {
    first = start;
    last = to + end - start;
    rotate(dataVector, first, last + 1, shift);
    fireTableRowsUpdated(first, last);
    * Removes the row at <code>row</code> from the model. Notification
    * of the row being removed will be sent to all the listeners.
    * @param row the row index of the row to be removed
    * @exception ArrayIndexOutOfBoundsException if the row was invalid
    public void removeRow(int row) {
    dataVector.removeElementAt(row);
    fireTableRowsDeleted(row, row);
    // Manipulating columns
    * Replaces the column identifiers in the model. If the number of
    * <code>newIdentifier</code>s is greater than the current number
    * of columns, new columns are added to the end of each row in the model.
    * If the number of <code>newIdentifier</code>s is less than the current
    * number of columns, all the extra columns at the end of a row are
    * discarded. <p>
    * @param newIdentifiers vector of column identifiers. If
    *                    <code>null</code>, set the model
    * to zero columns
    public void setColumnIdentifiers(Vector columnIdentifiers) {
    setDataVector(dataVector, columnIdentifiers);
    * Replaces the column identifiers in the model. If the number of
    * <code>newIdentifier</code>s is greater than the current number
    * of columns, new columns are added to the end of each row in the model.
    * If the number of <code>newIdentifier</code>s is less than the current
    * number of columns, all the extra columns at the end of a row are
    * discarded. <p>
    * @param newIdentifiers array of column identifiers.
    *                    If <code>null</code>, set
    * the model to zero columns
    public void setColumnIdentifiers(Object[] newIdentifiers) {
    setColumnIdentifiers(convertToVector(newIdentifiers));
    * Sets the number of columns in the model. If the new size is greater
    * than the current size, new columns are added to the end of the model
    * with <code>null</code> cell values.
    * If the new size is less than the current size, all columns at index
    * <code>columnCount</code> and greater are discarded.
    * @param columnCount the new number of columns in the model
    public void setColumnCount(int columnCount) {
    columnIdentifiers.setSize(columnCount);
    justifyRows(0, getRowCount());
    fireTableStructureChanged();
    * Adds a column to the model. The new column will have the
    * identifier <code>columnName</code>, which may be null. This method
    * will send a
    * <code>tableChanged</code> notification message to all the listeners.
    * This method is a cover for <code>addColumn(Object, Vector)</code> which
    * uses <code>null</code> as the data vector.
    * @param columnName the identifier of the column being added
    public void addColumn(Object columnName) {
    addColumn(columnName, (Vector)null);
    * Adds a column to the model. The new column will have the
    * identifier <code>columnName</code>, which may be null.
    * <code>columnData</code> is the
    * optional vector of data for the column. If it is <code>null</code>
    * the column is filled with <code>null</code> values. Otherwise,
    * the new data will be added to model starting with the first
    * element going to row 0, etc. This method will send a
    * <code>tableChanged</code> notification message to all the listeners.
    * @param columnName the identifier of the column being added
    * @param columnData optional data of the column being added
    public void addColumn(Object columnName, Vector columnData) {
    columnIdentifiers.addElement(columnName);
    if (columnData != null) {
    int columnSize = columnData.size();
    if (columnSize > getRowCount()) {
    dataVector.setSize(columnSize);
    justifyRows(0, getRowCount());
    int newColumn = getColumnCount() - 1;
    for(int i = 0; i < columnSize; i++) {
    Vector row = (Vector)dataVector.elementAt(i);
    row.setElementAt(columnData.elementAt(i), newColumn);
    else {
    justifyRows(0, getRowCount());
    fireTableStructureChanged();
    * Adds a column to the model. The new column will have the
    * identifier <code>columnName</code>. <code>columnData</code> is the
    * optional array of data for the column. If it is <code>null</code>
    * the column is filled with <code>null</code> values. Otherwise,
    * the new data will be added to model starting with the first
    * element going to row 0, etc. This method will send a
    * <code>tableChanged</code> notification message to all the listeners.
    public void addColumn(Object columnName, Object[] columnData) {
    addColumn(columnName, convertToVector(columnData));
    // Implementing the TableModel interface
    * Returns the number of rows in this data table.
    * @return the number of rows in the model
    public int getRowCount() {
    return dataVector.size();
    * Returns the number of columns in this data table.
    * @return the number of columns in the model
    public int getColumnCount() {
    return columnIdentifiers.size();
    * Returns the column name.
    * @return a name for this column using the string value of the
    * appropriate member in <code>columnIdentifiers</code>.
    * If <code>columnIdentifiers</code> does not have an entry
    * for this index, returns the default
    * name provided by the superclass
    public String getColumnName(int column) {
    Object id = null;
    // This test is to cover the case when
    // getColumnCount has been subclassed by mistake ...
    if (column < columnIdentifiers.size()) {
    id = columnIdentifiers.elementAt(column);
    return (id == null) ? getDefaultColumnName(column)
    : id.toString();
    * Returns true regardless of parameter values.
    * @param row the row whose value is to be queried
    * @param column the column whose value is to be queried
    * @return true
    public boolean isCellEditable(int row, int column) {
    return true;
    * Returns an attribute value for the cell at <code>row</code>
    * and <code>column</code>.
    * @param row the row whose value is to be queried
    * @param column the column whose value is to be queried
    * @return the value Object at the specified cell
    * @exception ArrayIndexOutOfBoundsException if an invalid row or
    * column was given
    public Object getValueAt(int row, int column) {
    Vector rowVector = (Vector)dataVector.elementAt(row);
    return rowVector.elementAt(column);
    * Sets the object value for the cell at <code>column</code> and
    * <code>row</code>. <code>aValue</code> is the new value. This method
    * will generate a <code>tableChanged</code> notification.
    * @param aValue the new value; this can be null
    * @param row the row whose value is to be changed
    * @param column the column whose value is to be changed
    * @exception ArrayIndexOutOfBoundsException if an invalid row or
    * column was given
    public void setValueAt(Object aValue, int row, int column) {
    Vector rowVector = (Vector)dataVector.elementAt(row);
    rowVector.setElementAt(aValue, column);
    fireTableCellUpdated(row, column);
    // Protected Methods
    * Returns a vector that contains the same objects as the array.
    * @param anArray the array to be converted
    * @return the new vector; if <code>anArray</code> is <code>null</code>,
    *                    returns <code>null</code>
    protected static Vector convertToVector(Object[] anArray) {
    if (anArray == null) {
    return null;
    Vector v = new Vector(anArray.length);
    for (int i=0; i < anArray.length; i++) {
    v.addElement(anArray[i]);
    return v;
    * Returns a vector of vectors that contains the same objects as the array.
    * @param anArray the double array to be converted
    * @return the new vector of vectors; if <code>anArray</code> is
    *                    <code>null</code>, returns <code>null</code>
    protected static Vector convertToVector(Object[][] anArray) {
    if (anArray == null) {
    return null;
    Vector v = new Vector(anArray.length);
    for (int i=0; i < anArray.length; i++) {
    v.addElement(convertToVector(anArray[i]));
    return v;

  • One payment for several invoices to one vendor

    Hi,
    I have one  question related to the payment run F110. In many cases we pay several invoices in one payment to a particular vendor. Then in reference - only one invoice number is visible. Then we receive loads of phone calls with questions about a list of invoices included in a particular payment.
    Could you please advise if there is an option to have all paid invoices visible in the payment reference field or is there a possibility of generating payment advices when the payment is generated in SAP.
    We are using paymethod H& K for payment to vendor.
    Kindly give us a solution in this regard.
    With Best Regards,
    Amit Paul

    Hi,
    We can get the details of all invoices which are paid with one payment document in tables REGUH & REGUP.
    You have built the custome payment advise Form using the above tables.
    You can display the required details in F110 frm menu select Edit -Paments -> Payment List
    Thanks,
    Vijay

  • One trigger for Multiple tables

    Hi all,
    I want write a trigger for mutiple tables.
    For Example,
    In database schema,some user update one table.I want to capture what the table and capture old value and new value.
    the above example for all insert and delete also.
    Regards
    Fame

    Hi, Fame,
    Sorry, a trigger only works on one table, so you need a separate trigger on each separate table.
    All of those triggers can call a common procedure.
    If you'd like to give a more detailed description of what you want to do, using two or three tables, then someone can give you more detailed instructions on how to do it.
    Always say which version of Oracle you're using.

  • Using MVC - One model for each set of data, or one model for all?

    Hi there,
    I'm using MVC for my app, which pulls data from other sites, (news, blogs, video, twitter). Would I have a model for each set of data, or one for all that fires differint events depending on the data?
    Thanks in advance!

    Attached please find the screenshots and help me out. You can maximize to view em.
    Thanks,
    Attachments:
    Air water2000.vi ‏490 KB

  • One spool for several archivelink object

    Hello,
    I would like to create a single pool to print several archivelink object ?
    THanks
    Best regards

    Hi Aurélien :
      Could you explain your solution?.
      I have to create one spool for each document linked to a specific invoice and don't know how to do it.
    Best Regards,
    Carlos.

  • One order for several maintenance equipment

    Hi
    Is it possible on SAP-PM to create an order for several equipment
    Thinks

    hi
    The object list is a central part of the order. You use it to assign technical objects, notifications or objects, which are identified by a combination of material and serial numbers, to the order.
    When you make entries in the object list for an order, you are linking it to the objects you enter. When you make entries in the object list for an order, you are linking it to the objects you enter.
    Even if no reference object has been entered for the order on the header data screen, you can still assign technical objects, notifications or objects, which are identified by a combination of material and serial numbers, to the order in the object list
    Two features are available for the object list:
    An object list, in which you can enter technical objects (equipment, functional locations, assemblies) and notifications
    An object list, in which you can enter objects, which are identified by a combination of material and serial numbers, and notifications
    Which of these two versions is used in the order depends on:
    The choice of reference object in the notification/order
    The view setting for the Reference object frame in the notification/order
    If you create the order with reference to a notification, for which a reference object has been entered, the system copies the reference object from the notification as the reference object for the order. The system writes the notification number in the order header and in the object list for the order.
    You can group together several notifications that can be processed together using a "worklist for notifications" for a maintenance or service order. In this case, the notifications are also included in the object list of the order
    check
    http://help.sap.com/saphelp_erp2005/helpdata/en/5b/ae2ed74b8611d182ba0000e829fbfe/content.htm
    -ashok

  • One BMP for several postgresql tables

    Hi all,
    I want to solve a problem with a BMP which represent many tables in a Postgres database. Each tables have 3 columns : id, name and image.
    My problem is when I want to get the lines from a table, the ejbLoad() method is not done by the bean when the id have ever been known before for an other table :
    example :
    Table1
    id=1 ; name=toto ; image=toto.jpg
    id=2 ; name=tata ; image=tata.jpg
    id=3 ; name=titi ; image=titi.jpg
    Table2
    id=2 ; name=tutu ; image=tutu.jpg
    When I get all lines from Table1, it works fine but when I ask for Table2, it returns : id=2 ; name=tata ; image=tata.jpg instead of id=2 ; name=tutu ; image=tutu.jpg.
    Is somebody knows how to force the ejbLoad() to look in the database or knows another solution to solve this problem ???
    Thanks a lot for response.
    Nicolas

    Hello Nicolas,
    I'm not an expert in this field by any means so please feel free to question anything I say :)
    Please correct me if I'm wrong, but I don't think you can manage (without terrible pain and suffering, if even then :)) a BMP Entity Bean representing more then one table unless the relationship between the represented tables is one-to-one (even then I see a lot of problems with primary keys).
    I understand that this might be a software design requirement, but I think you'll have a lot of problems with it. Also, if you consider Table 2 to be an 'extension' to Table 1 (which I don't suggest doing) then you have a referential integrity problem.
    In my opinion (and this I interpreted from people that are experts and authority in the field) an Entity Bean is really meant to be mapped to only one table in a (relational) database.
    Please consider this if it's an option.
    Nikola

  • One form for multiple tables

    Hey,
    I'm Pretty new to Access, as I've been given units to cover for my college course.  Unfortunately my tutor has had this dumped on him too (so he's kinda self teaching as he goes as well)....
    My issue is that I am trying to create a single form that will allow for all the information to be entered onto, which will then disseminate that info to the separate tables.
    The database is a simple film database that has 8 tables in total. Seven are data tables (Filminfo; Certificate; Genre; Series; Role; Producer; Actor) and the seventh is a central table that is filled with keys as a connection for them all. Series is also
    an off shoot from the filminfo table. I do have a pic, but I couldn't attach an image until my account was verified!
    This is how we were advised to set it out and as far as I can tell the other parts that have been built are working. I know there is a way to do it, but tonight the internet is failing me, that, or my lack of understanding
    exactly what I'm reading.
    Therefore any help that could be offered by anybody that can work out what I'm rambling on about, would be most appreciated (even more so if in layman's terms)

    What you have in relational database terms is a 7-way many-to-many relationship type between the 'referenced' tables.  This is what your eighth table is modelling by resolving the many-to-many relationship type into seven one-to-many relationship types.
    The problem here is that you are going to end up with a huge amount of 'redundancy' in the table modelling the relationship type.  At least some of the other tables represent entity types of which there can be more that one instance per film, e.g. there
    will be more than one actor in most films.  So let's say you record four actors for a film.  That means four rows in the table, but you then have to record the producer of the film four times as well, entering the same foreign key value into all
    four rows.  That's what's meant by redundancy.  Redundancy is a bad thing because it leaves the table open to the risk of 'update anomalies', e.g. two or more different producers could be inadvertently entered in different rows of the four. 
    Which is the correct one?  There's no way of knowing.
    So what relationship types do we really have here?  Let's concentrate on films and actors.  Each film can have many actors, and each actor can appear in many films (think Michael Caine!), so the relationship type is many-to-many.  Now a many-to-many
    relationship type cannot be modelled directly between two tables, it's done by a third table which resolves it into two one-to-many relationship types.  So in broad outline the tables would be like this:
    Films
    ....FilmID  (PK)
    ....Title
    ....ReleaseDate
    ....etc
    Actors
    ....ActorID  (PK)
    ....FirstName
    ....LastName
    ....etc
    and to model the relationship type:
    FilmActors
    ....FilmID  (FK)
    ....ActorID  (FK)
    ....Role
    The primary key of this last table is a composite one made up of the two foreign keys FilmID and ActorID.
    Karl's already given you a clue how to represent this; by means of a form/subform.  The form would be based on Films and the subform on FilmActors.  For a simple example of this basic type of many-to-many relationship type and how to represent it
    in a form/subform take a look at StuidentCourses.zip in my public databases folder at:
    https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
    If you have difficulty opening the link copy its text (NB, not the link location) and paste it into your browser's address bar.
    This little demo file illustrates a number of interfaces using forms, but just look at the conventional form/subform set-up.  The other two are just there because from time to time people have asked how to do it in these other ways.  Quite why they
    want to is another matter!
    My demo just has one subform, but there's no reason why you can't have multiple subforms in a films form of course, each for a different related entity type, each linked to the parent form on FilmID.  Tip:  to save space put ach subform on a separate
    page of a tab control, with the main film data in the parent form above the tab control so it's visible permanently as you move between different pages of the tab control.
    BTW in my StudentCourses demo try typing into the combo box in the subform the name of a new course not currently listed, French say, and see what happens.  Take a look at the code in the combo box's NotInList event procedure to see how it works. 
    For other uses of this event procedure take a look at the NotInlist demo file in the same OneDrive folder.
    I can sympathise with your tutor BTW.  My next door neighbour is head of the art department at a high school, but she has to teach maths also!
    PS:  I included Role as column in the FilmActors table, but what about Alec Guinness in Kind Hearts and Coronets? (google it if you're not familiar with the film)  How do you think you'd handle that situation?
    Ken Sheridan, Stafford, England

  • How to use one URL for several Oracle AS?

    Hi folks,
    how do I use one URL to access several application servers (i.e. for different applications).
    Example:
    We have one URL:
    www.test.com
    In our DMZ, wie have three application servers and one web cache:
    test1.intranet.com:7777
    test2.intranet.com:7777
    test3.intranet.com:7777
    webcache.intranet.com:8000
    One application server is no problem. In Web Cache, i just map site www.test.com:443 to AS test1.intranet.com:7777.
    But what is the correct setting, to access all three Oracle AS over one URL? I tried URL PATH Prefix. Then i am able to access all three Oracle AS, but the application server does not know the Path.
    Example for mapping:
    www.test.com:443/server2 -> test2.intranet.com:7777
    When I access www.test.com:443/server2, I get redirected to the correct AS (test2.intranet.com:7777), but the Oracle AS does not know the path /server2.
    How do I have to configure the Oracle AS?
    Thanks in advance and best regards.

    I setted up a proxy and at first glance,
    it works fine. The problem are internal links. Some links redirect to the
    machine name, which is of course not accessible from outside our dmz.
    My httpd.conf entries:
    ProxyPass /test1infra/ http://test1.intranet.com:7777/
    ProxyPassReverse /test1infra/ http://test1.intranet.com:7777/
    ProxyPass /test1mid/ http://test1.intranet.com:7778/
    ProxyPassReverse /test1mid/ http://test1.intranet.com:7778/
    When I now access (for example) www.test.com/test1infra/pls/orasso I get
    redirected to www.test.com/pls/orasso, which is another Oracle AS!
    How can I prevent my OracleAS doing this? It has to "know" that all its internal urls need a url path prefix.

  • One effect for several clips

    is there a way to throw a color filter for example onto a group of several clips at once ? I know the general procedure,like when the whole group of clips are highlighted and you drop one in ,the whole group of clips light up brown but only one clip holds the actual effect menu.
    Thanks !!!!!!

    There are a few ways to do this. The simple way is to apply the filter to one clip. Open it into the viewer and change the parameters as you like. Select all the other clips and drag the filter name from the viewer onto the other clips. They all have the same setting.

Maybe you are looking for