cancel
Showing results for 
Search instead for 
Did you mean: 

how to clear the node's isChanged flag

Former Member
0 Kudos

Hi Experts!!

when click a button,i checked whether a nodeElement is changed using method isChangedByClient();

When I click 'SAVE' button,i need clear all the isChangedFlag of the nodeElement.

But there's no such method for the nodeElement.

thus the invalid method of the node can clear the flag,but it need rebuild the node.

Is there any better solutions?

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi steiner

There is one method "resetChangeByClient", this isn't work?

Another alternative, you can create another node with the same structure. And put all the data in this node. Invalidate the node witch has this isChangedFlag setted. Then get back the data in auxiliar node.

Former Member
0 Kudos

Hi Macros

I can't find the method 'resetChangeByClient',maybe it's need higher version,I'm using NW7.1

Thanks for you suggestion that copy the node data to a temp ones and invalid it.

Former Member
0 Kudos

Hi steiner

This method is in the Element class. I am using NWDS 7.1 EHP 1.

I've used the alternative way, and it works perfectly.

Marcos

Answers (0)