Page Blocks

Hosting sponsored by:

Point In Space

 

API: Err

Filename:

Released With:
5.1.0

Current Version:
1.0.0

Status: Active

Min Lasso Tested: 8.1.0

Max Lasso Tested: 8.5.3

Related:

Still don't get it?

Check out the talk list archives, or join and ask your questions.

Documentation Error or Request?

Email documentation corrections or comments

API Reference

strings_appValErrors_{language} (Config)

Description

Defines strings based on language, media, and variants for use with the fwp_validator controller.

The file strings_appValErrors_ is for application-specific strings. It must be followed by the language code for a complete file name such as strings_appValErrors_en-us.cnfg.

Standard core strings are located in /LassoStartup/_strings/.

See the Developer's Guide for complete details on the multi-view strings system.

Syntax

The simple form of a string definition is:

 {{stringName:
msg___		the string to display
}}

Each msg___ item must be on a single line.

Use a media container to define media-specific strings.

 {{stringName:
media_all:
   msg___	 some string
   msg___   more string stuff
/media;
media_aural:
   msg___   different string
/media;
media_handheld:
   msg___   third string
/media;
}}

Use a variant_xxxx container for arbitrary variant strings.

Parameters & Member Tags

msg___ defines a line of message content

insert___ allows a previously defined stringName to be inserted

constant___ defines the name of a Lasso constant that will be set with the value of stringName to provide an alternate reference means for application code.

Use #thisMsgFirstWord to have the system automatically set the first word to This or The based on the availability of a friendly name being available in #inputLabel. Additionally, #inputParam can be used to display any unique data which may have been passed from the validation code.

Examples

{{a:
constant___	fw_kValNotAlpha
msg___	[#thisMsgFirstWord] field [#inputLabel] must be comprised of only English alphabet characters (a...z, A...Z).
}}

{{n:
constant___	fw_kValNotNumeric
msg___	[#thisMsgFirstWord] field [#inputLabel] must be comprised of only numerical characters (0...9).
}}

© 2002-2010, pageblocks.org