i

Please enable JavaScript to view this site.

Documentation 8.8

The rules that relate to fields aim to implement business logic to dynamically define the values that the field can offer as selection options in a dropdown.

 

Relating a field to a business rule provides greater flexibility than binding to a value list, allowing to apply custom logic, add search filters, and dynamically adjust results based on different criteria.

 

Once the rule is implemented, it can be associated with a field. To do this, it is necessary to activate the Enable Relation to a Field property.

 

Rules can only relate to text fields.

 

 

MP-Campos-Relaciones-Reglas

 

Properties

 

Select rule

It allows selecting a rule from the set of rules modeled in the environment, with the option to filter the set by entering text into the search field.

 

Parameters

If it is necessary to pass input parameters to the rule, they must be selected and assign values to them, which can be fixed values, variables or fields of the same entity.

Example

 

A previously modeled rule “getUserByName” can be related and enter a fixed value “perez” as a parameter. In this way, all the users that contain the text 'perez' in their last name.

Send us your comments
Share on X Share on Linkedin Send by Email Print