[Top] [Prev] [Next] [Bottom]
[Contents]
colspecFormat
colspecFormat (Framework master and Data Control)
colspecFormatN (for detail where N is required and is the
detail number)
Definition
A string specifying a data format operation. Data format operations are applied to the column values of a row set before they are sent to the user and after the user enters data for insert and delete operations.
This parameter works with both the master view and the detail views.
Parameter Name
In both cases, the colspec must be replaced with valid column specification.
You can use either of these two methods:
The following two examples show a field check param name using the two colspec methods:
<param name="au_idFormat2" ...
and
<param name="col0Format2" ...
Both are set for detail number two.
Parameter Value
The value for this specifies the class name of the format class. The class specification must be a relative to the codebase specification for the applet. The class must implement the interface, Sa.SaFormat. If the class specified by the value of this parameter is not derived as stated above, then no format is applied. If the class cannot be found, then no format is applied. The class must contain no constructor or one with no parameters and the constructor should be public. If not, then the class will not be loadable, and no format is applied.
Example
The following example shows a format param value:
<param ... value="SaC.SaTrimWs" >
This example uses the class SaC.SaTrimWs to trim white space characters from the beginning and end of data. This allows the user to type a value to which they might accidentally have added white space characters at the beginning or end of the real string. This is useful when you don't want the extra white space in the database. Both your task and the user's task are now easier.
[Top] [Prev] [Next] [Bottom]
[Contents]
info@bluestone.com
Copyright © 1997, Bluestone. All rights
reserved.