From d79f45fec2478ebdc75fcc3c195d6caf2cf570ed Mon Sep 17 00:00:00 2001 From: philippe tcheriatinsky <philippe.tcherniatinsky@inrae.fr> Date: Mon, 10 Feb 2025 13:19:39 +0100 Subject: [PATCH] correction #334 --- src/model/application/Component.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/model/application/Component.js b/src/model/application/Component.js index 882103428..7a1517380 100644 --- a/src/model/application/Component.js +++ b/src/model/application/Component.js @@ -397,6 +397,12 @@ class PatternQualifierComponent extends Component { (column) => column.__ORIGINAL_COLUMN_NAME__ == pattern[3] )?.[pattern[2]]; } + pattern = this.id.match("(.*)::(.*)"); + if (pattern) { + return row.values[pattern[1]]?.find( + (column) => column.__ORIGINAL_COLUMN_NAME__ == pattern[2] + )?.[pattern[2]]; + } let value = row.values?.[this.parentComponentKey]?.[0]?.[this.id]; return row.displaysForRow?.[this.refLinkedTo]?.[value] || value; } @@ -439,6 +445,10 @@ class PatternAdjacentComponent extends Component { (column) => column.__ORIGINAL_COLUMN_NAME__ == pattern[3] )?.[pattern[2]]; } + pattern = this.id.match("(.*)::(.*)"); + if (pattern) { + return row.values[pattern[1]]?.[0]?.[pattern[2]] + } return "PatternAdjacentComponent not found " + this.id; } } -- GitLab