cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a table with 5 rows ready for user entry

Former Member
0 Kudos

Hello All,

Can someone kindly advise on how can I achieve the above ? Everytime the table is created, the fields are not enabled for entry . I am trying to create a ytabel that consists of 8 columns. Of which 2 of them are date fields and another 2 of them are dropdown listboxes (by key).

Thank you very much.

from

Kwok Wei

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Conside you have Valuenode which is bound to table and valueattributtes bound to Tablecolumns.

Create a elements of the Nodetype.

Ex: IPrivate<<ViewName>>.INodeElement ele=wdContext.create<Node>Element();

ele.set<<Attrib1>>(Value1);

ele.set<<Attrib2>>(Value1);

ele.set<<Attrib3>>(Value1);

ele.set<<Attrib4>>(Value1);

ele.set<<Attrib5>>(Value1);

ele.set<<Attrib6>>(Value1);

ele.set<<Attrib7>>(Value1);

ele.set<<Attrib8>>(Value1);

wdContext.node<<NodeName>>.addElement(ele);

The above statements should be in a loop so that it will add 5 rows in Table. )

Regards, Anilkumar

Former Member
0 Kudos

Hello Anilkumar

May I then confrim that the cardinality and selection should both be 1..n ?

from

Kwok Wei

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If i am not wrong cardinality can be 0..n or 1..n.

If it is 1..n then it will add a blank row in your table automatically.

Please try this and correct me if i am worng

Regards, Anilkumar