Error reporting on UPD3 screen [message #3053] |
Sat, 18 August 2012 05:29 |
gpatti
Messages: 283 Registered: August 2008
|
Senior Member |
|
|
I use an UPD3 pattern modeled exactly as you decsribe in in the documentation using fieldname and fieldvalue to maintain separate rows of data for fields in a single screen. This works great.
However, I now want to add some validation code to ensure that two separate fieldvalues do not conflict logically - and instruct the user that the particular combination cannot be used.
I have added some validation in _cm_updateSelection() which correctly displays my error message if the validation fails. However, the upd3 screen then fails to display all the field values correctly as in the fieldspec (e.g. radio buttons, dropdowns etc.) and instead just displays the values as non-editable text.
I suspect the inclusion of an error in $this->errors is causing some later code in the framework to be skipped.
|
|
|