- summary: It should be possible to show an error for several fields --> Associate an error to several fields
When raising an error with addError or raiseError it should be possible to add a list of fields.
From Edward:
Is it possible to associate user input error with several columns? I mean to highlight them alltogether. I'll try to explain. I have a kind of denormalizaton on the base table where values in several columns are logically connected with each other. You know sometimes it may be nessesary. I check the following formula to raise error:
ROUND((ApexLib_TabForm.NV('PRICE', ii) * ApexLib_TabForm.NV('AMOUNT', ii) - ApexLib_TabForm.NV('DISCOUNT', ii)), 2) <> ApexLib_TabForm.NV('TOTAL_COST', ii)
In this case we don't actually know which column has an error value (or simply a user misprint).