|
Home
About Us
Advantage Plex
Websydian
Sentences
Success Stories
Downloads
Contact Us
|
Sentences Datatype collection
Postcode
Allows the recording of the UK post codes as allocated by the Royal Mail.
- Formatting Options
- The code is displayed in the format 'AB12 3CD', in capitals with a single space between the district code and sector code.
- Validation
- The code must be entered as 'AB12 3CD' where:-
- AB is the area code, which must be 1 or 2 letters
- 12 is the district code, which must be either 1 number, 2 numbers or 1 number followed by 1 letter
- 3 is the sector code, which must be 1 number
- CD is the unit code, which must be 2 letters
A space between the district code and the sector code is optional. If it is not entered, however, it will be inserted.
- Class Name
- uk.co.fscomputing.datatypes.Postcode
National Insurance Number
Allows the recording of the UK National Insurance numbers as allocated by the UK government.
- Formatting Options
- The number can be displayed in the either the format 'AB123456C', or with spaces in the format 'AB 12 34 56 C'. Letters are displayed in capitals.
- Validation
-
The code must be entered as 'AB123456C', that is:-
- 2 letters, followed by
- 6 numbers, followed by
- 1 letter
Any spaces entered are ignored.
- Class Name
- uk.co.fscomputing.datatypes.NINumber
Company Registered Number
Allows the recording of the registered numbers for UK companies as allocated by Companies House.
- Formatting Options
- The number is displayed as entered. Letters are displayed in capitals.
- Validation
- The number must be entered as either:-
- 8 numbers, or
- 2 letters followed by 6 numbers
- Class Name
- uk.co.fscomputing.datatypes.CompRegNo
Implementation
- Copy the fsdatatypes_1-0.jar file to a directory that Sentences can access, such as <install_dir>\WebApplication.
- Add the jar file to the Java classpath that Sentences is using. For Tomcat, this means adding the path and file name to the SENTENCES_USER_PATHS environment variable in the <tomcat_install_dir>\bin\tomcat.bat file.
- Add the relative URL of the jar file to the JarFiles section of the server.properties file.
- Add the required class names to the Datatypes section of the Server.Properties file.
For more information please refer to the Sentences User's Guide.
Download latest version
Copyright © 2002 Flying Start Computing Ltd
Last modified: September 2002
|
|
Related Links
Postcode
N I Number
Company Reg. Number
Implementation
Download latest version
|