The AQ_InstanceLinker is used to set a Relation between a user-selected instance of a multiton Entity and another (singleton or multiton) instance via a dropdown list |
The AQ_InstanceLinker displays a dropdown list of instances. The InstanceLinker container should be added to the page through a relation. When the page is committed, the relation is filled with the selected instance.
Name | Description | Type | Required |
---|---|---|---|
Select entity | Select the name of the entity of which you want to select the instance. | String | Yes |
Attributes | Select the attributes from the instances you want to show in the selector. | String | Yes |
Selection | Expression used to get a subset from the entity instances. | Boolean | No |
Sort order | Order to sort the instances shown, based on the shown attributes (if the first attribute is not unique, the second attribute is sorted and so on) | {None (default), Ascending, Descending} | No |
Sort attribute | Instead of sorting by the attribute values selected on the 'Attributes' parameter; sort by a specific attribute. | String | No |
Required | Choose Y (yes), N (no) or C (conditional). If conditional, an editbox appears to edit the condition. | {Y,N,C} | No |
Read-only | Choose Y (yes), N (no) or C (conditional). If conditional, an editbox appears to edit the condition. | {Y,N,C} | No |
Refresh | Choose Y (yes) or N (no). | {Y,N} | No |
Presentation Styles | Specify a list of presentation styles to be applied | List of Presentation Style | No |
To let a user select a billing address out of several addresses they have submitted, you could create an AQ_InstanceLinker that displays entity Address and attributes Address.Street, Address.HouseNumber, Address.City.
You would then add a relation to your page or container and select "Customer", "HasBillingAddress", and this AQ_InstanceLinker:
The result would look like this:
The pink text in the example above is the display name of the container and the bold black text is the question text of the relation "HasBillingAddress". |