Splunk Dev

Is it possible to add print/export icons using SplunkJS?

bohanlon_splunk
Splunk Employee
Splunk Employee

I'm trying to add print/export icons using Splunk's splunkjs framework and splunkjs/mvc/searchcontrolsview, to display the job menu and buttons

Docs I'm following:
http://docs.splunk.com/DocumentationStatic/WebFramework/1.3/compref_searchcontrols.html

Observations:
Use of the ResultLinkView (splunkjs/mvc/resultslinkview) dependency even without actually using it results in JS error: "Uncaught Error: getConfigValue - MRSPARKLE_PORT_NUMBER not set, no default provided"

Tags (3)
0 Karma
1 Solution

bohanlon_splunk
Splunk Employee
Splunk Employee

This (using the print/export buttons via SplunkJS) is not currently supported.
Enhancement request to add support for this is: DVPL-7148

View solution in original post

bohanlon_splunk
Splunk Employee
Splunk Employee

A Hack, which would be totally unsupported would be:

0=Download and extract the attached zip.
1=Create a copy of existing splunkjsstack_1.4/static/splunkjs/config.js as backup and keep it somewhere outside of your project directory. This is just to restore the original config.js file if something goes wrong with the new test file.
2=Now, replace the above file with the attached config.js file
3=Test in your .html doc (sample doc attached).

bohanlon_splunk
Splunk Employee
Splunk Employee

Downloads are too big to attach directly. Available here instead:
https://splunk.box.com/s/7xts7re5sok6vvazb4yhdn93pekornbi

0 Karma

evyatare
New Member

For which version of SplunkJS this hack should be applied?

0 Karma

bohanlon_splunk
Splunk Employee
Splunk Employee

This (using the print/export buttons via SplunkJS) is not currently supported.
Enhancement request to add support for this is: DVPL-7148

Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...