Parameter
|
Description
|
---|---|
"Function"
|
The mathematical function to be performed. Use min to calculate minimum, max to calculate maximum, sum to calculate sum, avg to calculate average, and no to calculate the number of links. sum function is not applicable for Date attributes.
|
"Safe"
|
Set this parameter to true if the business rule should fail for non-numeric values.
|
"View ID"
|
The ID of the view that determines the elements to be included in the calculation. Use -1 to include all the elements.
|
"User ID"
|
The global user ID of the member who has access to the view mentioned for the List business rule. If View ID is ‑1, specify User ID also as -1.
|
"Attribute Name"
|
The name of the attribute in the linked element that is to be used. You can provide a space instead of providing a specific attribute name.
Example:
= List ("No", "false", "-1", "-1",
" ","ListAttribute", 'ListAttribute') |
"List Attribute Name"
|
The name of the Link List or an Incoming Links attribute.
|
'List Attribute Name'
|
The name of the Link List or an Incoming Links attribute.
|
"listen_to"
|
Detects changes in a specified attribute in the linked elements. A listen_to parameter must be specified for the source attribute. Additional listen_to parameters are needed for each attribute in the source module that the view rules depend on.
Example: Consider a view that has two elements, ElementA and ElementB, each with a Status and Time attribute. If the view rule is “All elements whose Status is Accepted”, the business rule must have two listen_to parameters, one each for the Status attribute and the Time attribute, that the view rule depends on. The business rule can be:
= List("sum","true","55","100","Time",
"Elements",'Elements',"listen_to=Status", "listen_to=Time") This ensures that the result of the business rule is updated when either the time attribute or the status attribute change.
|