Property Hub Modifier
| Block Group: | Logic |
The Property Hub Modifier block enables you to dynamically control the source and target of the value of its fields by specifying the name of the source property in the field's field n parameter. The value of the field is propagated to connected blocks according to the setting of the hubMode parameter.
The following simple example uses a string property to specify the name of the property mapped to field0. The property hub that is connected to the property hub modifier has two properties, and the property name in the string variable specifies the property that is used to populate field0.
For information on using dataflow blocks, see Dataflow.
Input/Output Properties
The following properties of the Property Hub Modifier block can take input and give output.
- invoke (trigger)
- autoRun (bool)
- hubMode (enum)
- hubInstance
- field n
- value n
** invoke ** triggers the block. In readWrite or writeOnly mode, all of the value n values are written to the main hub.
** autoRun ** specifies whether a changed value n is written to the main hub automatically. The block from the palette has autoRun set to TRUE. This property is not shown on the block.
** hubMode ** controls the block behavior. The default is readWrite.
- readWrite – Reads values from the main hub, and writes changed values back to it.
- readOnly – Reads values from the main hub, but does not write changes back.
- writeOnly – Writes values to the main hub, but is not updated by it.
** hubInstance ** binds this block to a Property Hub block whose hubMode is main. Bind it to the hubInstance of that block.
** field n ** is the name of the property in the main hub that the field reads and writes.
** value n** is the value of the field, which is read from and written to the property specified by field n according to the hubMode setting.
Click the plus sign to add a field/value pair.
