Show TOC

Declarative Support: AssociationsLocate this document in the navigation structure

An association is defined as a data attribute of the HTML tag. Instead of passing the reference to another control you define the ID of another control.

The following code gives an example:
<div data-sap-ui-type="sap.ui.commons.Label" data-text="Message:" data-label-for="message"></div>
<div data-sap-ui-type="sap.ui.commons.TextField" id="message"></div>

The code snippet defines the link between Label and TextField by using the ID of TextField as a value for the data-label-for attribute of the Label.