Show TOC

Binding ModesLocate this document in the navigation structure

Explains the binding modes that are supported by a the model implementations and the default for each model

A model implementation supports different binding modes. The following binding modes are available:

  • One Way: One-way binding means a binding from the model to the view; value changes in the model update all corresponding bindings and the view

  • Two Way: Two-way binding means a binding from the model to the view and from the view to the model; value changes in the model and in the view update all corresponding bindings and the view and model, respectively

  • One Time: One-time binding means from model to view once.

The models support different binding modes: The JSON model, XML model and the OData model support one-way, two-way data binding, and one-time binding modes. The resource model only supports the one-time binding mode because it deals with static texts only.

The following table shows, which binding modes the respective binding models support:

Model One-way Two-way One-time
Resource model -- -- X
JSON model X X X
XML model X X X
OData model X X X
Default Binding Mode of Models

When a model instance is created, the instance has a default binding mode. All bindings of this model instance have this binding mode as their default.

The following table shows the supported binding modes and their default binding mode for each model implementation.

Model Default binding mode
Resource model One-time
JSON model Two-way
XML model Two-way
OData model One-way