Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Error reporting on UPD3 screen
Error reporting on UPD3 screen [message #3053] Sat, 18 August 2012 05:29 Go to previous message
gpatti is currently offline  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.
 
Read Message
Read Message
Read Message
Previous Topic: Email attachments
Next Topic: Breadcrumb links
Goto Forum:
  


Current Time: Sat Apr 27 02:30:26 EDT 2024

Total time taken to generate the page: 0.00908 seconds