How to make a highlight on TEXT which is you looking for … IG, IR, CR?
Salam,
The Steps:
- First Create your report regions whether Interactive report grid or even classic.
- Add create a dynamic action with the event “Key Release”.
- Make the Selection Type = “Items” and assign your Search Item.
- Choose “Execute Javascript Code” then drop next JS code.
var t = $v('P3_TEXT'); //Replace it with your search item
t = t.toLowerCase();
var e = $("td").filter(function() {
return $(this).text().toLowerCase().indexOf(t) > -1;
});
if(t==''){
$('td').removeClass('hasSearchText');
}else{
$('td').removeClass('hasSearchText');
$(e).addClass('hasSearchText');
}
- Now go to the page level > CSS inline section and add next code.
.hasSearchText{
font-size: 16px!important;
color: red!important;
font-weight: 700!important;
}
- Save then check …
That’s it 🙂