Administering : Managing business rules and expressions : Business rule definition examples : LinkInfo example
  
LinkInfo example
In this example, the LinkInfo business rule is used to display attribute values from two modules in the elements of a third module.
The Products module contains details about the products you are working with. You related these products to releases and needs by linking to the Releases and Needs modules. For each product, you want to display values in attributes of those modules. For example, Title, Start date, and End date from Releases and Title and Document from Needs.
From the Releases module, display the values of the Title, Start date, and End date attributes.
Information about products 1 and 3 are shown in the attributes of Release A.
From the Needs module, display the values of the Title and Document attributes.
Information about products 1, 2, and 3 are shown in the attributes of Need 1.
To display the values of the attributes
1 In the Products module, add a Text attribute to be a container attribute. Name the attribute Related Information.
2 In the default value for the container attribute, add the following business rule: =LinkInfo("Links","Title,Start Date,End Date,Document","425")  
3 In the Products module, Links is an Incoming Links attribute, which is the Link Attribute Name parameter. The attributes that are listed as Attribute Names are automatically matched with attributes that are found in the linked modules and workspaces. For example, if you add the Title attribute, add it only once for all the attributes in all the modules with the attribute name "Title".
In the Products module, the Related Information attribute shows information from the other modules.
See also
LinkInfo business rule
Business rule definition examples