getFormattedValue()

This is an optional method that returns a simple read-only rendering of the value managed by this control. This method only needs to be implemented if either the view-text or view-html render modes are supported. At most, one of these modes can be supported.

  • view-text: The return value of this method will be plain text that is rendered in the DOM within a DOM Text mode.
  • view-html: The return value is a string representation of HTML markup and is treated as such when added to the DOM.

See the com.tibco.forms.extension package for a set of built-in utilities for formatting values of various types.

Method Argument:

  • value: This is the value to be formatted.

Method Return Value:

  • Returns the formatted control value as text or html.