hi
I'm trying to fix the header of a table search in my dashboard.
My code is based on javascript. It works on http://jsfiddle.net/3q8py094/
However, when I try to add it on my dashboard, I get this message:
Uncaught TypeError: Cannot read property 'top' of undefined
I think this is because my table is not created, but how can I resolve it?
ps: I use an HTML dashboard
It looks to me like the following code isn't getting the correct element in your dashboard which is leading to an undefined error.
var querySelector = 'table[id*=drilldown]';
You'll probably want to use developer tools in your browser to explore the HTML and see what your table element is named. I'm not sure I can get any more specific without seeing your code.
The element is correct not need modification for that.
nobody can help?
i'm open to try any other solution to fix the header on table
It would be helpful if you could share the code for your dashboard somehow and some sample data otherwise we're just guessing. Also specify what version of Splunk you are running on.