on 09-09-2009 9:00 AM
Hello all,
I am working on Ess/cats application.
By default it is displying me 8 rows.I have to put a button to add a new row in the table.
but i could not find a way to add a new row.
Thanks and Regards.
Punit Pawar
Hi,
In the onAction of button Add one more element in node which is bounded to the table. You can use following code.
public void onActionAddRow(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionAddRow(ServerEvent)
IWDNodeElement element = wdContext.node<Node_Name>().create<Node_Name>Element();" Here Node_Name is the name of node which is bounded to your table.
wdContext.node<Node_Name>().addElement(element);
//@@end
}
I hope it helps.
Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To add a new row write the code in action method of button
IPrivate<viewname>.I<node name>Element ele=wdContext.create<node>Element();
wdContext.node<name>.addElement(ele);
here node name is the node which is binded to the table datasource.
Regards,
Srikanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.