Skip to Content
avatar image
Former Member

Multiple Row entries in a Table

Hi,

I have an table in my View when i initialize it in the controllers init method ,it activates only one record.

e.g.

//intialize line items

Bapisditm items = new Bapisditm();

input.addOrder_Items_In(items);

How do i enter multiple rows in a table.

Thanks & Regrds,

Atul Sable.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jul 31, 2004 at 04:17 PM

    Hi Atul,

    if you add only one item to the input node, only one item will be available in the table (it the table's dataSource is bound to the input node, of course). This will add 10 items:

    for (int ix = 0; ix < 10; ix++) {
      input.addOrder_Items_In(new Bapisditm());
    }

    Regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi ,

      This is the code which i have tried for inserting new rows into table on add row button.

      <b>In the init method of the controller</b> Bapisditm items = new Bapisditm();

      input.addOrder_Items_In(items);

      The above code enables one row in the table.

      When i try to add a new row with the add button.

      the following piece of code doesent work.

      <b>In the AddRow event</b>

      Bapisditm line = new Bapisditm();

      wdContext.nodeOrder_Items_In().createOrder_Items_InElement(line);

      When i bind the above value to the context the first row is replaced by an blank row.

      Any tips???

      thanks & regards.

      Atul Sable

  • avatar image
    Former Member
    Aug 01, 2004 at 11:05 AM

    Did you read the Javadoc for IWDTable?

    Add comment
    10|10000 characters needed characters exceeded