SetWire extends Wire

When the value of a source element changes, the target element will be updated with this value (but not vice versa). Can be connected to any CanBeSynced model element.

A SetWire will synchronise the CanBeSynced elements contained within each of the synchronised elements in a manner similar to a SyncWire, except that this Wire is unidirectional; if the target value changes, the source value will not change. For a SetWire, the default element created depends instead on the following semantics:

  • If both the source container and the target container are InputForms, then the type of the default element will be a Label.
  • If the source container is a DomainIterator and the target container is a InputForm, Email or IteratorList, then the type of the default element will be a Label.
  • If the source container is a VisibleThing and the target container is a Map, then the type of the default element will be a MapPoint.

If a DomainIterator iterating over multiple results is connected to a InputForm with a SyncWire or SetWire, then the form will be populated in such a way to provide navigation over the data set. That is, Buttons will be created within the form to control the cursor over the iterator.

[SetWire.html]

Examples

Implementation Notes

Inference Rules

Constraints

Attributes

Inherited Attributes

Children

(none)

Inherited Children

References

(none)

Inherited References

Extensions

(none)

Inherited Extensions