cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Table Cell Editor

Former Member
0 Kudos

Hai,

I insert a new coloumn in a table. and i selected table cell editor as a dropdownbyIndex. I bind a context node to dropdown by index.

The Problem is : when i selected another row in table automatically all values of the coloumn is changeing.

How can i solve this.

regards,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

You can make DEF node singleton as false.

Bind the dropdown to DEF Node and table to ABC node.

Regards, Anilkumar

Former Member
0 Kudos

Hai Anil,

thanks for ur information, i tried it IPrivateXxxView.IDEFElement c=wdContext.createDEFElement(); is giving null pointer exception

why how can i encounter it.

regards,

Former Member
0 Kudos

Hi,

U can only make childnodes (sub nodes) as nonsingleton. Parent node is always singleton.

ABC should be bind to the table and DEF to the dropdown.

Now when u add DEF elements make sure that u add the dropdown elements under the parent element ABC, not parent node.

eg: defEle = abcEle.nodeDEF().createDEFElement(); // abcEle is an element of ABC node.

defEle.set<Texts>("");

abcEle.add(defEle);

repeat the loop if u want to add more enteries in the dropdown in a single row.

Regards,

Piyush.

Former Member
0 Kudos

Hai Piyush,

please give this code clearly . i am unable to get it.

thanks again,

regards,

Former Member
0 Kudos

Hai ,

Thank You Piyush I got it.Thanks for Your Help.

Former Member
0 Kudos

Hai Piyush,

Can you tell me the functionality of Singleton. why its not active for root node, ehy its need to be false for child node

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Did u make the ChildNode as nonsingleton? Make sure that the node u bind to DropDownByIndex is nonsingleton.

regards,

Piyush.

Former Member
0 Kudos

Hi Piyush,

Node Bind to table is ABC ,sub node in ABC is DEF,whch node can i set to singleton false, and how can i bind the ABC with DEF to a table

Former Member
0 Kudos

Thank You Anil for your kind help.

regards,

Former Member
0 Kudos

Hi,

Please check this

Regards, Anilkumar