cancel
Showing results for 
Search instead for 
Did you mean: 

Input field in the Table

Former Member
0 Kudos

Hi,

I have created a Table and put input fields.

I am able to insert data in the first row.

can you please tell me that how to insert data in the following rows??

Regards

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Use the following code to create multiple elements, you can paste this code in an action handler of a button


//Here the nodeName is "Orders" Change this to that of yours
 IWDNodeElement nodeElement  = wdContext.nodeOrders().createElement();
	  wdContext.nodeOrders().addElement(nodeElement);

Regards

Ayyapparaj

nikhil_bose
Active Contributor
0 Kudos

you can directly enter (type in) values if you created table, binded data source, inserted TableCellEditor as InputField.

data access is the same as if there is no InputField.

you can get those elements in the current lead selection


wdContext.current<TableNode>Element().getField1();
.
.

hints:

before typing in values, you have to create node elements


wdContext.node<TableNode>().addElement( wdContext.create<TableNode>Element());

hope you get the idea

nikhil