update query

This commit is contained in:
nicola 2022-10-24 10:15:14 +02:00
parent 84f9a94873
commit fd92f4cd49
1 changed files with 9 additions and 4 deletions

View File

@ -516,9 +516,9 @@ $(document).ready(function() {
var clausolaquery = $("#searchValue").val() var clausolaquery = $("#searchValue").val()
filtro['query'] = clausolaquery.trim(); filtro['query'] = clausolaquery.trim();
// eventualmente le 2 seguenti non funzionano Nicola // eventualmente le 2 seguenti non funzionano Nicola
// checkedField = $('#lemma_forma').val(); // checkedField = $('#lemma_forma').val();
// filtro['lemma_forma'] = checkedField // filtro['lemma_forma'] = checkedField
condizioniFiltro['filtro-' + filterconditions] = filtro condizioniFiltro['filtro-' + filterconditions] = filtro
@ -626,7 +626,12 @@ $(document).ready(function() {
//console.log(binding.has('sub')); // Will be true //console.log(binding.has('sub')); // Will be true
resultTablePart4 = '<tr><th scope="row" class="text-muted">' + rowNum++ + '</th>'; resultTablePart4 = '<tr><th scope="row" class="text-muted">' + rowNum++ + '</th>';
for (var i = 0; i < queryFields.length; i++) { for (var i = 0; i < queryFields.length; i++) {
resultTablePart4 = resultTablePart4 + '<td class="text-muted">' + binding.get(queryFields[i]).value + "</td>"; if (binding.get(queryFields[i]) != null) {
val = binding.get(queryFields[i]).value
} else {
val = "na"
}
resultTablePart4 = resultTablePart4 + '<td class="text-muted">' + val + "</td>";
}; };
resultTable = resultTable + resultTablePart4 + '</tr>'; resultTable = resultTable + resultTablePart4 + '</tr>';
$("#risultatitesto").append(binding.toString() + ",\n"); $("#risultatitesto").append(binding.toString() + ",\n");