Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2638

Method to check if the data is changed

$
0
0

Hi,

 

Is there a method to check if any data is changed, before calling the set method.

 

For example:

 

I want to change the short_text of an application in brf+.

 

The old short_text is "Calculate tax".

 

I want to change it to "Calculate income".

 

Now I want to check if I am passing "Calculate tax" again.

 

If I am passing "Calculate tax" as the text, then I don't want to call the set_text method.

 

Only if the short_text has been changed to "Calculate income" , I want to call the set_text method.

 

#########################################################################################

 

I am looking for a generic method, where I can pass the data element or field name, and the new value

and it will return is_changed = true . Like an is_changed method.

 

Or a method where I can pass a set of values ( field names)

 

Thanks and regards,

Gopa


Viewing all articles
Browse latest Browse all 2638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>