I have a structure of record type A like this:
{id:
other business field:,
relationships:
record Type2: {
id,
A_id,
other business field
}
recordType3:
{
},
After user change the data, I want to check whether the business field is actually modified. What I thought is to traverse the list of this record and construct new objects using the business field, use the new objects to compare. I want to know is this the only way to solve my problem? Is there any easy way can solve this.
Discussion posts and replies are publicly visible
I think this is a good way of doing it. In the end, the meaning of "record has changed" very much depends on business requirements. Not every field in a record is affected.
yes, the requirement is just a CRUD for a table. But user's behavior may be like this, remove a row, and add a new row, but the new row's data same as the deleted one. the reason I want to compare the data is if the user's behavior like I mentioned, I will make the submit button disable, not allow user to submit.