com.tibco.forms.client.FormRunner
The com.tibco.forms.client.FormRunner class provides static utility methods for instantiating the Form class in the custom client application. It also provides access to the Forms logger, which can be used even when no forms are actually loaded.
For more details on the logger() method, see the table on the bottom of this page.
The following methods are supported:
The loadForm() and loadFormWithRemoteData() methods have the same set of input parameters but they differ in the way the initial data are passed. Both the methods are void.
- In loadForm(), the initial data are passed directly as a JSON (JavaScript Object Notation) string.
- In loadFormWithRemoteData(), a URL of the initial JSON data is passed using the initDataURL parameter. The FormRunner retrieves the data from the specified URL.
The details of these methods are as follows:
Method | Description |
---|---|
loadForm( String url, String initialData, String bomJSPath, String locale, String parentNodeId, Function onSuccess, Function onError, Boolean JSONP) |
Loads the form at the specified URL. The parameter details are as follows:
|
loadFormWithRemoteData(String url, String initDataURL, String bomJSPath, String locale, String parentNodeId, Function onSuccess, Function onError, Boolean JSONP) |
Loads the form at the specified URL. The parameter details are as follows:
|
renderStaticView() |
Renders a tree representation of the data provided in the
InitialData parameter.
The API has following parameters:
|
List of language codes - http://www.loc.gov/standards/iso639-2/langhome.html
List of country codes- http://www.iso.org/iso/country_codes/iso_3166_code_lists.htm
The details of the logger() method are as follows:
Method | Return Value | Description |
---|---|---|
fatal(String message) |
Void | Logs the given messages at the fatal logging level. |
error(String message) |
Void | Logs the given messages at the error logging level. |
warn(String message) |
Void | Logs the given messages at the warn logging level. |
info(String message) |
Void | Logs the given messages at the info logging level. |
debug(String message) |
Void | Logs the given messages at the debug logging level. |
trace(String message) |
Void | Logs the given messages at the trace logging level. |
isFatalEnabled() |
Boolean | Checks whether the Fatal logging level is enabled. It returns true if the logging level is enabled, and false otherwise. |
isErrorEnabled() |
Boolean | Checks whether the Error logging level is enabled. It returns true if the logging level is enabled, and false otherwise. |
isWarnEnabled() |
Boolean | Checks whether the Warn logging level is enabled. It returns true if the logging level is enabled, and false otherwise. |
isInfoEnabled() |
Boolean | Checks whether the Info logging level is enabled. It returns true if the logging level is enabled, and false otherwise. |
isDebugEnabled() |
Boolean | Checks whether the Debug logging level is enabled. It returns true if the logging level is enabled, and false otherwise. |
isTraceEnabled() |
Boolean | Checks whether the Trace logging level is enabled. It returns true if the logging level is enabled, and false otherwise. |