Class: Configuration

Configuration

The Configuration control is a debugging and configuration aid.  The I18N internationalization service used to internationalize controls is specifed here. A Configuration control provides the following configuration properties in Process Designer:

Debugging On: Sets the debug switch to true when checked. The switch is used primarily for debugging purposes and will cause controls to log debug information in the console. boolean
Parameters: List of parameters which can be accessed by the getParameter() method. NameValuePair[]

Logging

Show Log: Useful when testing on Mobile devices such as the iPad where the browser log is no easy to retrieve real-time. boolean
Last Entry First: Insert new entries at the top of the log window instead of at the end boolean

Internationalization

Global Text Direction: Force the content of the page to display right to left, left to right, or based on user settings (Auto).
{Auto | Left-to-Right | Right-to-Left}
string
Locale: Forced locale string
I18N Service: This specifies the I18N AJAX service that supplies internationalization to SPARK controls AJAX Service

new Configuration()

This constructor is never used explicitly.

Extends

Members

Methods

Add/replace CSS class(es) for this control
Name Type Description
name string CSS class name(s) to add to the control. Separate class names by a space if more than one class.
replaced string optional CSS class name(s) to be replaced by the first argument. Separate class names by a space if more than one class.
Example
Button.addClass("green");

getGlobalTextDirection(){string}

Gets the forced global text direction for the page
Returns:
Type Description
string

getParameter(name){string}

Get the value of a configuration parameter
Name Type Description
name string Name of parameter
Returns:
Type Description
string

getType(){string}

Get descriptive string representing the type of control
Returns:
Type Description
string

isDebugging(){boolean}

Indicates the current state of the debugging flag
Returns:
Type Description
boolean
Propagates value change of control up through parent views
Name Type Description
event Event Value change event (usually an onchange event)
Returns:
Type Description
boolean True if a formula update was triggered on the control's parent, otherwise false
Example
MyView.propagateUp(event);

setDebugging(debugging)

Set debugging on/off
Name Type Description
debugging boolean Debug flag

setGlobalTextDirection(direction)

Force the global text direction (left-to-right or right-to-left) for the page
Name Type Description
direction string {AUTO|LTR|RTL} Use AUTO to reset to the default page text direction set by IBM BPM
Broadcasts the expression trigger for the specified view
Name Type Default Description
phase int bpmext.ui.PHASE_NORMAL optional The phase we are currently in
Example
MyView.triggerFormulaUpdates();