on 10-03-2006 3:53 PM
Hi SDN,
I have created a Table UI Element with Input Field editor property.I have maintained the cardinality 1-n for the context element. I clould able to enter the data in the first row but my problem is i could not able to enter the data in the second row even though all the 5 rows are in input mode. So can any one suggest me how to enable the second row after entering the data in the first row of the table.
Regards
basha
Hi Basha,
I think you should create as many node elements as you need (5 I guess) in your code. By default only one is created (because of cardinalityy 1..n) that why you can only edit the first line.
Hope this helps,
Julien
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Basha,
You can make the cardinality of the node as 0..n and use the following code in wdDoinit of the view where the node resides.
for (int index= 0; index < 4; index++) {
IEmployeeElement employeeEle = wdContext.createEmployeeElement();
wdContext.nodeEmployee().addElement(employeeEle);
}
Here I have assumed that the node name is 'Employee'
I hope this will solve your problem.
Regards,
Anand
Hi Basha,
each input field in your table is bound to an element of the node.
Let's take Anand example with the employees. Then your context needs to look like this :
Employee node
__EmployeeElement |
__EmployeeElement |
__EmployeeElement |
__EmployeeElement |
__EmployeeElement If your node cardinality is 1..n, you will by default have in your context : Employee node |
|__EmployeeElement
So you need to create (wdContext.createEmployeeElement()) and add to the node (wdContext.nodeEmployee().addElement(employeeEle)) the 4 missing elements.
Regards,
Julien
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.