Embedded Graphic Bindings define the data that is passed from the container graphic to the embedded graphic.
There are two different editors for Embedded Graphic Bindings:
The Graphics Editor automatically chooses which editor to open based on whether the embedded graphic is valid or not.
To edit embedded graphic bindings:
Note: If there are syntax errors in the Embedded Graphic Bindings Code, the editor will not accept the changes when you press OK. Either correct the errors, or press the Cancel button to cancel the changes.
The Structured Data Binding Editor is the preferred editor for making changes to embedded graphic data bindings:
The left column lists the global variables declared in the Embedded Graphic. The right column shows the current data binding (if any).
You can edit a binding by clicking a row in the Bindings column. The type of click determines the edit method:
Edit Method | Comments |
---|---|
Left-Click |
Starts an in-place edit of the binding.
Use this method to enter simple data values. |
Double-Click |
Opens the binding in a multi-line text editor.
Use this method to enter a complex expression. |
Right-Click |
Opens a menu to offer additional options:
|
The Free Format Data Binding Editor is opened when the graphic editor does not have enough information about the embedded graphic. For example when the link to the embedded graphic is invalid.
Embedded graphic bindings use this syntax:
bindings = [ binding { ';' binding } [ ';' ] ] ;
binding = variable ':=' expression ;
Errors in Embedded Graphic Bindings are highlighted in the editor using a dashed red underline:
Note: If you move the cursor near the error, a tooltip will be displayed providing an explanation of the error.
The Embedded Graphic Binding Editor will not accept code with obvious syntax errors. It is still possible to enter code with more subtle semantic errors. To find and locate additional errors:
Note: The above message shows an error in the global bindings of the 'Graphic' tag.
Note: The property with the error is shown with red text.
Note: If you move the cursor near the error, a tooltip will be displayed providing an explanation of the error.
For information on using the graphic page editor.
For the meaning of terms used in Fernhill SCADA.