on 01-21-2010 6:25 AM
Hi all,
I am new to webdynpro java environment. i successfully added the columns to the talble. but i am not getting how to add rows. Please suggest me the solution for this.
regards,
shreeharsha
Hi Friend,
You need to add row creator element to your table and need to write folloing code in its event handler.
wdContext.node<datanode>.createandAdddatanodeElement();
Regards
Jeetendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
consider you have a table with one column. You have binded it to a node called "Table" having a context attribute inside it called "Column1" . So your table will be binded to node "Table" and the column of table will be binded to attribute "Column1"
use the code below:
for(int i=0; i<5;i++)
{
IPrivatePerformanceappView.ITableElement ele = wdContext.nodeTable().createTableElement();
ele.setColumn1(""+i);
wdContext.nodeTable().addElement(ele);
}
Please Note: PerformanceappView is the name of my view and i have written this code in Doinit of my view. Please replace this name with your view name.
Result: you will see 5 rows in table with values 0 to 4.
Regards,
Utkarsh.
Edited by: utkarsh_SPARTA on Jan 21, 2010 7:56 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Are you talking about adding rows to a dynamically created table in wddomodifyview?
Or you have created a table statically and want to add rows to it.
Regards,
Utkarsh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.