2.5. Property Binding

The WebView application provides extensive support for property binding, allowing the properties of one control to be bound to other controls, or to DataHub point values. These three binding options are available on many control properties:

There are several features of property binding that facilitate page design, such as:

2.5.1. DataHub Point Binding

To create a Point binding you can follow this example, where we bind the indicator value of a gauge to a DataPid point:

  1. Start the DataPid program that is included in your Cogent DataHub archive to generate some test data.

  2. Open a blank page and add a Circular Gauge 2 control.

  3. Open the Basic Properties of the gauge, and click the binding button on the right side of the Current Value row.

    A Binding selection box will appear.

  4. In the Binding selection box, click the down arrow to open the list, and select Point.

    This will activate the point selection entry field.

  5. To connect to the DataPid point DataPid:PID1:Pv, you can enter just Pv. All the points that have "Pv" in their names will appear.

    Select the point DataPid:PID1:Pv. Once selected, the data will start updating in the value entry, and the gauge needle will start to move.