Binding of components

Binding of collection data most commonly takes place at the form level. However, individual components can also be bound to properties in a collection.

There are two types of component binding in Mongoose-based forms:

  • Scalar binding: This is the binding of a single property value of the current row of the collection.
  • Collection binding: This is the binding of all property values of a collection to a grid component or other component type that allows the display of any or all property values in an IDO collection. This type of binding typically allows the user to navigate the collection.

The binding of components is accomplished in the Web Designer/Design Mode, on the Component property sheet, under Data Source > Binding. When looking at the Binding specification for a given component in the Component property sheet, the "object" or "objects" part of the binding refers to a particular collection, as in these examples:

  • object.property refers to a scalar binding to the designated property (property) of the primary collection (object).
  • objectn.property refers to a scalar binding to the designated property (property) of a designated secondary collection (objectn, where 'n' refers to the number of the designated secondary collection).
  • objects refers to the binding of the entire primary collection.
  • objectsn refers to the binding of the entire secondary collection (where 'n' refers to the number of the designated secondary collection).
  • object.subcol.property refers to a scalar binding of a designated property (property) in a subcollection (subcol).