Splunk Search

Highlight a row or change the Background color of the row when an element on that is clicked.

sdhawanx
Path Finder

I have a table in my Dashboard which displays a large amount of data and has drilldowns which activates other table results. I want to either to highlight the selected row or change the background color only using simple xml as I don't have the access to change or add the js file. or if there is a way to add .js code in the simple xml code itself. any leads would be helpful.

Labels (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Add a hidden panel with some CSS in. Give your panel with your table with the drilldown an id.

    <panel depends="$AlwaysHidden$">
      <html>
        <style>
          div[id="tablewithdrilldown"] tr[data-view$="ResultsTableRow"] td:focus
          {
            color: yellow !important;
            background-color: red !important;
          }
        </style>
      </html>
    </panel>
    <panel id="tablewithdrilldown">
      <table>
0 Karma

sdhawanx
Path Finder

This solution for some reason is not working for my dashboard panel.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Perhaps you can share your dashboard Simple XML?

0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...