Questions tagged [dirty-tracking]

6 questions
29
votes
11 answers

c# marking class property as dirty

The following is a simple example of an enum which defines the state of an object and a class which shows the implementation of this enum. public enum StatusEnum { Clean = 0, Dirty = 1, New = 2, Deleted = 3, Purged = 4 } public…
PaulMay
3
votes
2 answers

ember.js manually set hasDirtyAttributes not cleared when saving

I have a save button in my template that activates when the model hasDirtyAttributes The hasDirtyAttributes flag doesn't seem to be set when a reference to a related model changes. Example I have a drop-down that allows picking of a related model…
Loopo
  • 2,204
  • 2
  • 28
  • 45
2
votes
1 answer

Grails 3.1.1 - Dirty checking not working when model class extends another groovy class

I have a domain class which extends another groovy class with same name but in different package in a different library. The problem is when I modify instances on the domain class, it is not marked as dirty & hence changes are not persisted. I have…
Pritesh Mhatre
  • 3,847
  • 2
  • 23
  • 27
2
votes
2 answers

Check if any control has changed and save data upon form closing

We are using vb.net / dev express tools. We have several controls textboxes, combos etc... instead of checking each value changed we want to go through all controls and check if anything has been edited, then save upon form closing. Below is some…
Sirus
  • 382
  • 1
  • 8
  • 35
0
votes
1 answer

bytebuddy definefield and initialize a complex object

I'am developing a dirty-tracker tool, which will track the object's props changed. So I want to use bytebuddy to inject a field: DirtyTracker dirtyTracker, and hook all setXXX() method. Now I don't know how to initialize dirtyTracker by bytebuddy,…
jun
  • 1
  • 2
0
votes
2 answers

Angular 2++ | NgForm: Form.Dirty is Always Dirty

Determine if NgForm Looks Exactly As It Did Before Any User-Input It seems that form.dirty doesn't redact its value after it has been changed, and form.touched seems to always be false no matter what: dirty is touched, and touched is…
Cody
  • 9,785
  • 4
  • 61
  • 46