Splunk Search

Custom Cell Renderer intermittently working.

skahal_personal
New Member

Hello I have noticed that in some of my dashboards, especially the more complicated ones with multiple sub searches that the custom cell renderer does not work as expected. Specifically the addCellRenderer method doesn't trigger a re-render as the documentation states: https://dev.splunk.com/enterprise/docs/developapps/visualizedata/displaydataview/howtocustomizetable...

I have verified this with console log, the constructor of the cell renderer is invoked but none of the other critical methods like setup and of course render ever run. I need to reference some field data in the renderer to apply styles, so I am waiting till data has been fetched for the particular table view before adding the cell renderer. Is this the issue?

 

 

 

searchResults.on("data", function() {
   if (searchResults.hasData()) { .. add fields to cell renderer object, addCellRenderer }
}

 

 

 

 Any help appreciated, thank you.

0 Karma
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...