I encountered an unexpected issue with the MutualFiltration functionality, specifically related to filtering sub-category in InfoMarket elements based on the selected category. This feature had been functioning correctly previously, but it seems to have stopped working without any recent updates or changes from our end.
As per our implementation, the MutualFiltration is supposed to filter the sub-category elements (UsrSousCategorie) based on the relationship between the selected category (UsrCategorie) and its corresponding sub-categories. The filtering logic is as follows: UsrSousCategorie.UsrCategory == UsrCategorie.
Terrasoft.sdk.Model.addBusinessRule("UsrMarketInfo", {
ruleType: Terrasoft.RuleTypes.MutualFiltration,
triggeredByColumns: ["UsrCategorie","UsrSousCategorie"],
connections: [{
parent: "UsrCategorie",
child: "UsrSousCategorie",
connectedBy:
{
modelName: "UsrSousCtegorieInfoMarket",
property: "UsrCategory",
}
}]
});