From 791f2cdc1f411bd1ede97d70d8df0318ea73d22f Mon Sep 17 00:00:00 2001 From: Alessio Dal Santo Date: Tue, 3 Feb 2026 09:42:18 +0100 Subject: [PATCH] =?UTF-8?q?[Debug]=20Aggiunto=20pannello=20debug=20ODBC=20?= =?UTF-8?q?per=20diagnosticare=20visibilit=C3=A0=20mapping?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Mostra stato di tutte le variabili che controllano la visibilità del mapping - Indica quale condizione non è soddisfatta (isSourceReady, isRestConnected, selectedRestEntity) - Pannello visibile solo per connessioni ODBC - Aiuta a identificare rapidamente il problema --- Data_Coupler/Pages/DataCoupler.razor | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/Data_Coupler/Pages/DataCoupler.razor b/Data_Coupler/Pages/DataCoupler.razor index 0e0fa65..44121c0 100644 --- a/Data_Coupler/Pages/DataCoupler.razor +++ b/Data_Coupler/Pages/DataCoupler.razor @@ -819,6 +819,37 @@ (!IsOdbcConnection() && isDatabaseConnected && ((useCustomQuery && isQueryValid) || (!useCustomQuery && !string.IsNullOrEmpty(selectedTable)))))) || (selectedSourceType == "file" && !string.IsNullOrEmpty(selectedSheet)); } + + + @if (IsOdbcConnection()) + { +
+ 🔍 DEBUG ODBC - Stato variabili per Mapping:
+ • isSourceReady: @isSourceReady + (ODBC: @IsOdbcConnection(), useCustomQuery: @useCustomQuery, isQueryValid: @isQueryValid)
+ • isRestConnected: @isRestConnected
+ • selectedRestEntity: @(selectedRestEntity?.Name ?? "NULL")
+ • restEntityDetails: @(restEntityDetails != null ? "LOADED" : "NULL")
+
+ @if (!isSourceReady) + { + ❌ Source non pronta + } + @if (!isRestConnected) + { + ❌ REST non connesso + } + @if (selectedRestEntity == null) + { + ❌ Nessuna entità REST selezionata + } + @if (isSourceReady && isRestConnected && selectedRestEntity != null) + { + ✅ Tutte le condizioni soddisfatte - MAPPING DOVREBBE APPARIRE + } +
+ } + @if (isSourceReady && isRestConnected && selectedRestEntity != null) {