- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2024 04:24 AM
Hi everyone
the custom filter with dynamic content block is not applied on the table and the related field. After the checks I noticed that the publishFilter is not applied on the Report List.
The field I'm trying to apply the custom filter on is a string field that can contain error codes separated by commas (e.g. ERR60, ERR180 and so on).
Below is the widget I created:
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<form id="MyError" class="form-inline asset_error">
<span class="filter-block">
<div class="form-group">
<select id="selectVal" class="form-control" name="Errori Asset" title="sel_val" onchange="handleChangeSelection()">
<option value="Opzione">--- Selezione Errore ---</option>
<option value="ERR60">ERR60: Data installazione non indicata</option>
<option value="ERR80">ERR80: Localizzazione incongruente con lo stato</option>
<option value="ERR180">ERR180: Sistemi localizzati non su Rack</option>
</select>
</div>
</span>
</form>
<script>
function handleChangeSelection() {
console.log("Sono nella handleChangeSelection: ","FERR");
var uuid = "myError";
var valueselected = document.getElementById("selectVal").value;
var evaluate = "LIKE";
var query="";
console.log("valueselected: "+valueselected,"FERR");
var dbMH = new DashboardMessageHandler(uuid);
var filter_message = {};
filter_message.table = "alm_hardware";
filter_message.filter = "u_error" + evaluate + valueselected;
if(valueselected == "Opzione") {
console.log("Rimuovo i filtri: ","FERR");
dbMH.removeFilter();
} else {
console.log("Tabella coinvolta: "+filter_message.table,"FERR");
console.log("Applico questo filtro: "+filter_message.filter,"FERR");
dbMH.publishFilter(filter_message.table,filter_message.filter);
}
}
</script>
</j:jelly>
this the message traced into the Debug Filters OOTB.
Please can anyone give me some pointers on what I'm doing wrong?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2024 10:04 AM
The problem was the Follow interact filter checkbox in Report Widget.
Maybe I have select it before add the custom filter, after remove flag on checkbox and reflag the checkbox the Report has start to follow the custom filter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2024 10:04 AM
The problem was the Follow interact filter checkbox in Report Widget.
Maybe I have select it before add the custom filter, after remove flag on checkbox and reflag the checkbox the Report has start to follow the custom filter.
