cancel
Showing results for 
Search instead for 
Did you mean: 

difference between isChanged() and isChangedByClient()

Former Member
0 Kudos

Hi Experts,

Please explain me what is the difference between isChanged() and isChangedByClient() node methods.

I have read the javadoc but it is very short and not clear.

What is the usage scenario of these methods?

Regards,

Slavik.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Slavik,

See the below link in that they mentioned the use of method

<b>ischanged</b>

<b>ischangedbyclient</b>

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Slavik,

Please see the difference below.

<u><b>isChanged</b></u>

public boolean isChanged()Returns true if the changed flag has been set for this element.

Note: This flag will be used and reset by the Web Dynpro Runtime.

Returns:

true if the changed has been set for this element or false otherwise.

<u><b>isChangedByClient</b></u>

public boolean isChangedByClient()Returns true if the changedByClient has been set for this element. This flag will be set by the framework when an update from the client arrives. It remains true until you reset all flags in the complete context via IWDContext.resetChangedByClient().

Since this flag is kept per element, but each attribute may actually live in a different element, Web Dynpro always marks both the mapped element and the origin element marked if an attribute is changed. This has the consequence that IWDContext.resetChangedByClient() must always be called from the context in which you will look for client changes.

Returns:

true if the changedByClient has been set for this element or false otherwise.

Thanks,

Suvarna.

    • Award points if helpful

Former Member
0 Kudos

There are methods like isChanged,isChangedByClient available for nodeElements.

wdContext.node<yournode>().getElementAt(int i).isChanged

wdContext.node<yournode>().getElementAt(int i).isChangedByClient

You can use them to identify which element has been modified.