Data
Provides a hidden input field on a page, where you can store data temporarily. For
example, to pass data between fields.
The Data view can also act as an interface between business objects and UI toolkit views,
especially views that might not otherwise have access to these objects. By binding a business object
to a Data view, you can then use the Data view and its methods as an interface for your other views
to both read and write to these (otherwise inaccessible) objects.
Data binding
Set or modify the data binding for the Data view in the General properties.Configuration properties
Under Configuration, set or modify the behavior properties for the view.
The behavior configuration properties for Data are shown in the following table:
Behavior configuration property | Description | Data type |
---|---|---|
Value formula | The formula or expression for calculating the value of the data stored in the view. | String |
Events
Set or modify the event handlers for the view in the Events properties. You can set events to be triggered programmatically or when a user interacts with the view. For information about how to define and code events, see User-defined events. Data has the following types of event handlers:- On load: Activated when the page loads. For example,
me.setValue(${Text1}.getText())
- On change: Activated when the bound data in the view is changed either
synchronously or asynchronously. For example,
An example of an asynchronous change is when a server variable is changed by a sever call, which might happen during a boundary event that ends in a stay-on-page event.${Text2}.setText(me.getValue())
Methods
For information about the methods for Data, see the Data JavaScript API.
Additional resources
For information about how to create a coach or page, see Building coaches.
For information about standard properties
(General, Configuration,
Positioning, Visibility, and HTML
Attributes), see View properties.
For more information about business objects and variables, see Business objects and variables.