Binding a property
-
This link button is not selected, which means that the property value is taken from the values entered in manually into the property's value field
-
This link button is selected, which means that the property value is bound to the value of another component. The drop-down list to the left of the property's value field allows you to select which component this is bound to.
You can bind a component's property either to the property of another component, or to a target-side property. Target side properties may be sent through different Target Communication methods. The syntax will depend
on target communication model chosen. We suggest that you use auto completion (CTRL + space bar) to assist you in specifying bindable properties(at this point this is only supported for JSON based protocols once GUI Composer has been taught through Target Communication configuration page) . Please refer to Communicating using JSON-formatted strings to see how to teach GUI Composer bindable properties.
To bind to a target-side property:
- Select a widget, then click on link button beside a property that you want to bound. In most widgets this would be value property. If you only have one target communication method specified in your GUI Composer application then that method should be selected by default in drop down list. If you have more than
one target communication method than you will need to select which transport/protocol to use for this particular widget. The names of target communication method are usually based on transport chosen. E.g. USB-UART is called 'my_usb_uart'. Select the my_yourTransportChoice component from the drop-down list. Enter the name of the target-side property you wish to bind to in the input box to the right of this.
- Target Side property could be a global variable when using program based bindings or a JSON property when using JSON based protocol.
For more information on how to bind widgets to display target state or to control the target, please see Interacting with a Target Device