cancel
Showing results for 
Search instead for 
Did you mean: 

How to create dynamic rows in a table

Former Member
0 Kudos

Hi All,

in my application i want to create rows dynamically by pressing enter button or else i can use button,once i click the button new row should come,that row should allow to enter values,like input field.

please can any one help me in this.

regards,

sush

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

dg

Former Member
0 Kudos

In NW 7.1 there exists a special view element ("TableRowCreator") which provides this functionality.

Armin

Former Member
0 Kudos

i have NW CE 7.1 and i cant add TableRowCreator....!!!!

Do you have any idea....???

Former Member
0 Kudos

Maybe it was introduced in NW 7.11 (=7.1 EhP1) first. There it exists in any case:

http://help.sap.com/javadocs/nwce/current/wdr/com.sap.wdr/com/sap/tc/webdynpro/clientserver/uielib/s...

Armin

Former Member
0 Kudos

Hi Sushma,

If i'm right ,u want to add a new row on button...




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


IPrivateContractOverView.I<table Node>Element elem=wdContext.create<table node>Element();
		
  elem.set<table value attrbute1>("");
 elem.set<table value attrbute2>("");
						
wdContext.node<table Node>.addElement(elem);
											
}

Here you can set any default values in place of "".

hope it hlps u..

Regards

Khushboo

srinivas_sistu
Active Contributor
0 Kudos

OnActionAddNewRow()

{

int selection=wdContext.nodeVn_F2_LiquidAssets().size();

IYourView.INodeElement newTableEle=wdContext.nodeNode().createNodeElement();

//newTableEle.setEnabled(false);

wdContext.nodeNode().addElement(newTableEle);

wdContext.nodeNode().setLeadSelection(selection);

}

Regards,

Srinivas