The rules and businessRules properties of the client schema contain a configuration object with its own properties.
Primary properties
Rule type. Defined by the BusinessRuleModule.enums.RuleType enumeration value.
BINDPARAMETER | Business rule type. Use this rule type to link properties of a column to values of different parameters. For example, set up the visibility of a column or enable a column depending on the value of another column. |
FILTRATION | Business rule type. Use the FILTRATION rule to set up filtering of values in view model columns. For example, filter a LOOKUP column depending on the current status of a page. |
Use for the BINDPARAMETER business rule type. Control property. Set by the BusinessRuleModule.enums.Property enumeration value.
VISIBLE | Whether visible. |
ENABLED | Whether available. |
REQUIRED | Whether required. |
READONLY | Whether read-only. |
Use for the BINDPARAMETER business rule type. Condition array for rule application. Each condition is a configuration object.
leftExpression | Expression of the left side of the condition. Represented by a configuration object.
Properties of the configuration object
The expression type. Set by the BusinessRuleModule.enums.ValueType enumeration value. Available values (BusinessRuleModule.enums.ValueType)
Name of the model column. Meta-path to the lookup schema column Comparison value. |
||||||||
comparisonType | Type of comparison. Set by the Terrasoft.core.enums.ComparisonType enumeration value. | ||||||||
rightExpression | Expression of the right side of the condition. Similar to leftExpression. |
Use for the BINDPARAMETER business rule type. The logical operation that combines the conditions from the conditions property. Set by the Terrasoft.LogicalOperatorType enumeration value.
Use for the FILTRATION business rule type. Reverse filtering flag. Can be true or false.
Use for the FILTRATION business rule type. The flag that enables automated value cleanup when the column by which to filter changes. Can be true or false.
Use for the FILTRATION business rule type. Meta-path to the lookup schema column that will be used for filtering. Apply the feedback principle when building the column path, similar to EntitySchemaQuery. Generate the path relative to the schema to which the model column links.
Use for the FILTRATION business rule type. Type of comparison operation. Set by the Terrasoft.ComparisonTypeenumeration value.
Use for the FILTRATION business rule type. The value type for comparison baseAttributePatch. Set by the BusinessRuleModule.enums.ValueType enumeration value.
Use for the FILTRATION business rule type. The name of the view model column. Describe this property if the ATTRIBUTE value type is indicated.
Use for the FILTRATION business rule type. Meta-path to the object schema column. Apply the feedback principle when building the column path, similar to EntitySchemaQuery. Generate the path relative to the schema to which the model column link.
Use for the FILTRATION business rule type. Filtration value. Describe this property if the ATTRIBUTE value type is indicated.
Additional properties
Use additional properties only for the businessRules property.
Unique rule ID. The "GUID" type value.
Enabling flag. Can be true or false.
The flag that indicates whether the rule is removed. Can be true or false.
The flag that indicates whether the rule is valid. Can be true or false.