on 03-23-2009 1:09 PM
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
dg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In NW 7.1 there exists a special view element ("TableRowCreator") which provides this functionality.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe it was introduced in NW 7.11 (=7.1 EhP1) first. There it exists in any case:
Armin
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.