By default when there's an edit error (e.g. required field missing) the default processing sets the cursor to the appropriate field and highlights it in red. This is how the default component processor works.
Is it possible to replicate this behaviour exactly? Users are used to having this occur on errors, and it would be nice to trigger this on all PeopleCode validation.
What would be neccessary? My original thoughts were:
- Set the cursor to appropriate field with SetCursorPos before the error message is displayed.
- Change the style sheet to PSERROR
However, after the error is corrected, you need another event to set the stylesheet back so that the errored field is no longer highlighted in red. This seems too complicated - could there be an easier way - e.g. call some JavaScript to this part?
Any thoughts or ideas …