Output |
The Output control is used to display non-editable text. Output controls can be data-bound or free-form controls. When data-bound, an Output control is bound to a model from which it fetches data. When you change the data in the control, the model is updated and all controls associated with the model are refreshed. Data-bound Output controls are mostly used with read-only models. You can use a free-form Output control to display any arbitrary text.
You can bind a Output control to a model by setting the Reference property of the associated business object in the control's property sheet. To do so, specify the XPath of the business object's data to be bound. If no model is set for the control, then the control is bound to the model of its parent control, by default.
Properties, Events, and Methods of the Control
The properties, events, and methods associated with the Output control define its behavior. You can set them through the control's property sheet during design time.
Table 1. List of Properties
Design-time property |
Runtime property |
Description |
---|---|---|
|
Sets the string that identifies the control on an XForm. If not specified, a unique ID is automatically generated. |
|
|
Sets the ID of the data model from which the data (specified using the Reference property) is displayed in the control. If model is not specified, it is inherited from the parent control's model. |
|
|
Sets the location or expression for the XPath that contains the data (value) displayed in the control. The XPath refers to the child node or descendants of the immediate parent control's reference. |
|
Sets or retrieves the class name applied on the control. |
||
Sets the tool tip that appears on a control when the mouse is moved over it. Programmatically, this property is set by specifying the title property of the control. |
||
Task part |
|
Creates a task part for the control. Selecting the check box, displays the Task Part pane. |
Zoom URL |
|
Sets the URL of the Zoom (lookup) page to be opened when the zoom button next to a control is clicked. |
Zoom Field |
|
Sets the location or XPath expression that contains the data to be set to the control when the Zoom (lookup) page is closed. |
Constraint Validation On Change |
|
Denotes whether validation constraints need to be applied to validate data according to the business logic, when the data associated with a control is changed. This property is available only when a WS-AppServer model is set for a control. |
ClickChoice Relation |
|
Sets the properties of the related application to be opened when a context-menu option of the control is selected. All the necessary properties of the application (including the name of context-menu option) is set through this property. |
|
Retrieves the root node of the XML data associated with the control; the location of the data is specified by the Reference property. |
|
|
Retrieves the immediate parent of the data that the control represents. This data is the child node of the business object. |
|
|
Retrieves the XML node of the data (value) that the control represents. The location (XPath) of this XML inside the business object is set through the Reference property. |
Table 2. List of Events
Event |
Description |
---|---|
This event is activated when data in the control is modified, after theValidateevent has been fired. This event can be used in cases where the user needs to select a value from a Zoom page associated with the control or may use manual scripting. |
|
This event is activated before the data is bound to the control. |
|
This event is activated before the lookup page is closed. |
|
This event is activated before the lookup page is opened. |
|
This event is activated after the value of the control is changed and the new value is successfully validated against the settings specified in the Formating Options dialog box. |
Table 3. List of Methods
Method |
Description |
---|---|
This method registers the control to receive notifications for an event. |
|
This method is available for data-bound controls only. It creates an instance of the business object for the control. |
|
This method disables the lookup buttons such as zoom and calendar control associated with the control. |
|
This method enables the lookup buttons such as zoom and calendar control associated with the control. |
|
This method retrieves data or business object. |
|
This method retrieves the value that indicates whether a validate request was sent to the Cordys WS-AppServer when the data in the control was changed. |
|
This method retireves the format type that is attached to the control. |
|
This method returns the value that is to be displayed in the control. |
|
This method returns the label object associated with the control. It is available for all controls associated with labels. |
|
This method returns the original value of the control, as available in the database. |
|
This method hides controls and all associated children controls. |
|
This method retrieves the value that denotes whether the control is enabled or not. |
|
This method is available for all controls bound to a model. This method refreshes the control with data from the business object that is passed as a parameter. If no parameter is passed, the business object of the model's activeTuple node is used and the control is refreshed. |
|
This method is available only for data-bound controls. It removes the instances marked for deletion. |
|
This method the unregisters the control to cease receiving notifications for its events. |
|
This method sets the value that indicates whether a validate request must be sent to the Cordys WS-AppServer when the data in the control changes. |
|
This method causes an element to receive focus. |
|
This method sets the format type for the control. |
|
This method sets the text that is passed as a parameter to the label object associated with the control. It is available for all controls associated with a label. |
|
This method sets the value of the control. The sValue parameter denotes the value to be set for the control. |
|
This method makes the control and its children controls visible. |