Skip to Content
0
Former Member
Oct 17, 2006 at 02:39 PM

How to add an entire table to model Input

29 Views

Hi,

I have a code like this:

for(int i=0;i<resbTableSize;i++){		
         po_ResbInput.setErfme(wdContext.nodeTable1_Resb ().getTable1_ResbElementAt(i).getErfme());
    po_ResbInput.setErfmg(wdContext.nodeTable1_Resb().getTable1_ResbElementAt(i).getErfmg());
poReceiptInput.addT_Resb(po_ResbInput);

Problem here is, though I am setting all the values, model Input(poReceiptInput) is taking only the last element. Can you please tell whats wrong?.

I have 11 rows in the table. When I print, I can see that I am setting all the 11 rows correctly. But in ST05, I observed that it is taking only the last row of the table and setting for the 11 rows of model input.

Thanks,

Sunita.

Message was edited by: sunita