Refine your search:

I'm creating a custom view and the only action I want to provide my users is to export results. For the TitleBar module is it possible to limit the list of actions to only export results?

asked 29 Mar '10, 17:23

Alan%20Bradley's gravatar image

Alan Bradley
8606734
accept rate: 100%


2 Answers:

Unfortunately not. the TitleBar module takes a parameter called actionsMenuFilter, which sounds promising but cannot do this -- it can only take three values, 'search', 'dashboard' and 'dashboard-SimpleDashboard'.

The first controls the presence and absence of all of the save-search, save-eventtype, and export stuff, all together. The second controls certain stuff like 'schedule this dashboard for printing', and the last one is an internal thing that puts up the 'edit this dashboard' link.

In the future we could and probably should broaden this parameter to allow individual items to be switched on and off. (If you want to increase the likelihood of this happening or speed it up, feel free to send an email to support@splunk.com and describe what you're trying to get done.)

and if you really need this so much that a) you're willing to create and own a custom CSS file, b) you're willing to convert your view to the advanced XML and c) you're OK with it being a green button saying 'Export' ...

then you can put a module into your XML tree called ResultsActionButtons, and use the following custom CSS in that one view to remove all the buttons except for the 'Export' button.

.ResultsActionButtons .saveButton,
.ResultsActionButtons .printButton,
.ResultsActionButtons .linkButton,
.ResultsActionButtons .editButton,
.ResultsActionButtons .splViewEvents {
    display:none;
}

/*
    And as a bonus, we'd like the export button to be green. 
    (Normally it is grey in this module)
*/
.ResultsActionButtons .exportButton {
    background-color:#73A550;
}

A couple people out there in the wild have done this trick, and once the version of the ui_examples app for 4.1 is up on splunkbase, there's a living example of exactly this in there that you can just check out.

link

answered 29 Mar '10, 21:07

nick's gravatar image

nick ♦
14.2k1318
accept rate: 46%

edited 23 Apr '10, 17:09

Hi, which view has this feature in your ui_examples app?

(16 Nov '10, 10:48) Ant1D

its in ui_examples/default/data/ui/views/custom_css_export_button.xml, so you can go to /en-US/app/ui-examples/custom_css_export_button. In the top tag you'll see it refer to its own custom stylesheet, and that's where I put the CSS I referred to.

(16 Nov '10, 17:33) nick ♦

excellent workaround , works great! Thanks.

link

answered 04 Oct '10, 08:34

gooza's gravatar image

gooza
1675
accept rate: 17%

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×117
×71
×37

Asked: 29 Mar '10, 17:23

Seen: 994 times

Last updated: 04 Oct '10, 08:34

Copyright © 2005-2012 Splunk, Inc. All rights reserved.