Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Node movement between containers (Read 1213 times)
MUDO
Junior Member
**
Offline



Posts: 90
Joined: Nov 29th, 2008
Node movement between containers
Dec 24th, 2009 at 10:11pm
Print Post  
Hi!

How can I capture movement of node between containers? I need to change data in dataset after this "operation"!

Have I use ContainerChildRemoved, ContainerChildAdded, NodeStartModifying events and any object which is set to original container? Or is there event which provides me information about original container of node?

Is there way how to do it "naturally"?

...MUDO...
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node movement between containers
Reply #1 - Dec 26th, 2009 at 7:38am
Print Post  
Hi,

Is there any problem updating the dataset from the ContainerChildAdded handler? I suppose you will have to run a single UPDATE / SET / WHERE sql query in whatever way the child-parent relation is stored. If for any reason you need to know what was the old container before updating with the new one, it might be more natural to query it from the database than tracking multiple event handlers.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint