FORMULA LANGUAGE
Converts any value to a text string.
Syntax
@Text( value ; formatstring )
Parameters
value
format-string
textValue
There are four separate categories of timedate, formatstring components. You can include up to four components, but only one from each category.
For number values, compose a formatstring by combining any of the following components into a string.
If the parameter is a list, the function operates on each element of the list, and the return value is a list with the same number of elements.
Once a number value is converted to text, you will not be able to use the number for arithmetic calculations.
Rich text conversion loses attachments and all formatting except tabs and spaces. When rich text is converted in a document, the document must be saved before the conversion becomes visible.
Rich text conversion does not work in column formulas. Use @Abstract to convert the contents of a rich text field to plain text. Then reference the plain text field in the view. For example, if you add the following code to a hidden computed field called plainText, you can then set the default value of the view column to "plainText" to display the contents of the RTField:
@Abstract([TextOnly];15360;"";"RTField")
Use caution if using @Text to convert numbers or dates in a column. In databases hosted by a server, the numbers and dates always display using the format settings of the hosting server's operating system. Also, if the date or number format settings of either the client accessing the database or server hosting the database change, you may need to entirely rebuild the view.
Language cross-reference
CStr function of LotusScript language
GetFormattedText method in LotusScript NotesRichTextItem class
getFormattedText method in Java RichTextItem class
Example See Also