Setting Up Aggregate Binding

"Aggregate binding" refers to a special kind of data binding that you can apply only to Edit and Static components. This type of binding allows you to display various kinds of aggregated information for a given property.

To set up aggregate binding for an Edit or Static component:

  1. With a form open in Design Mode, select the component you want to apply aggregate binding to.
  2. On the Component property sheet, click the ellipsis () button for the Data Source > Binding property.
  3. In the Edit Component Data Binding dialog box, select Aggregate as the Type, and then click Edit.
  4. In the Edit Aggregate Binding dialog box, specify these settings:
    • Function - From the drop-down list, select the type of aggregate binding you want to apply to a property.

      See Edit Aggregate Binding dialog box.

    • Collection - From the drop-down list, select the collection that contains the property to which you want to apply aggregate binding.
    • Property - From the drop-down list, select the property to which you want to apply aggregate binding.
    • Group By - Optionally, to apply grouping to the selected property, select the property to use for grouping and then click Add.
  5. Click OK.
At this point, the system stores the aggregate binding specifications with the other form data. When the form is run, the results of the aggregate binding should be easily observable.