[Debug] Aggiunto pannello debug ODBC per diagnosticare visibilità mapping
- 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
This commit is contained in:
@@ -819,6 +819,37 @@
|
||||
(!IsOdbcConnection() && isDatabaseConnected && ((useCustomQuery && isQueryValid) || (!useCustomQuery && !string.IsNullOrEmpty(selectedTable)))))) ||
|
||||
(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)
|
||||
{
|
||||
<div class="row mt-4">
|
||||
|
||||
Reference in New Issue
Block a user