cancel
Showing results for 
Search instead for 
Did you mean: 

Deletion Of Node from a Tab

Former Member
0 Kudos

Hi Experts,

I need to move the node from one tab to another based upon some conditions. After moving it to another, the first tab node must be removed. can any one help me by providing code.

Regards,

Guru

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182374
Active Contributor
0 Kudos

Hi Kumara Guru,

Try something like this:

IPrivate<View Name>.I<node name>Node node = wdContext.node<node name>;
IPrivate<View Name>.I<node name>Element elem;

for (int i=node.size()-1; i>=0; i--) {
  wdContext.node<Node Name>.setLeadSelection(i);
  elem = wdContext.current<node Name>Element;
  node.removeElement(elem);
}

Omri

Former Member
0 Kudos

Hi Omri,

Thanks for the code.

It worked.. Points are rewarded..

Regards,

Guru