Hide categorized view rows if the total is 1

Helps parse a categorized view more quickly when trying to find instances greater than 1 of something.
JQuery • Lotus Notes View

Add this to your $$ViewTemplate for the categorized view. The first column should total and hide the details row.

$('.viewdiv table tr').each(function(){
	var firsttd = $(this).find('td:first');
	if (firsttd.html()=='<font color="#000000">1</font>'){
		$(this).hide();	
	}		
});
$('.viewdiv table tr:last').hide();
$('.viewdiv').removeClass('d-none');

Written by fbrefere001

Posted by fbrefere001 on Wednesday February 26, 2025