Administering : Managing business rules and expressions : Business rule definition examples : MatrixWriter example: Display attributes in other modules
  
MatrixWriter example: Display attributes in other modules
In this example, the MatrixWriter business rule is used to display the requirements information from one module in a matrix in another module.
The Releases module links to the Requirements module by using a Link attribute called “Requirements”. In the Releases module, for each Requirement, you want to display these attributes: Allocated to, Status, and Implementation Cost.
In the Releases module, which is the target module, add a Matrix attribute called “Requirement Information”. Each column in the matrix must correspond to an attribute name. The title of each Requirement is automatically included.
In the Releases module, add the business rule container attribute, which is a Text attribute, and enter the following text:
=MatrixWriter("Requirements","Requirement Information","1","false","listen_to=Allocated to","listen_to=Status","listen_to=Implementation Cost",'Requirements')
The MatrixWriter business rule populates the matrix with values from the requirements. The matrix is updated in the following situations:
when the Allocated to, Status, or Implementation Cost attribute for a requirement is changed
when a requirement is added to or removed from the List attribute.
Go up to
Business rule definition examples