<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: can i hide and show the modules ?? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20806#M177316</link>
    <description>&lt;P&gt;Switcher is a module included in Sideview Utils 2.0, and there is a page of documentation about Switcher inside the app.  It's possible sowings is talking about the TabSwitcher/LinkSwitcher/PulldownSwitcher modules in splunk core,  but since Switcher is a more fundamental app that &lt;EM&gt;just&lt;/EM&gt; does the show/hide stuff,  I think he's talking about Switcher. &lt;/P&gt;

&lt;P&gt;Also, in general hiding and showing modules according to custom logic is something that is commonly done from Sideview "customBehavior" code, that you write in application.js&lt;/P&gt;</description>
    <pubDate>Wed, 01 Aug 2012 21:45:29 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2012-08-01T21:45:29Z</dc:date>
    <item>
      <title>can i hide and show the modules ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20803#M177313</link>
      <description>&lt;P&gt;Hi..&lt;/P&gt;

&lt;P&gt;I have created a advanced xml with certain no of modules in it.can i hide the modules and display when ever i need .. is this possible in splunk ??&lt;/P&gt;

&lt;P&gt;please help&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2012 11:34:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20803#M177313</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-07-30T11:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: can i hide and show the modules ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20804#M177314</link>
      <description>&lt;P&gt;You can use the "Switcher" module family to show or hide certain pieces of the dashboard.  Without more specifics, however, it's difficult for me to provide a more targeted answer.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2012 12:24:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20804#M177314</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2012-07-30T12:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: can i hide and show the modules ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20805#M177315</link>
      <description>&lt;P&gt;can you please provide an example for that swichter module ??&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2012 14:44:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20805#M177315</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-07-30T14:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: can i hide and show the modules ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20806#M177316</link>
      <description>&lt;P&gt;Switcher is a module included in Sideview Utils 2.0, and there is a page of documentation about Switcher inside the app.  It's possible sowings is talking about the TabSwitcher/LinkSwitcher/PulldownSwitcher modules in splunk core,  but since Switcher is a more fundamental app that &lt;EM&gt;just&lt;/EM&gt; does the show/hide stuff,  I think he's talking about Switcher. &lt;/P&gt;

&lt;P&gt;Also, in general hiding and showing modules according to custom logic is something that is commonly done from Sideview "customBehavior" code, that you write in application.js&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2012 21:45:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20806#M177316</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2012-08-01T21:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: can i hide and show the modules ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20807#M177317</link>
      <description>&lt;P&gt;I have the same problem, I want to show/ hide modules, but I really do not want to use the switcher module as I would have to duplicate all of the subtree hierarchy.&lt;/P&gt;

&lt;P&gt;Could you provide a core js file where this functionality is implemented?&lt;/P&gt;

&lt;P&gt;Many thanks,&lt;/P&gt;

&lt;P&gt;Guilhem&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2012 14:05:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20807#M177317</guid>
      <dc:creator>guilhem</dc:creator>
      <dc:date>2012-11-30T14:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: can i hide and show the modules ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20808#M177318</link>
      <description>&lt;P&gt;I often have to show and hide modules in my apps, and I use a customBehavior with a little bit of Javascript.  The most common case I hit is where there's a Pulldown or TextField that is only relevant when some other value is selected upstream.   It's quite easy to wire up with a customBehavior though;  if you post it as another question I can answer it and give sample code.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2012 22:15:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20808#M177318</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2012-11-30T22:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: can i hide and show the modules ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20809#M177319</link>
      <description>&lt;P&gt;Thanks! I will try to do it myself (I have wandered a bit in the sideview *.js files). If I have any trouble I'll let you know.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2012 08:18:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20809#M177319</guid>
      <dc:creator>guilhem</dc:creator>
      <dc:date>2012-12-03T08:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: can i hide and show the modules ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20810#M177320</link>
      <description>&lt;P&gt;Using sideviewUtils and customBehavior, here's what I have come up with (write this inside the /Myapp/appserver/static/application.js file):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;// Declare the name of the customBahavior inside the module you want to hide according to upstream context (here I have called it hideModule).
Sideview.utils.declareCustomBehavior("hideModule", hideFunction);

// Register the function you want to call whant this customBehavior is triggered
function hideFunction(module)
{
        // Register the callback for the event you want your custom behavior to trigger on,
        // Here I want it to trigger on context change
        module.onContextChange=contextFunctionCallBack;
}

// Hide/Show the module according to upstream context value
function contextFunctionCallBack()
{
        // Note that the name "MyCustomValue" have to be declared in a module upstream
        if(this.getContext().get("MyContextValue") == -1)
        {
                this.show();
        }
        else
        {
                this.hide();
        }
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This has worked nicely for me.&lt;/P&gt;

&lt;P&gt;One thing remains, I want to be able to hide the module when the page is displayed (by default the module should be hidden), I didn't found a way to do this (see topic &lt;A href="http://splunk-base.splunk.com/answers/67918/sideview-utils-can-i-hide-a-module-on-page-load"&gt;here&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2012 10:24:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20810#M177320</guid>
      <dc:creator>guilhem</dc:creator>
      <dc:date>2012-12-03T10:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: can i hide and show the modules ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20811#M177321</link>
      <description>&lt;P&gt;If all you need to do is hide a module from the UI, this can be easily done with CSS (and maybe some ValueSetter modules). I am doing this by adding a cssClass parameter to modules set to the ViewRedirector class suffixed with a variable that will be blank when want the item hidden.&lt;/P&gt;

&lt;P&gt;&lt;OBJECT&gt;&lt;PARAM name="cssClass" /&gt;ViewRedirector$variableThatWillBeBlankWhenIWantToHideTheModule$&lt;/OBJECT&gt;&lt;/P&gt;

&lt;P&gt;When the suffixed variable's value is NULL or an empty string, the class will be ViewRedirector, which contains display:none which hides the module from the UI. When the variable value is not blank, it will assign a non-existent (unless you create it) class name and will therefore not hide the module.&lt;/P&gt;

&lt;P&gt;If you don't want to use the existing ViewRedirector class, you can create your own class that contains display:none.&lt;/P&gt;

&lt;P&gt;Please be aware that this only hides the module from view in the browser. Any settings set in it before it is hidden will still exist.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2013 22:50:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20811#M177321</guid>
      <dc:creator>joebensimo</dc:creator>
      <dc:date>2013-09-02T22:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: can i hide and show the modules ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20812#M177322</link>
      <description>&lt;P&gt;Hi could you please share me your above sample code?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2014 14:20:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-i-hide-and-show-the-modules/m-p/20812#M177322</guid>
      <dc:creator>Bhuavana</dc:creator>
      <dc:date>2014-07-18T14:20:39Z</dc:date>
    </item>
  </channel>
</rss>

