Problem in adding rows in a table

Hello All ,
I am having a strange problem in adding table rows here . All things seems to be in place . But when i click the button nothing happens . I have worked on much more complex tables and added rows safely but i cant understand what's happening here . I have saved the form as Dynamic XML form , interactive form , I have set the pagination of the repeating rows . But Heck !!! It's not working at all . I am totally confused . More over while i drag the table from the object palette an error appears and LC closes down .But when i click on the table at the toolbar and inserted table over there then it shows no error . What's happening ?? Any help is greatly appreciated .
Script : form1.Page1.Subform1.Button1::click - (JavaScript, client)
form1.Page1.Subform1.Table1.Row4.instanceManager.addInstance(1);
Thanks .
Bibhu.

Hi,
The way you described reminded me of another thread, where the index was not straightforward: Saving finished Form duplicates some subForms
You can post your form to Acrobat.com, hit the Share and Publish buttons when prompted and then copy / paste the link here.
Niall

Similar Messages

  • How to see Added Row in a table

    Hi
    i have taken atable with visible row count 5 and ihave taken a button to add new row for that i have written code in action of that button,when ever a new row is added  that added row below the 5th row, to see that added row ishould click on UP button of table,*what i want i as soon as new row added 1st row of table should go up and remaing 5 rows should appear(2,3,4,5,6 rows)  ,suppose if i click on add row 2nd row should go up and remaingrows should appear(3,4,5,6 rows).please help me out of this problem
    Thanks
    Kishore

    Hi Kishore,
    Try this.
    public void onActionAddRow(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionAddRow(ServerEvent)
        int row = wdContext.nodeCustomer().size();
        IPrivateTestCompView.ICustomerElement custElm = wdContext.createCustomerElement();
         custElm.setCname("");
         custElm.setCno("");
         custElm.setCsal("");
         wdContext.nodeCustomer().addElement(custElm);
         //for swap the rows
         for(int i=1;i<=row;i++)
              wdContext.nodeCustomer().swapElements( 0, i );     
        //@@end
    Regards,
    Mithu

  • Problem in displaying rows in a table.

    Hi
    i have a query region and a results table .
    i have a details button in results table which will fetch results in to the details table.
    once i click the details button of a selected row i get the results into details table.
    now the problem is after applying (commiting transaction) if i click on the another rows details button details table results are not changing..
    what might be the problem...

    Hi,
    i have a vendor name which is lov item.from there i will get the vendorid
    In islovevent() i am capturing that value and passing the same to the initdetails in amimpl
    which in turn calls initquery in voimpl
    the problem is page details are refrshing fine if i dont add a row to the table .the problem arises only when i add a row...
    when i add a row and try saving it.it saves properly. but when i go to vendor lov and selects another vendor ..the details are remianing same....
    the code i used for above :
    CO CODE:
    if (pageContext.isLovEvent())
    String lovInputSourceId = pageContext.getLovInputSourceId();
    if ("SearchVendorName".equals(lovInputSourceId))
    String vendorId=pageContext.getParameter("VendorIDfrm");
    Serializable[] parameters={vendorId };
    am.invokeMethod("initExemptionDetails",parameters);
    AM CODE:
    public void initExemptionDetails(String vendorid){
    ExemptionVOImpl vo = getExemptionVO1();
    if (vo == null) {
    throw new OAException("CLE", "CLE_F272_VO_NULL");
    vo.initExemptionQuery(vendorid);
    VOIMPL CODE:
    public void initExemptionQuery(String vendor_id){
    setWhereClause(null);
    reset();
    setNamedWhereClauseParam("VENDOR_ID",Integer.parseInt(vendor_id));
    executeQuery();
    AND LAST BUT NOT LEAST WHICH IS CAUSING THE ERROR CODE FOR ADDING A ROW:
    ExemptionVOImpl vo = getExemptionVO1();
    if (vo != null)
    vo.setMaxFetchSize(0);
    vo.executeQuery();
    Row row = vo.createRow();
    if (vo.getFetchedRowCount() == 0)
    vo.insertRow(row);
    else
    { vo.insertRowAtRangeIndex(vo.getRowCountInRange(),row); }
    vo.setCurrentRow(row);
    row.setNewRowState(row.STATUS_INITIALIZED);
    please help me out:::

  • Reading the Data from dynamically added rows of a table...

    Hi,
                  I am using adobe interactive form (WD ABAP) in which i am adding the table rows dynamically (using Jscript code).  I have to fech these data into an internal table. But I can read only the first row data..
                  Also While adding rows dynamically the same data is repeating for the consecutive rows..
                  I have found many similar posts in sdn, but i cannot get the solution. They have mentioned about adding in WDDOINIT method. Can anyone explain me what should be done,..?
    1) How to solve repeatative data while adding rows..?
    2) How to read dynamically added row data during runtime into internal table..?
    Thanks,
    Surya.

    Discussed @ SDN lot of time before. Have a look at any of below threads:-
    Dynamic table in interactive form...
    Make dynamic tables in Adobe Interactive forms
    Adding Rows dynamically upon clicking the button
    How to get values to WebDynpro ABAP from dynamic table?
    Chintan

  • Problem in adding row in JTable

    Hi,
    I was trying to add a row in a table when the add button is clicked. But i am missing something that's why i am getting some exceptions.
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableColumnModel;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableColumn;
    import javax.swing.JButton;
    import java.util.Vector;
    import java.awt.event.*;
    public class TableDemo extends JFrame implements ActionListener {
            int rows = 1;
            int cols = 4;
            JTable table = new JTable();
            TModel model = new TModel();
            JButton button = new JButton("Add");
            Object[][] values = {
                                          {"Java","Linux","Hello","World"}
            class TModel extends DefaultTableModel {
                    public boolean isCellEditable(int parm1, int parm2){
                            return true;
                    public int getRowCount(){
                            return rows;
                    public int getColumnCount(){
                            return cols;
                    public void setValueAt(Object aValue, int aRow, int aColumn) {
                            values[aRow][aColumn] = aValue;
                    public Object getValueAt(int aRow, int aColumn) {
                            return values[aRow][aColumn];
                    public String getColumnName(int column) {
                            return "Error " + column;
            public TableDemo(String title){
                    super(title);
                    JPanel panel = new JPanel();
                    panel.setLayout(new BorderLayout());
                    table.setModel(model);
                    // Make the columns with gradually increasing width:
                    String columnName[] = {"Column", "Operator", "Values", "Logical"};
                    for (int i = 0; i < columnName.length; i++) {
                            TableColumn column = new TableColumn(i);
                            int width = 100+20*i;
                            column.setPreferredWidth(width);
                            column.setHeaderValue(columnName);
    model.addColumn(column);
    // Create the table, place it into scroll pane and place
    // the pane into this frame.
    JScrollPane scroll = new JScrollPane();
    // The horizontal scroll bar is never needed.
    scroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    scroll.getViewport().add(table);
    button.addActionListener(this);
    panel.add(scroll, BorderLayout.CENTER);
    panel.add(button, BorderLayout.SOUTH);
    getContentPane().add(panel, BorderLayout.CENTER);
    public void actionPerformed(ActionEvent ae) {
    if(ae.getSource() == button) {
    Vector tempRow = new Vector();
    model.setRowCount(rows++);
    tempRow.addElement("One");//new JComboBox());
    tempRow.addElement("Two");
    tempRow.addElement("Three");
    tempRow.addElement("Four");
    model.addRow(tempRow);
    model.fireTableDataChanged();
    System.out.println("Hi");
    public static void main(String[] args) {
    TableDemo frame = new TableDemo("Table double click on the cell to edit.");
    frame.setSize(new Dimension(640, 400));
    frame.validate();
    frame.setVisible(true);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    The code is generating the follwoing exception when add button is clicked :
    java.lang.ArrayIndexOutOfBoundsException: 2 > 1
    at java.util.Vector.insertElementAt(Vector.java:557)
    at javax.swing.table.DefaultTableModel.insertRow(DefaultTableModel.java:343)
    at javax.swing.table.DefaultTableModel.addRow(DefaultTableModel.java:319)
    at com.saijava.TableDemo.actionPerformed(TableDemo.java:96)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    java.lang.ArrayIndexOutOfBoundsException: 1
    at com.saijava.TableDemo$TModel.getValueAt(TableDemo.java:55)
    at javax.swing.JTable.getValueAt(JTable.java:1771)
    at javax.swing.JTable.prepareRenderer(JTable.java:3724)
    at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:1149)
    at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1051)
    at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:974)
    at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
    at javax.swing.JComponent.paintComponent(JComponent.java:541)
    at javax.swing.JComponent.paint(JComponent.java:808)
    at javax.swing.JComponent.paintChildren(JComponent.java:647)
    at javax.swing.JComponent.paint(JComponent.java:817)
    at javax.swing.JViewport.paint(JViewport.java:722)
    at javax.swing.JComponent.paintChildren(JComponent.java:647)
    at javax.swing.JComponent.paint(JComponent.java:817)
    at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
    at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
    at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
    at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
    at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:189)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:478)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    Umm. A few tips:
    1) You should NOT instantiate objects / initialize variables outside the constructor. And please use access-modifiers.
    2) Do not make your main-class extend JFrame or implement ActionListener. Instead create a JFrame in main and use an anonymous inner class as an ActionListener
    3) Why are you extending DefaultTableModel? To set the the column names as Error1, etc.? You can set the column names by using an appropriate constructor for JTable or by using setColumnIdentifiers(...). See the API.
    4) The actual problem most likely lies here:
    int rows = 1;
    int cols = 4;Why are you defining these outside the TableModel?

  • Adding row to a table in adobe forms

    Hi Experts,
    I have requirement in my form.
    where i will be adding a row to a table when ever user clicks on the add row button.
    pleae let me know how can i achieve this.
    Thanks,
    Santosh

    https://wiki.sdn.sap.com/wiki/display/ABAP/AdobeFormsfrom+Scratch

  • Adding rows to a table

    Hi All,
    My application has few JSP pages , one of the JSP page generates HTML table with textboxes & hyperlinks(in table cells) populated with data pulled from the database. I have an "Add" button to add new empty rows. Add I'm performing via DOM. And this works well. But when I click the hyperlink go to another jsp page get data and return to first page(page with table) page all changes(added rows ) are disappeared....
    How do I solve this................ Thanks in advance.

    one thing to solve this is to put a variable(# of rows that you added) into session, hidden element, or db as record.. then if you go to the next page and go back to the previous page.. you will request for the variable(# of rows that you added) then you will use it in your loop in javascript to call the function that adds the rows

  • Word VBA Macro problem with adding rows to table for BAPI call

    Hello all,
    I have code in Word macro which is reading file from the disk and converting it to binary. This binary should be inserted in the internal table (Dim As object) for further posting. Code is modified from the note 945682.
    Here is the code:
    Sub Read_File(FileNameFull As String)
    Dim oBinaryDataTab As Object
    Dim oBinaryDataRow As Object
    Dim lBytesToRead As Long
    Dim iNumChars, i As Integer
    Dim s1022, s2044, sX As String
    Dim fs, f, ts As Object
    Dim ReadFile As String
    ' Actually does the work of uploading the document in 1022 byte pieces.
    ReadFile = 0
    Set fs = CreateObject("Scripting.FileSystemObject")
    Set f = fs.GetFile(FileNameFull)
    Set ts = f.OpenAsTextStream(1, -2)
    lBytesToRead = f.Size
    ReadFile = f.Size
    Do While ts.AtEndOfStream <> True
    If lBytesToRead < 1022 Then
    iNumChars = lBytesToRead
    Else
    iNumChars = 1022
    End If
    s1022 = ts.Read(iNumChars)
    s2044 = ""
    For i = 1 To Len(s1022)
    sX = Hex$(CByte(Asc(Mid(s1022, i, 1))))
    If Len(sX) = 1 Then
    sX = "0" + sX
    End If
    s2044 = s2044 + sX
    Next i
    Set oBinaryDataRow = oBinaryDataTab.Rows.Add
    oBinaryDataRow("LINE") = s2044
    lBytesToRead = lBytesToRead - iNumChars
    Loop
    End Sub
    But on the row "Set oBinaryDataRow = oBinaryDataTab.Rows.Add" code just stopped to work.
    Can somebody give me a hint how to proceed?
    I also tried to Dim oBinaryDataTable As Table and oBinaryDataRow as Row with the same result.
    oBinaryDataTable will be used as to post file to SAP system without GUI FTP connection. Because of that it must be converted to binary form.
    TIA
    Gordan
    P.S. Message to Moderator: Please, be so kind, and put the message in the proper forum if this is not this one.

    Self Resloved

  • Adding row at a table in indesign CS6 from javascript

    I have a table in my indesign page.It has one column and several rows. I want to add a row at the begining of the table  and add some text content to it.
    I tried some provided code but none have worked.
    This is how i reference the table object.
    var mytable =myPage.textFrames.item(0).tables.item(0);
    I tried each the following but none worked and gave an error
       mytable.rows[0].cells[0].insertionPoints[0].contents =  "TEST TEST";
       mytable.rows.add( LocationOptions.AFTER, mytable.rows[-1] );
       mytable.rows.add( LocationOptions.Before, mytable.rows[0] );
    What should i do?

    I am actually looping over every page in my indesign file, every page contains 1 textframe with text inside it. I add a new textframe to the page and then move the new textframe content into the begginning of the existing textframe then delete the created one
    myPage = myDocument.pages.item(x);
    myTextFrame = myPage.textFrames.item(0);
    newframe = myPage.textFrames.add();
    newframe.contents ="TEST TEST" ;
    newframe.paragraphs[0].appliedFont = app.fonts.item("Times New Roman");
    newframe.paragraphs[0].fontStyle = "Bold";
                                                newframe.parentStory.paragraphs.item(0).words.item(0).move(LocationOptions.AT_BEGINNING,m yTextFrame);
    newframe.remove();
    This was working correctly on all files until i faced one with a table. The code stoppes at this line
    newframe.parentStory.paragraphs.item(0).words.item(0).move(LocationOptions.AT_BEGINNING,my TextFrame);
    and Indesign becomes Not Responding
    The table is visually inside the page textframe. I need to do the same logic when having a table i couldnt call the move function when the page has a table and not text in its textframe. I thought abt accessing the table in the page and adding a row at the beginning then writing in it what i need, alternative to what am doing with normal text instead of creating new frame and then moving text to original textframe at beginning.
    When my textframe.content="" i know that there is a table and i need to alter it. Otherwise i do add new frame ,move content then delete.
    Any suggestions?

  • Adding rows to new table.

    Hi,
    i was wondering if it is possible to Intially start with one row in a jtable and add rows( one by one) when one of the colums in the column get focus or something like that ...
    can someone help me with this one...
    thanks.

    Define interface MutableTableModel and implement it.
    * @(#)MutableTableModel.java
    * All Rights Reserved.
    * This software is the proprietary information of
    * Use is subject to license terms.
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.TableModel;
    import java.util.Vector;
    public interface MutableTableModel extends TableModel
         public static final String UNDO_ACTION="Undo";
         public static final String REDO_ACTION="Redo";
         public static final String APPLY_ACTION="Apply";
         public static final String CONFIRM_ACTION="OK";
         public static final String DISCARD_ACTION="Restore";
    * Returns the number of rows in the model. A
    * <code>JTable</code> uses this method to determine how many rows it
    * should display. This method should be quick, as it
    * is called frequently during rendering.
    * @return the number of rows in the model
    * @see #getColumnCount
    public int getRowCount();
    * Returns the number of columns in the model. A
    * <code>JTable</code> uses this method to determine how many columns it
    * should create and display by default.
    * @return the number of columns in the model
    * @see #getRowCount
    public int getColumnCount();
    * Returns the name of the column at <code>columnIndex</code>. This is used
    * to initialize the table's column header name. Note: this name does
    * not need to be unique; two columns in a table can have the same name.
    * @param     columnIndex     the index of the column
    * @return the name of the column
    public String getColumnName(int columnIndex);
    * Returns the most specific superclass for all the cell values
    * in the column. This is used by the <code>JTable</code> to set up a
    * default renderer and editor for the column.
    * @param columnIndex the index of the column
    * @return the common ancestor class of the object values in the model.
    public Class getColumnClass(int columnIndex);
    * Returns true if the cell at <code>rowIndex</code> and
    * <code>columnIndex</code>
    * is editable. Otherwise, <code>setValueAt</code> on the cell will not
    * change the value of that cell.
    * @param     rowIndex     the row whose value to be queried
    * @param     columnIndex     the column whose value to be queried
    * @return     true if the cell is editable
    * @see #setValueAt
    public boolean isCellEditable(int rowIndex, int columnIndex);
    * Returns the value for the cell at <code>columnIndex</code> and
    * <code>rowIndex</code>.
    * @param     rowIndex     the row whose value is to be queried
    * @param     columnIndex      the column whose value is to be queried
    * @return     the value Object at the specified cell
    public Object getValueAt(int rowIndex, int columnIndex);
    * Sets the value in the cell at <code>columnIndex</code> and
    * <code>rowIndex</code> to <code>aValue</code>.
    * @param     aValue          the new value
    * @param     rowIndex     the row whose value is to be changed
    * @param     columnIndex      the column whose value is to be changed
    * @see #getValueAt
    * @see #isCellEditable
    public void setValueAt(Object aValue, int rowIndex, int columnIndex);
    * Adds a listener to the list that is notified each time a change
    * to the data model occurs.
    * @param     l          the TableModelListener
    public void addTableModelListener(TableModelListener l);
    * Removes a listener from the list that is notified each time a
    * change to the data model occurs.
    * @param     l          the TableModelListener
    public void removeTableModelListener(TableModelListener l);
    * 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 event this <code>TableModelEvent</code> describes
    * where the rows were added.
    *                    If <code>null</code> it assumes
    * all the rows were newly added
    * @see #getDataVector
    public void newRowsAdded(TableModelEvent event);
    * Equivalent to <code>fireTableChanged</code>.
    * @param event the change event
    public void rowsRemoved(TableModelEvent event);
    * 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
    * @see #setNumRows
    public void setColumnIdentifiers(Vector newIdentifiers);
    * 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
    * @see #setNumRows
    public void setColumnIdentifiers(Object[] newIdentifiers);
    * 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>
    * @see #setColumnCount
    public void setRowCount(int rowCount);
    * 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
    * @see #setColumnCount
    public void setColumnCount(int columnCount);
    * Adds a column to the model. The new column will have the
    * identifier <code>columnName</code>. 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
    * @exception IllegalArgumentException if <code>columnName</code>
    *                              is <code>null</code>
    public void addColumn(Object columnName);
    * Adds a column to the model. The new column will have the
    * identifier <code>columnName</code>. <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
    * @exception IllegalArgumentException if <code>columnName</code>
    *                              is <code>null</code>
    public void addColumn(Object columnName, Vector columnData);
    * 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.
    * @see #addColumn(Object, Vector)
    public void addColumn(Object columnName, Object[] columnData);
    * 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);
    * 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);
    * 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);
    * 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);
    * Moves one or more rows starting at <code>startIndex</code>
    * to <code>endIndex</code> in the model to the <code>toIndex</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);<p>
    * a|B|C|D|e|f|g|h|i|j|k - before
    * a|e|f|B|C|D|g|h|i|j|k - after<p>
    * 2. moveRow(6,7,1);<p>
    * a|b|c|d|e|f|G|H|i|j|k - before
    * a|G|H|b|c|d|e|f|i|j|k - after
    * </pre>
    * @param startIndex the starting row index to be moved
    * @param endIndex the ending row index to be moved
    * @param toIndex the destination of the rows to be moved
    * @exception ArrayIndexOutOfBoundsException if any of the indices
    * are out of range; or if <code>endIndex</code>
    *                    is less than <code>startIndex</code>
    public void moveRow(int startIndex, int endIndex, int toIndex);
    * 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) ;
    * Inserts a column at <code>column</code> in the model. The new column
    * will contain <code>null</code> values unless <code>columnData</code>
    * is specified. Notification of the column being added will be generated.
    * @param column the column index of the column to be inserted
    * @param columnData optional data of the column being added
    * @exception ArrayIndexOutOfBoundsException if the column was invalid
    public void insertColumn(int column, Object columnName, Vector columnData);
    * Inserts a column at <code>column</code> in the model. The new column
    * will contain <code>null</code> values unless <code>columnData</code>
    * is specified. Notification of the column being added will be generated.
    * @param column the column index of the column to be inserted
    * @param columnData optional data of the column being added
    * @exception ArrayIndexOutOfBoundsException if the column was invalid
    public void insertColumn(int column, Object columnName, Object[] columnData);
    * Moves one or more columns starting at <code>startIndex</code>
    * to <code>endIndex</code> in the model to the <code>toIndex</code>.
    * This method will send a <code>tableChanged</code> notification
    * message to all the listeners. <p>
    * @param startIndex the starting column index to be moved
    * @param endIndex the ending column index to be moved
    * @param toIndex the destination of the columns to be moved
    * @exception ArrayIndexOutOfBoundsException if any of the indices
    * are out of range; or if <code>endIndex</code>
    *                                   is less than <code>startIndex</code>
    public void moveColumn(int startIndex, int endIndex, int toIndex);
    * Removes the column at <code>column</code> from the model. Notification
    * of the column being removed will be sent to all the listeners.
    * @param column the column index of the column to be removed
    * @exception ArrayIndexOutOfBoundsException if the column was invalid
    public void removeColumn(int column);
    * Removes the column with the <code>columnName</code> from the model. Notification
    * of the column being removed will be sent to all the listeners.
    * @param columnName the name of the column to be removed
    * @exception ArrayIndexOutOfBoundsException if the column could not be found
    public void removeColumn(Object columnName);
         * if the model supports undo
    public boolean supportUndo();
    * undo the last change
    public void undo();
    * redo
    public void redo();
    * check if can undo
    public boolean canUndo();
    * check if can redo
    public boolean canRedo();
         * return an array of actions supported by this model
    public Action[] actions();
    * returns the Action with the given name supported by this model
    public Action getAction(String name);

  • Problem in Adding in Document Object Table.

    I want to Add/Update the data in the Documentobject table and DocumentLineobject table through my own SRF.
    Please guide me how should i proceed.

    Hi Eddy,
    Thanks for your suggestion but my problem is little bit different.
    I dont want to Add/Update on Sales Order document. <b>I had two UDT that is of Document & DocumentLine</b> type instead of Master & MasterLine, As we know that there are two types of UDT(Master & MasterLine) and (Document & DocumentLine). <b>The reason</b> to create UDT as Document & DocumentLine, is to Add/Update multiple line in one shot only in our UDT as it was done on Document object of sales order. Is it possible to do so?
    Right now we have two UDT, and at line level we do add/update for each line.
    Thanks....

  • Adding rows in existing table

    Hi gurus,
    Please tell me how to add  row to the existing table where we enter conditions while defining the calculation schema.
    i.e. Control data screen for calculation schema.

    Hi Diwakar,
    Two ways of creating the 3 static rows intially is either create 3 rows manually Or create a single row in table and then in Binding check the check box "Repeat Row for each Item Data" and set min count to "1" and initial count to "3"
    and in add button use the same code as you are using with addInstance(1)
    Or try this below:
    TableSubform.Item_Table.Row1.instanceManager.addInstance(1);
    Sachin

  • Problem with adding cells in dynamic  table

    I have a very simple table set up for listing prices. Only two columns. One is the description and the other is the cost. I've used a previous posted Java script but Adobe will not let me put in prices.
    This is the script:
    ar jpt = xfa.form.form1.Page1.TableSub.resolveNodes("Item[*]");
    var sum = 0.0;
    for (i = 0;
    i < jpt.length; i++)sum += jpt.item(i).resolveNode("Money").rawValue; this.rawValue = sum;
    It just sits at $0 and never adds anything.

    Ok, I figured it out. I had to go down another subform. I remembered Adobe viewed tables as a type of subform.

  • How to view added rows in table; there is a horizontal line below which any added rows disppear!  Pages version 5.1 which I DESPISE!!!!

    I just replaced Pages after paying Apple $400+ for replacing a wiped-out hard-drive....
    MANY HORRIBLE QUIRKS with Pages 5.1...
    the one I listed above.....it's as if there is only one page....I can't see any added rows in the table below this arbitrary line drawn across the bottom!  I can ADD the rows, but nothing I type in them is visible!

    Do you have Pages '09 in your Applications/iWork folder?
    If not ask Apple to give it to you again.
    You own it.
    Peter

  • Adobe form from webdynpro : Getting a single row in the table

    Hello,
    I have a scenario in which I have to create a adobeform from webdynpro application.
    I have created the form and have the context designed in place.
    I am facing a problem in the table I have in my adobeform.
    I am adding rows to this table dynamically using a button using "addInstance"
    Now on the webdynpro side , when I try to read this table I get a single row from this table.
    This row is always the first row of that table.
    I checked the following things from blog   /people/juergen.hauser2/blog/2006/09/12/avoiding-common-mistakes-when-using-tables-on-sap-interactive-forms  , i.e. :
    Cardinality of the node.
    Tick on the option "Repeat Row for Each Data Item".
    But still no success.
    With deadlines to catch I had to post this question after trying a lot.Please help.

    Hello Otto,
    I had found this link before and used the same solution , but unfortunately is taking a long time.
    Now what I am doing is :
    1. I append 10 rows into the table then bind it to the node
    2. Then on the adobe form I have removed the check on "Add row for each line item" because of which it shows only 1 row 
         on the form.
         Now I add rows dynamically, but this puts a limit on the number of rows can be added to the table i.e. 10.
    But this again has added problems like while displaying the form or modifying I hav to handle it seperately and cannot use the same form as it is.( as I have removed the tick for "Add row for each line item" ).
    Thanks,
    Omkar Mirvankar

Maybe you are looking for

  • Number of records in cube from Query Designer

    I don't have access to the cube in BW(listschema). I only have access to pull reports from cube from Query Designer. How can I tell the total number of records in a cube? Thanks.

  • Encoding types in PI

    Hello, Please help to understand how PI 7.1 treats different encoding formats eg ANSCI ect or how it handels properity chacters coming in messages? If PI 7.1 has started supported other encoding formats along with UTF - 8. I have seen many encoding t

  • BUS2089 Object for travel expense.

    Dear Expert, I had created a customize object from the standard BUS2089 and named it ZBUS2089 and i have a workflow that trigger based on the ZBUS2089 object created. My question is how do i link this object to my travel expense request. I want when

  • Green LED - But no access

    My MBL is currently unaccessible. I have a solid green light but the drive isnt accessible from any of my PC's and is not showing up on my network scanner. I have tried different ethernet cables, direct connection to my laptop, rebooting and restarti

  • Why can't I find music in the iTunes store?

    First of all, I live in Russia, I don't know if that has anything to do with the problem, but I can not find music at all in the iTunes store, only apps, books, podcasts and iTunes U.