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

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

  • 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 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

  • 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 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);

  • 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

  • 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

  • Add null rows in WDDOINIT  for fetching data from dynamically added rows..

    Hi,,
    I have to fetch data from a dynamically added rows of a table.
    I have followed / gone through many forums but they ddnot mention how to add null rows in the initialization method..
    I am using WD Abap..
    Can anyone help how to bind null rows in WDDOINIT method..?
    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

  • Problems with adding a new row in my table

    Im an ADF beginner but I thought it would be simple to to do some basic CRUD stuff in ADF. Im now even struggling when i try to add a new row to my table.
    Seems that the primary key id is not set correctly...
    could someone help?

    Hi,
    Have a look to this page CREATE SEQUENCE
    Regards,
    Sébastien
    Creating a Sequence: Example
    The following statement creates the sequence customers_seq in the sample schema oe. This sequence could be used to provide customer ID numbers when rows are added to the customers table.
    CREATE SEQUENCE customers_seq START WITH     1000 INCREMENT BY   1 NOCACHE NOCYCLE;

  • Problem in adding a new row in a table.. plsss hlppp

    Hi Friends,
    I have a table defaulted to 4 rows. I have a add button to add a new row in the table.
    When i have already 4 rows in table, and when i click add its adding that 5th row correctly( and i used set_lead_selection for this new row ).
    But i want to automatically make a next page once i hit the ADD button here. Each time now i m hitting next page then only  able to see hte 5th row. I need once ADD is clicked, i want to see the 5th row visible..
    Can someone tell me how to code or do this
    thanks friends,,,
    Niraja

    hi niraja,
    Plz refer to the following code:
    method onactiononadd .
    node_material type ref to if_wd_context_node.
    elem_material type ref to if_wd_context_element.
    stru_material type sflight.
    node_material =  wd_context->get_child_node( name = 'ANNA' ).
    elem_material = node_material->get_element(  ).
    if ( elem_material is initial ).
    call method node_material->create_element
    receiving
    element = elem_material.
    endif.
    call method elem_material->get_static_attributes
    importing
    static_attributes = stru_material .
    call method node_material->bind_structure
    exporting
    new_item = stru_material
    set_initial_elements = abap_false.
    endmethod.
    i hope it helps
    regards
    arjun

  • Can't delete newly added row in inner advanced table

    Hi!
    Im using advanced in advanced table and i can't delete a row after i added in detail table, i have to refresh the page in order to delete the row.
    This is what i do.
    execute query from master table
    expand row in master table
    click Add row button in detail table(standard button in footer)
    add data in columns
    click save button
    select row with multiselect and then click delete button but nothing's happend i just can delete older rows
    also i can't edit the new row just older rows.
    i think that is something wrong with the cache :S
    any ideas?
    thanks!
    Edited by: 892088 on 03-nov-2011 16:06

    still no answers, the problem is with the new row created because i cant delete or modify it.
    any comment?

  • Change field value in a table, based on another field value in the same row (for each added row)

    Please Help, I want to change field value in a table, based on another field value in the same row (for each added row)
    I am using this code :
    <HTML>
    <HEAD>
    <SCRIPT>
    function addRow(tableID) {
    var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    var row = table.insertRow(rowCount);
    var colCount = table.rows[0].cells.length;
    for(var i=0; i<colCount; i++ ) {
    var newcell = row.insertCell(i);
    newcell.innerHTML = table.rows[1].cells[i].innerHTML;
    switch(newcell.childNodes[0].type) {
    case "text":
    newcell.childNodes[0].value = "";
    break;
    case "checkbox":
    newcell.childNodes[0].checked = false;
    break;
    case "select-one":
    newcell.childNodes[0].selectedIndex = 0;
    break;}}}
    function deleteRow(tableID) {
    try {var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    for(var i=0; i<rowCount; i++) {
    var row = table.rows[i];
    var chkbox = row.cells[0].childNodes[0];
    if(null != chkbox && true == chkbox.checked) {
    if(rowCount <= 2) {
    alert("Cannot delete all the rows.");
    break;}
    table.deleteRow(i);
    rowCount--;
    i--;}}}catch(e) {alert(e);}}
    </SCRIPT>
    </HEAD>
    <BODY>
    <INPUT type="button" value="Add Row" onClick="addRow('dataTable')" />
    <INPUT type="button" value="Delete Row" onClick="deleteRow('dataTable')" />
    <TABLE id="dataTable" width="350px" border="1">
    <TR>
    <TD width="32"></TD>
    <TD width="119" align="center"><strong>Activity</strong></TD>
    <TD width="177" align="center"><strong>Cost</strong></TD>
    </TR>
    <TR>
    <TD><INPUT type="checkbox" name="chk"/></TD>
    <TD>
    <select name="s1" id="s1">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    </TD>
    <TD><input type="text" name="txt1" id="txt1"></TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>

    Hi,
    Let me make sure u r working with table control.
    First u have to create a event(VALIDATE) to do the validation.
    Inside the event,
    1. First get the current index where user has pointed the curson
    2. Once u get the index read the internal table with index value.
    3. Now u can compare the col1 and col2 values and populate the error message.
    1. DATA : lo_elt TYPE REF TO if_wd_context_element,
                   l_index type i.
    lo_elt = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
         CALL METHOD LO_ELT->GET_INDEX( RECEIVING  MY_INDEX = l_index.
    above code should be written inside the event.
    Thanks,

Maybe you are looking for

  • Fglrx not finding my video card

    holla balloj! vid card: ATI radeon X850XT on a x86_64 Uncommonly enough i have some ati drivers that doesn't wanna do what i tell em to do. And it seem to be the fglrx module that cant find my card and then the fglrx(0) shows up and it seem like my d

  • How do I update an SSL certificate?  (Includes How-To info :)

    OK, I have an IPSCA certificate installed in my (10.5.2) server. I used the 90 day trial period, so it's set to expire next week. It's worked very well, though, so I decide to pay for the full one (at only $59 for two years I figured it was a good pr

  • Minimize terminal window

    Hi I have maximized the window clicking the upper right side button and now I can´t redim it. Always open maximized Any idea??? Regards

  • Not able to Install Solaris 8 Binary License Program

    HI, I downloaded the Solaris Binary License Program. I cut a Installation CD and 2 Software CD's. All the way i did as per the instruction given in the solaris site. Now the problem is i tried to install in the fresh machine. when i tried to install

  • How do I stop Automatic Graphics Switching setting automatically reverting

    Macbook Pro 15" Mid 2010 OS X 10.7.4 I have a recurring problem where my screen (built in or external monitor/projector) will just go blank at random times. It is an unrecoverable situation and I have to do a hard power reset to get working again. Af