How to create list of errors on top of web page (WB17)?

Startbeitrag von Chris du Toit am 04.08.2012 22:03

Most "modern day" websites automatically display the list of form errors at the top of the page when you hit the submit button.

Something like:

Please correct the following errors:
* First Name is required
* Email is invalid

... etc

Everything in the page is "pushed down" to make room for these error messages. If I want to replicate this behavior, how would I go about this?

I get that I can do all the validation and error checking in the button click. I specifically need more information as to what control I can use on the top of the page to display my list of error messages (for example, if I have a list of errors in an array). What control can display these and "push down" the rest of the page?

In regular Web development this is easy since you use a div tag and dynamically generate it or not. Given the WYSIWYG editor in WebDev, I'm trying to see how to accomplish this.

Thanks for any and all suggestions,


Hi Chris,

Create a (header) page template with an Ajax looper that can extend. Add the template to the web page so it is easily reusable.

The looper is fed by a variable (Class or array of structure variables).

Feed the class or array with the error messages upon validation and do a looperdisplay(loopername, tainit).

That's it.


Peter H.

von Peter Holemans - am 05.08.2012 11:59
Thanks, Peter! I think that was the control I was looking for. That is half the battle!

Sorry for the newbie follow-on question, but could you clarify the part about "...looper that can extend". Is there some attribute I need to use for that?

Thanks again

von Chris du Toit - am 06.08.2012 10:56
Hi Chris,

In WB17 you can manage this with the Anchoring attribute of the looper control. In previous versions this needed to be handled differently.



von Peter Holemans - am 06.08.2012 11:18
Zur Information: hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.