Aggiornamento main #12

Merged
Alessio merged 25 commits from staging into main 2026-03-20 17:20:29 +01:00
Showing only changes of commit 791f2cdc1f - Show all commits
+31
View File
@@ -819,6 +819,37 @@
(!IsOdbcConnection() && isDatabaseConnected && ((useCustomQuery && isQueryValid) || (!useCustomQuery && !string.IsNullOrEmpty(selectedTable)))))) || (!IsOdbcConnection() && isDatabaseConnected && ((useCustomQuery && isQueryValid) || (!useCustomQuery && !string.IsNullOrEmpty(selectedTable)))))) ||
(selectedSourceType == "file" && !string.IsNullOrEmpty(selectedSheet)); (selectedSourceType == "file" && !string.IsNullOrEmpty(selectedSheet));
} }
<!-- DEBUG: Mostra stato variabili per ODBC -->
@if (IsOdbcConnection())
{
<div class="alert alert-warning mt-3">
<strong>🔍 DEBUG ODBC - Stato variabili per Mapping:</strong><br/>
• <code>isSourceReady</code>: <strong>@isSourceReady</strong>
(ODBC: @IsOdbcConnection(), useCustomQuery: @useCustomQuery, isQueryValid: @isQueryValid)<br/>
• <code>isRestConnected</code>: <strong>@isRestConnected</strong><br/>
• <code>selectedRestEntity</code>: <strong>@(selectedRestEntity?.Name ?? "NULL")</strong><br/>
• <code>restEntityDetails</code>: <strong>@(restEntityDetails != null ? "LOADED" : "NULL")</strong><br/>
<hr class="my-2"/>
@if (!isSourceReady)
{
<span class="text-danger">❌ Source non pronta</span>
}
@if (!isRestConnected)
{
<span class="text-danger">❌ REST non connesso</span>
}
@if (selectedRestEntity == null)
{
<span class="text-danger">❌ Nessuna entità REST selezionata</span>
}
@if (isSourceReady && isRestConnected && selectedRestEntity != null)
{
<span class="text-success">✅ Tutte le condizioni soddisfatte - MAPPING DOVREBBE APPARIRE</span>
}
</div>
}
@if (isSourceReady && isRestConnected && selectedRestEntity != null) @if (isSourceReady && isRestConnected && selectedRestEntity != null)
{ {
<div class="row mt-4"> <div class="row mt-4">