How Do I Mark Fields that Won't Make the Model Dirty?
In certain windows, we have a concept of a "locator" field, which typically acts as a filter on some lists of the object you're looking at. Examples are user group's filter on description, and several IB windows' filter by date.
With the warning about loss of data when throwing away a dirty model, this results in the use of locator fields giving this warning, which wouldn't be expected. In order to avoid this warning on locator fields, you can add a function like the one that follows that enumerates the locator fields:
function ignoreModifiedFields(){
return ['START_DTTM']
}
You can include any number of fields in the array, e.g.
return ['FIELD_1', 'FIELD_2', 'FIELD_3']