I am doing an evaluation of a current line in a table against a potential change to that line coming from a Temporary Table through a Business Object Update Method. I only want users to be able to change the Comment fields on the table (Part.MfgComment and Part.PurComment) and no other fields.
The database uses an evaluation of the existing record under the name 'oldRecord_Pre68_C1' and I have sucessfully used an evaluation of the two comment fields via something like:
if available oldRecord_Pre68_C1 and oldRecord_Pre68_C1.MfgComment <> ttPart.MfgComment then do:
But I also want to make sure that NONE of the other fields in the row have changed. I don't want to have to write out each field comparison through something like:
if available oldRecord_Pre68_C1 and oldRecord_Pre68_C1.MfgComment <> ttPart.MfgComment and oldRecord_Pre68_C1.Field1 = ttPart.Field1 and oldRecord_Pre68_C1.Field2 = ttPart.Field2 and... oldRecord_Pre68_C1.Fieldn = ttPart.Fieldn and then do:
This is too long and I might miss something. Is there any way to evaluate the etire table through a simplified statement?
The database uses an evaluation of the existing record under the name 'oldRecord_Pre68_C1' and I have sucessfully used an evaluation of the two comment fields via something like:
if available oldRecord_Pre68_C1 and oldRecord_Pre68_C1.MfgComment <> ttPart.MfgComment then do:
But I also want to make sure that NONE of the other fields in the row have changed. I don't want to have to write out each field comparison through something like:
if available oldRecord_Pre68_C1 and oldRecord_Pre68_C1.MfgComment <> ttPart.MfgComment and oldRecord_Pre68_C1.Field1 = ttPart.Field1 and oldRecord_Pre68_C1.Field2 = ttPart.Field2 and... oldRecord_Pre68_C1.Fieldn = ttPart.Fieldn and then do:
This is too long and I might miss something. Is there any way to evaluate the etire table through a simplified statement?