In some cases, it may be important to limit the insertion of aggregates in a module, ensuring that only items from the same group are accepted.
This rule helps to avoid inconsistencies in the application of models and keeps the module configuration more organized.
For this, there is the attribute UseModelsAggregatesOnlySameGroup, which allows controlling this behavior.
The purpose of this attribute is to ensure that the insertion of aggregates in a module is limited only to items that belong to the same group.
Attribute Functionality
The attribute UseModelsAggregatesOnlySameGroup defines how group validation will be applied:
True: Allows only the insertion of aggregates belonging to the same group as the module
False: Allows the insertion of aggregates from any group, without restrictions
Usage Example
Current Scenario
Using handles as an example to illustrate the use of the attribute:
Upper modules: Topázio collection with items Line and Concept
Lower modules: Topázio collections (Line and Editable) and Diamante.
With attribute = True
Only aggregates from the same group can be inserted
Items from different groups are blocked
With attribute = False or not applied
Insertion occurs normally
It is possible to use the same aggregates in different groups
For more information on how to apply the attribute, click here.
How to Register the Attribute
Step 1: Access the registration
Access the menu: Registration - System - Attributes
In entity.attributes, select the group Entity
Click on Add attribute – Create Attribute
Step 2: Basic Information
Fill in the fields:
ID: UseModelsAggregatesOnlySameGroup
Name: Use only aggregates from the same group
Step 3: Attribute Configuration
Configure:
-
Definition:
ID:
Name:
Description:
-
Parameters
Grouping: Entity
Type: True/False
Default Value: True
Minimum Value:
Maximum Value:
Measure:
Visible:
Edit:
Keep value to disassociate:
-
Wizard:
Category:
Order:
Behavior
Check the following options:
✔ Automatic creation
✔ Dynamic update
✔ Advanced propertie
✔ Save with the project
| IMPORTANT: All other options not mentioned should remain unchecked. |
Step 4: Apply changes
Click on Update
Restart Promob to apply the settings
|
USAGE TIPS:
|