Splunk Dev

Multiple Renderers to Multiple Tables (Splunk JS)

splunkian
Path Finder

Apologies if this has been asked elsewhere - I couldn't find an answer.

I am attempting to apply a BaseRowExpansionRenderer and a BaseCellRenderer to multiple tables on a dashboard like so:

    mvc.Components.getInstance("tbl_id1").getVisualization(function(tableView) {
        tableView.addRowExpansionRenderer(new RowExpansionRenderer());
        tableView.addCellRenderer(new ActionsRenderer());
        tableView.table.render();
    });

    mvc.Components.getInstance("tbl_id2").getVisualization(function(tableView) {
        tableView.addRowExpansionRenderer(new RowExpansionRenderer());
        tableView.addCellRenderer(new ActionsRenderer());
        tableView.table.render();
    });

The issue is that the sometimes all the tables render as expected, sometimes some of them render, and other times none of them render. This is currently being tested on Splunk Enterprise 7.0.1.

Is there a better way to do this to ensure all the tables always render the BaseRowExpansionRenderer and a BaseCellRenderer?

Thanks in advance.

Labels (1)
0 Karma

niketn
Legend

@splunkian table row expansion is not working or cell renderer? Also when you expand table row which is the viz you are using?

Can you check out if setTimeout helps?

https://answers.splunk.com/answers/614788/splunk-dashboard-examples-table-row-highlighting-b.html

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...