Forum Discussion

cglowe's avatar
cglowe
Cloud Apps
02-07-2022
Solved

Linux pivot2 - how to replace null with '-'

In Windows, with pivot1, we were using the following script to replace null values with a dash (-).  We've moved to Linux and are aware the script will not work.  What script should we use to accompl...
  • harikm007's avatar
    02-07-2022

    cglowe ,

    Please check if this script works for you : 

    widget.on('ready', function(){
    	$('div[class*=table-grid__content__inner]').map(function(i, cell) {
    		if(cell.innerHTML == " " || cell.innerHTML == "") cell.innerHTML="-"; //change the condition based on requirement
    	})
    })

    -Hari