cancel
Showing results for 
Search instead for 
Did you mean: 

Repeating data

Former Member
0 Kudos

Hello all,

when I enter data in Inputfield of first row and press enter then rest of the other rows with same column filled with the first row data,

How to enter in next row?

Please help.

Thanks in advance,

CSP

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi CSP,

What code have u written in onAction method of enter event.

regards

Sumit

Former Member
0 Kudos

ArrayList arlData = new ArrayList();

IPrivateSalesOrderView.IItemDetailsElement e = wdContext.nodeItemDetails().createItemDetailsElement();

for(int i = 1 ;i <= 20;++i){

arlData.add(e);

}

wdContext.nodeItemDetails().bind(arlData);

Former Member
0 Kudos

hai Pradeep,

use the following coding in the init method of the view containg the table to create the table

try

{

IPrivateSpecification_edit.ITableElement e1=null;

IPrivateSpecification_edit.ITableNode node=null;

for(int i=0;i<5;i++)

{

node=wdContext.nodeTable();

e1=wdContext.createTableElement();

node.addElement(e1);

}

catch(Exception e)

{

}

Any issues let me know

Thanks n Regards

Sharanya.R

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Could you please let us know what are you doing onEnter action for your inputField.

thanks & regards,

Manoj

Former Member
0 Kudos

hai,

try to enter the data in inputfield in lead selection of table.

Thanks n Regards

Sharanya.R

former_member312910
Participant
0 Kudos

Hi Pradeep

Could you share the code you have written to perform the function.

cheers

deepu

Former Member
0 Kudos

ArrayList arlData = new ArrayList();

IPrivateSalesOrderView.IItemDetailsElement e = wdContext.nodeItemDetails().createItemDetailsElement();

for(int i = 1 ;i <= 20;++i){

arlData.add(e);

}

wdContext.nodeItemDetails().bind(arlData);

This code I am using for the creatig the Table Rows

Former Member
0 Kudos

Hi Pradeep,

remove this code.

for(int i = 1 ;i <= 20;++i){

arlData.add(e);

}

Array list is not required . create the empty element & add to the node directly in the loop.

regards

Sumit

Edited by: Sumit Malhotra on Feb 28, 2008 2:59 PM