We just upgraded from v6.4 to v7.0.1 and now I am getting an error when trying to use the TableView component on a dashboard. The dashboard will load fine with TableElement but I need the TableView to do a custom cell renderer.
The dashboard previously worked before the upgrade. The error makes sense but I can't figure out how to get around it. I've tried putting delays in the Javascript but I still get the error:
"VisualizationRegistry has not been populated yet. Make sure that the visualizations collection is loaded before attempting to use it."
It turned out to be having to simply include "splunkjs/ready!" as a parameter to require. This oddly worked in v6 of Splunk without it though.
It turned out to be having to simply include "splunkjs/ready!" as a parameter to require. This oddly worked in v6 of Splunk without it though.
@skisoccer13, if your problem is resolved, please accept the answer (it's OK to accept your own answer) to help future readers.
I oddly cannot recreate the problem on a different instance of Splunk. I will have to try again tomorrow. I am going to follow this tutorial instead of the one in the Dashboard Examples app since I am doing a pure HTML dashboard: http://dev.splunk.com/view/webframework-codeexamples/SP-CAAAE5Q
@skisoccer13, Simple XML JavaScript Extension should also work in HTML Dashboards. But you can go ahead and try out HTML dashboard if that is easier for you.
If you are planning to use Sparklines using TableView, then the same are available directly via Simple XML chart configurations using <format>
option. Refer to my Splunk Wiki Talk topic on various Table Sparkline (PS: Splunk does not support all Sparklines officially) https://wiki.splunk.com/User_talk:Niketnilay#Topic_11:_Types_of_jQuery_Sparklines_in_Splunk_.28besid...
You can also refer to Splunk Dashboard Examples App for Table Element with Sparklines example, which illustrates this.
@skisoccer13, I would expect it to be some issue with your JavaScript code. Have you tried checking out Splunk Dashboard Examples app from Splunkbase to see whether the Table Cell color and Table Roe color examples work fine or Not. They also use custom cell rendering.
If you want us to help you with your scenario you might have to share your JavaScript code so that we can figure out where the issue is.