Difference between revisions of "Documentation/DevGuide/Forms/Validation in OpenOffice.org"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Changing Category:Forms)
m (FINAL VERSION FOR L10N)
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
|NextPage=Documentation/DevGuide/Forms/Validation and Bindings
 
|NextPage=Documentation/DevGuide/Forms/Validation and Bindings
 
}}
 
}}
{{DISPLAYTITLE:Validation in {{PRODUCTNAME}}}}
+
{{Documentation/DevGuideLanguages|Documentation/DevGuide/Forms/{{SUBPAGENAME}}}}
 +
{{DISPLAYTITLE:Validation in {{PRODUCTNAME}}}}
 
The {{PRODUCTNAME}} Software Development Kit shows the power of form control validation with an example program. This program creates a form document with various types of controls, most of which are bound to external validators. Those validator objects impose (exemplary and rather arbitrary) restrictions on the control values.
 
The {{PRODUCTNAME}} Software Development Kit shows the power of form control validation with an example program. This program creates a form document with various types of controls, most of which are bound to external validators. Those validator objects impose (exemplary and rather arbitrary) restrictions on the control values.
  
Line 16: Line 17:
 
{{PDL1}}
 
{{PDL1}}
  
[[Category:Documentation/Developers Guide/Forms]]
+
[[Category:Documentation/Developer's Guide/Forms]]

Revision as of 13:02, 15 May 2009



The OpenOffice.org Software Development Kit shows the power of form control validation with an example program. This program creates a form document with various types of controls, most of which are bound to external validators. Those validator objects impose (exemplary and rather arbitrary) restrictions on the control values.

As shown in the example program, the form runtime environment of OpenOffice.org makes use of several features of the validation API, illustrating the advantage over the old, property-based, built-in validation mentioned in chapter Validation.

For instance, invalid values in form controls, where invalid is defined by the external validator object, are not enforcing a valid value automatically. Instead, the invalidity is shown with a red border around the control. If the control does not allow for a red border, its text is underlined with red waves. Additionally, the explanation why a certain value is invalid appears as tool tip at the respective control.

This way, the user who fills in a form receives immediate feedback about which values and controls need attention, without destroying whatever information has already been entered.

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages