Previous page | Data Integration | Next page |
Formatting Text fields |
The format dialog provides several options to control the output of a text field. Note: This dialog does not affect the Style of the text (ie the font, color, etc) which is normally specified in the View.Format asA text field is normally displayed as Text, however it can also be displayed as an Image. When displayed as an image, the text should be set as the URL of the image to be displayed (either an Absolute or Relative url). The Expression tabThe Expression tab allows the text string that is stored in the underlying field to be modified in various ways. The modifications are made cumulatively, in the order they are displayed in the dialog: Regular expressionThis provides a powerful means to manipulate the string, allowing sophisticated substitutions, truncation etc. Whilst powerful, the regular expression syntax is not very easy to use, so the more common manipulations are also provided as separate options: Character replacementThis provides a quick substitution of characters which are not valid in URLs with either a dash, underscore or slash. This is particularly useful when using the text field as the basis for a DirectURL Replace “.” and “?” is an option to determine whether these characters should be replaced, or left alone. Url encodeIf the string will end up being used as a parameter in an URL, then it will probably need to be URLencoded Prefix and SuffixThese allow text to be added to the start and end of the string
|