Focal Point
[SOLVED] Displaying Errors on a Form in Maintain

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1347063206

April 18, 2011, 03:04 PM
RichardA
[SOLVED] Displaying Errors on a Form in Maintain
What's the best way to display validation errors on a form in Maintain? I am using javascript alerts now, but that seems unpolished.

This message has been edited. Last edited by: RichardA,


Sandbox Version: 8.1.04
Sandbox Platform: Windows 2008 R2
Testing Version: 7.7.02M
Testing Platform: Windows Server 2008 R2
WF Production Version: 7.7.02M
Production Platform: Windows Server 2008
April 18, 2011, 06:03 PM
Waz
Have you thought about MODAL Windows, or a minimum of a DIV that is shown, then hidden, with the relevant validation issues.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

April 19, 2011, 07:59 AM
Maintain Wizard
Hi Richard
The 'old' way was to just display a text line at the bottom of the form. I have been using JavaScript alerts, but I make the message more specific. If the error occurs in the Maintain code, I compute a text message to an invisible field on the form. Then when the form refreshes, my JavaScript onLoad picks up that text and alerts it to the user. It's modal and gets the user's attention.

Mark
April 20, 2011, 12:29 PM
RichardA
Thanks.


Sandbox Version: 8.1.04
Sandbox Platform: Windows 2008 R2
Testing Version: 7.7.02M
Testing Platform: Windows Server 2008 R2
WF Production Version: 7.7.02M
Production Platform: Windows Server 2008