Disconnected Record Sets

Disconnected record sets provide a way for components to maintain and share data and its state (such as whether the data has been modified) even when a connection to a database is not available. They are typically used for communication between web components (server pages and web services) and are usually implemented as XML, JSON, or Uniface Structs.

A disconnected record set is a package of data that represents a group of occurrences of a Uniface entity (optionally including any inner entities). Data state is not maintained by a connection to the data source, as it is with service or form components. Instead, the disconnected record set contains occurrence state and processing information that allows the disconnected data to be reconnected to its source. This means that connection between disconnected components can be broken after every form of communication.

Uniface supports the use XML, JSON, HTML, and Uniface Structs for disconnected record sets. You can use XML to transfer disconnected record sets, including reconnect processing information, via component parameters. Static server pages also generate HTML that emulates disconnected record sets

For example, you can use XML to transfer disconnected record sets, including reconnect processing information, via component parameters. By default, dynamic server pages use JSON for data transport. Static server pages generate HTML that emulates disconnected record sets.

Note:  Web deployment of the presentation layer always requires disconnected record sets, because no state is maintained between web client and web server. By using disconnected record sets throughout an application, you can enable web deployment without compromising the existing application infrastructure.

Related Topics