<?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: Module Switcher not working as expected in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199758#M20892</link>
    <description>&lt;P&gt;Below the valuesetter module I have added&lt;BR /&gt;
&lt;OBJECT&gt;&lt;PARAM name="name" /&gt;charting.chart&lt;BR /&gt;
&lt;PARAM name="value" /&gt;$reportSplit[1]$&lt;/OBJECT&gt;&lt;/P&gt;

&lt;P&gt;but to no avail.&lt;BR /&gt;
I know that the value is being picked up as it is possible to pipe the output to a text string (reportSplit[1] displays the correct value of either bar or column).. but the value is not being recognised by the chart and the chart is displayed as a column chart regardless.&lt;BR /&gt;
Sorry for so many questions and thank you so much for all your help.&lt;/P&gt;

&lt;P&gt;Alastair&lt;/P&gt;</description>
    <pubDate>Fri, 28 Mar 2014 07:48:34 GMT</pubDate>
    <dc:creator>ahogbin</dc:creator>
    <dc:date>2014-03-28T07:48:34Z</dc:date>
    <item>
      <title>Module Switcher not working as expected</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199751#M20885</link>
      <description>&lt;P&gt;Help..&lt;/P&gt;

&lt;P&gt;I am in the process of building a dashboard that allows a user to select components and the type of report that they wish to view. Depending the the input either a chart or timechart report is displayed.&lt;BR /&gt;
I have used the sideview util 'Switcher' and the dashboard is working in part. When I load the dashboard and select report 2 for either the home or motor component then the relevant report is shown.. however if I select report 1 then for some reason both reports (1 &amp;amp; 2) are shown together.&lt;/P&gt;

&lt;P&gt;I have included the xml below and I am sure that it has something to do with the position of the clsing  statement but despite a bit or trial and error I am unable to get it so that both reports options behave the same.&lt;/P&gt;

&lt;P&gt;Any guidance greatly appreciated&lt;/P&gt;

&lt;P&gt;XML&lt;BR /&gt;
&lt;VIEW autocancelinterval="90" isvisible="true" objectmode="SimpleForm" onunloadcanceljobs="true" template="dashboard.html" autorun="False"&gt;&lt;BR /&gt;
  &lt;LABEL&gt;Safire External Avg Page Response Times for Home &amp;amp; Motor&lt;/LABEL&gt;&lt;BR /&gt;
  &lt;MODULE name="AccountBar" layoutpanel="appHeader"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
  &lt;MODULE name="AppBar" layoutpanel="navigationHeader"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
  &lt;MODULE name="Message" layoutpanel="messaging"&gt;&lt;BR /&gt;
    &lt;OBJECT&gt;&lt;PARAM name="maxSize" /&gt;1&lt;BR /&gt;
    &lt;PARAM name="clearOnJobDispatch" /&gt;True&lt;BR /&gt;
    &lt;PARAM name="filter" /&gt;*&lt;BR /&gt;
  &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;BR /&gt;
  &lt;MODULE name="Message" layoutpanel="messaging"&gt;&lt;BR /&gt;
    &lt;OBJECT&gt;&lt;PARAM name="maxSize" /&gt;1&lt;BR /&gt;
    &lt;PARAM name="clearOnJobDispatch" /&gt;True&lt;BR /&gt;
    &lt;PARAM name="filter" /&gt;splunk.search.job&lt;BR /&gt;
  &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;BR /&gt;
  &lt;MODULE name="DashboardTitleBar" layoutpanel="viewHeader"&gt;&lt;/MODULE&gt;&lt;BR /&gt;&lt;BR /&gt;
  &lt;MODULE name="SideviewUtils" layoutpanel="appHeader"&gt;&lt;/MODULE&gt;&lt;/VIEW&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="HTML" layoutpanel="viewHeader"&gt;&lt;BR /&gt;
          &lt;OBJECT&gt;&lt;PARAM name="html" /&gt;&amp;lt;![CDATA[&lt;BR /&gt;
            &lt;B&gt;Instructions:&lt;/B&gt; Please select the relevant Home or Motor component from the below list.&lt;BR /&gt;&lt;BR /&gt;
            Once done select the time periods you wish to compare and click on 'Search'.&lt;BR /&gt;
          ]]&amp;gt;&lt;BR /&gt;
        &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;!--Start user selection--&gt;

&lt;P&gt;&amp;lt;!--Options and date selection start--&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
  &lt;MODULE name="Pulldown" layoutpanel="viewHeader"&gt;&lt;BR /&gt;&lt;BR /&gt;
  &lt;OBJECT&gt;&lt;PARAM name="name" /&gt;action&lt;BR /&gt;
  &lt;PARAM name="staticOptions" /&gt;&lt;BR /&gt;
      &lt;LIST&gt;&lt;BR /&gt;
        &lt;PARAM name="value" /&gt;home&lt;BR /&gt;
        &lt;PARAM name="label" /&gt;Home&lt;BR /&gt;
      &lt;/LIST&gt;&lt;BR /&gt;
      &lt;LIST&gt;&lt;BR /&gt;
        &lt;PARAM name="value" /&gt;motor&lt;BR /&gt;
        &lt;PARAM name="label" /&gt;Motor&lt;BR /&gt;
      &lt;/LIST&gt;&lt;BR /&gt;
    &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="Pulldown" layoutPanel="viewHeader"&amp;gt;   
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;OBJECT&gt;&lt;PARAM name="name" /&gt;report&lt;BR /&gt;
  &lt;PARAM name="staticOptions" /&gt;&lt;BR /&gt;
      &lt;LIST&gt;&lt;BR /&gt;
        &lt;PARAM name="value" /&gt;report1&lt;BR /&gt;
        &lt;PARAM name="label" /&gt;Report 1&lt;BR /&gt;
      &lt;/LIST&gt;&lt;BR /&gt;
      &lt;LIST&gt;&lt;BR /&gt;
        &lt;PARAM name="value" /&gt;report2&lt;BR /&gt;
        &lt;PARAM name="label" /&gt;Report 2&lt;BR /&gt;
      &lt;/LIST&gt;&lt;BR /&gt;
    &lt;/OBJECT&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;!--Select time range--&amp;gt;
  &amp;lt;module name="TimeRangePicker" layoutPanel="viewHeader"&amp;gt;
&amp;lt;param name="searchWhenChanged"&amp;gt;False&amp;lt;/param&amp;gt;
&amp;lt;module name="SubmitButton" layoutPanel="viewHeader"&amp;gt;
  &amp;lt;param name="label"&amp;gt;Click to Search&amp;lt;/param&amp;gt;
  &amp;lt;param name="allowSoftSubmit"&amp;gt;False&amp;lt;/param&amp;gt;
  &amp;lt;param name="visible"&amp;gt;True&amp;lt;/param&amp;gt;
  &amp;lt;param name="updatePermalink"&amp;gt;True&amp;lt;/param&amp;gt;
&amp;lt;!--End user selection--&amp;gt;

   &amp;lt;module name="Switcher" group=" "&amp;gt;
    &amp;lt;param name="selectedGroup"&amp;gt;$report$,&amp;lt;/param&amp;gt;

   &amp;lt;!--Results for report 1--&amp;gt;
  &amp;lt;module name="Search" layoutPanel="panel_row1_col1" group="report1"&amp;gt;
    &amp;lt;param name="search"&amp;gt;index=summary search_name="Safire_Production_(SI)" $action$-internet*.xhtml | lookup safire_operations_lookup BUS_GRP OUTPUT COMMON_TASK PAGE | chart avg(duration) by PAGE COMMON_TASK&amp;lt;/param&amp;gt;
    &amp;lt;param name="groupLabel"&amp;gt;Results&amp;lt;/param&amp;gt;

    &amp;lt;module name="HTML"&amp;gt;
      &amp;lt;param name="html"&amp;gt;&amp;lt;![CDATA[
        Displaying results for &amp;lt;b&amp;gt;$action.label$&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;$report.label$&amp;lt;/b&amp;gt; for the selected time period
      ]]&amp;gt;&amp;lt;/param&amp;gt;
    &amp;lt;/module&amp;gt;

    &amp;lt;module name="ViewstateAdapter"&amp;gt;
      &amp;lt;param name="suppressionList"&amp;gt;
        &amp;lt;item&amp;gt;charting.chart.nullValueMode&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.axisTitleY.visibility&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.chart.sliceCollapsingThreshold&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.legend.placement&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.chart.stackMode&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.axisY.scale&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.axisX.scale&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.chart&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.legend.labelStyle.overflowMode&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.drilldown&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.layout.splitSeries&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.axisTitleX.visibility&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.chart.style&amp;lt;/item&amp;gt;
      &amp;lt;/param&amp;gt;
      &amp;lt;module name="HiddenFieldPicker"&amp;gt;
        &amp;lt;param name="strictMode"&amp;gt;True&amp;lt;/param&amp;gt;
        &amp;lt;module name="JobProgressIndicator"&amp;gt;
          &amp;lt;module name="EnablePreview"&amp;gt;
            &amp;lt;param name="display"&amp;gt;False&amp;lt;/param&amp;gt;
            &amp;lt;param name="enable"&amp;gt;True&amp;lt;/param&amp;gt;
            &amp;lt;module name="HiddenChartFormatter"&amp;gt;
              &amp;lt;param name="charting.chart.nullValueMode"&amp;gt;zero&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.axisTitleY.visibility"&amp;gt;visible&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.legend.placement"&amp;gt;right&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.chart.stackMode"&amp;gt;stacked&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.axisX.scale"&amp;gt;linear&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.chart"&amp;gt;bar&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.axisY.scale"&amp;gt;linear&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.drilldown"&amp;gt;all&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.axisTitleX.visibility"&amp;gt;visible&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.chart.style"&amp;gt;shiny&amp;lt;/param&amp;gt;
              &amp;lt;module name="JSChart"&amp;gt;
                &amp;lt;param name="width"&amp;gt;100%&amp;lt;/param&amp;gt;
                &amp;lt;module name="Gimp"/&amp;gt;
                &amp;lt;module name="ConvertToDrilldownSearch"&amp;gt;
                  &amp;lt;module name="ViewRedirector"&amp;gt;
                    &amp;lt;param name="viewTarget"&amp;gt;flashtimeline&amp;lt;/param&amp;gt;
                  &amp;lt;/module&amp;gt;
                &amp;lt;/module&amp;gt;
              &amp;lt;/module&amp;gt;
            &amp;lt;/module&amp;gt;
          &amp;lt;/module&amp;gt;
        &amp;lt;/module&amp;gt;
      &amp;lt;/module&amp;gt;
    &amp;lt;/module&amp;gt;
  &amp;lt;/module&amp;gt;
    &amp;lt;/module&amp;gt;

  &amp;lt;module name="Search" layoutPanel="panel_row1_col1" group="report2"&amp;gt;
    &amp;lt;param name="search"&amp;gt;index=summary search_name="Safire_Production_(SI)" $action$-internet*.xhtml | lookup safire_operations_lookup BUS_GRP OUTPUT COMMON_TASK PAGE | timechart avg(duration) by PAGE&amp;lt;/param&amp;gt;
    &amp;lt;param name="groupLabel"&amp;gt;Results&amp;lt;/param&amp;gt;

    &amp;lt;module name="HTML"&amp;gt;
      &amp;lt;param name="html"&amp;gt;&amp;lt;![CDATA[
        Displaying results for &amp;lt;b&amp;gt;$action.label$&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;$report.label$&amp;lt;/b&amp;gt; for the selected time period
      ]]&amp;gt;&amp;lt;/param&amp;gt;
    &amp;lt;/module&amp;gt;

    &amp;lt;module name="ViewstateAdapter"&amp;gt;
      &amp;lt;param name="suppressionList"&amp;gt;
        &amp;lt;item&amp;gt;charting.chart.nullValueMode&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.axisTitleY.visibility&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.chart.sliceCollapsingThreshold&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.legend.placement&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.chart.stackMode&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.axisY.scale&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.axisX.scale&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.chart&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.legend.labelStyle.overflowMode&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.drilldown&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.layout.splitSeries&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.axisTitleX.visibility&amp;lt;/item&amp;gt;
        &amp;lt;item&amp;gt;charting.chart.style&amp;lt;/item&amp;gt;
      &amp;lt;/param&amp;gt;
      &amp;lt;module name="HiddenFieldPicker"&amp;gt;
        &amp;lt;param name="strictMode"&amp;gt;True&amp;lt;/param&amp;gt;
        &amp;lt;module name="JobProgressIndicator"&amp;gt;
          &amp;lt;module name="EnablePreview"&amp;gt;
            &amp;lt;param name="display"&amp;gt;False&amp;lt;/param&amp;gt;
            &amp;lt;param name="enable"&amp;gt;True&amp;lt;/param&amp;gt;
            &amp;lt;module name="HiddenChartFormatter"&amp;gt;
              &amp;lt;param name="charting.chart.nullValueMode"&amp;gt;zero&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.axisTitleY.visibility"&amp;gt;visible&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.legend.placement"&amp;gt;right&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.chart.stackMode"&amp;gt;stacked&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.axisX.scale"&amp;gt;linear&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.chart"&amp;gt;column&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.axisY.scale"&amp;gt;linear&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.drilldown"&amp;gt;all&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.axisTitleX.visibility"&amp;gt;visible&amp;lt;/param&amp;gt;
              &amp;lt;param name="charting.chart.style"&amp;gt;shiny&amp;lt;/param&amp;gt;
              &amp;lt;module name="JSChart"&amp;gt;
                &amp;lt;param name="width"&amp;gt;100%&amp;lt;/param&amp;gt;
                &amp;lt;module name="Gimp"/&amp;gt;
                &amp;lt;module name="ConvertToDrilldownSearch"&amp;gt;
                  &amp;lt;module name="ViewRedirector"&amp;gt;
                    &amp;lt;param name="viewTarget"&amp;gt;flashtimeline&amp;lt;/param&amp;gt;
                  &amp;lt;/module&amp;gt;
                &amp;lt;/module&amp;gt;
              &amp;lt;/module&amp;gt;
            &amp;lt;/module&amp;gt;
          &amp;lt;/module&amp;gt;
        &amp;lt;/module&amp;gt;
      &amp;lt;/module&amp;gt;
    &amp;lt;/module&amp;gt;
  &amp;lt;/module&amp;gt;
    &amp;lt;/module&amp;gt; 
  &amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
  &lt;BR /&gt;
&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 06:20:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199751#M20885</guid>
      <dc:creator>ahogbin</dc:creator>
      <dc:date>2014-03-27T06:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Module Switcher not working as expected</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199752#M20886</link>
      <description>&lt;P&gt;You're right.   The reason why the switcher is only showing and hiding the "report1" section is that the "report2" section is not a child of the switcher at all. &lt;/P&gt;

&lt;P&gt;Especially on a view this complicated (or half this complicated), you need to be very careful with your indentation so as to minimize your own confusion.  If the file was indented cleanly, it would have been easy for you to spot the misalignment - the fact that "report1" and "report2" were not siblings of eachother.&lt;/P&gt;

&lt;P&gt;There's basically an extra &lt;CODE&gt;&amp;lt;/module&amp;gt;&lt;/CODE&gt; tag before the "report2" section, that you'll have to move to the end of that same section. &lt;/P&gt;

&lt;P&gt;However... there's a lot else that is quite wrong with this approach and there's a lot of dead stuff in this view that can be removed.  I've taken the liberty of cleaning it all up and posting the result to pastebin.  The cleaned up version is half the size. &lt;A href="http://pastebin.com/xtZRVU8X"&gt;http://pastebin.com/xtZRVU8X&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;1) The only difference between the report1 section and the report2 section, is that the first does &lt;CODE&gt;chart avg(duration) by PAGE COMMON_TASK&lt;/CODE&gt; and the second does &lt;CODE&gt;| timechart avg(duration) by PAGE&lt;/CODE&gt;.   &lt;/P&gt;

&lt;P&gt;Just have those be the two values of your Pulldown, and dont use the Switcher module at all.   Switcher should be a last resort, for when you have some difference between sections where the module config per section has to be fundamentally different.  Here you can factor the difference into a single $foo$ token.   This will drastically simplify your view. &lt;/P&gt;

&lt;P&gt;2) You're setting searchWhenChanged to False on the TimeRangePicker even though you have allowSoftSubmit to False on the SubmitButton.   Change searchWhenChanged to True (you should quite honestly never use False ever. it is kind of evil and the UI can behave badly)&lt;/P&gt;

&lt;P&gt;3) lots of dead or vestigial module code.   &lt;BR /&gt;&lt;BR /&gt;
a) I strongly suspect that your &lt;CODE&gt;ViewstateAdapter&lt;/CODE&gt; module is actually serving no purpose and it has just been copied over from some original simpleXML conversion long ago.  Delete it entirely&lt;BR /&gt;&lt;BR /&gt;
b) &lt;CODE&gt;HiddenFieldPicker&lt;/CODE&gt; and &lt;CODE&gt;Gimp&lt;/CODE&gt; are &lt;EM&gt;definitely&lt;/EM&gt; doing nothing, and are vestigial carryovers from simpleXML conversion. Delete them. &lt;BR /&gt;&lt;BR /&gt;
c) JobProgressIndicator and EnablePreview should never contain downstream modules (it does no harm but it makes no sense).  This is a bug in the SimpleXML conversion code.  De-indent these child modules. Save your eyesight a little.&lt;/P&gt;

&lt;P&gt;4) weird things on the &lt;CODE&gt;&amp;lt;view&amp;gt;&lt;/CODE&gt; tag. Some of these are side effects of simplexml conversion, but you can delete &lt;CODE&gt;autoCancelInterval="90" isVisible="true" objectMode="SimpleForm"&lt;/CODE&gt; and also &lt;CODE&gt;autorun="False"&lt;/CODE&gt;.  Some of those are defaults and some are having no effect.&lt;BR /&gt;
5) updatePermalink on the SubmitButton module isn't going to be doing anything useful so you can remove it.  However... if you want a permalink to be constantly updated, even in an arbitrary form search view in advanced XML like this, you can use the Sideview URLLoader module with the &lt;CODE&gt;keepUrlUpdated&lt;/CODE&gt; param set to true, and it will actually update a working permalink as well as enable back button and forward button for all the pulldown changes.&lt;/P&gt;

&lt;P&gt;6) the groupLabel param is meaningless and it's just cruft accidentally inserted by the simpleXml conversion code.  You can delete all of these.&lt;/P&gt;

&lt;P&gt;7) lots of duplicated layoutPanel attributes.  If layoutPanel is specified for a given module, all its downstream modules will inherit that layoutPanel so there's no need to specify it again. &lt;/P&gt;

&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; I'm fairly certain that many of your charting keys were explicitly setting values that happen to be the default values for the given key in the charting framework, so I removed those. &lt;/P&gt;

&lt;P&gt;In the end your XML becomes a &lt;EM&gt;LOT&lt;/EM&gt; simpler with all these fixes and cleanups. &lt;/P&gt;

&lt;P&gt;For some reason the answers site is being a bit ornery with respect to posting large code samples, so I've put a cleaned up version over in pastebin for you. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://pastebin.com/xtZRVU8X"&gt;http://pastebin.com/xtZRVU8X&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;One more note - a useful and cheap trick to perfectly indent a crazily-indented view,  is to load that view in the Sideview Editor,  then pick something at random to edit.   Submit the form however with the exact values that it loaded with.  The Sideview Editor will write the XML back to disk, but it will do lots of little cleanup things to it and one of those is that the indentation will get fixed.  You might have to fish the file out of local and move ti over to default, but it can be useful. &lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 06:49:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199752#M20886</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2014-03-27T06:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Module Switcher not working as expected</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199753#M20887</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
Thank you very much. Your answer makes a lot of sense and the information you provide is of so much help in helping me to gain a better understanding of XML ad its intricacies.&lt;/P&gt;

&lt;P&gt;One other question if I may.. is it possible to display a different chart type (bar or column) from either a user input (ie they select Bar or Column from a list) or dependent on the report being run (Bar for Report 1 and Column for Report 2).&lt;/P&gt;

&lt;P&gt;Cheers and thank you again.&lt;/P&gt;

&lt;P&gt;Alastair&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 22:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199753#M20887</guid>
      <dc:creator>ahogbin</dc:creator>
      <dc:date>2014-03-27T22:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Module Switcher not working as expected</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199754#M20888</link>
      <description>&lt;P&gt;Yes.  For the first - making it depend directly on user input, either a) make the "name" param of the form element module be "charting.chart", in which case the charting stuff picks it up directly.   or b) use a ValueSetter module with &lt;EM&gt;its&lt;/EM&gt; name set to "charting.chart", and its value set to other token(s)&lt;/P&gt;

&lt;P&gt;For the second question, use either a) ValueSetter's conditional logic ( &lt;A href="http://answers.splunk.com/answers/108257/modify-the-clicked-field-value-if-clicked-field-x"&gt;http://answers.splunk.com/answers/108257/modify-the-clicked-field-value-if-clicked-field-x&lt;/A&gt; ) to set the chart type depending on some other key, or b) in the Pulldown docs there's a method to set more than one value.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 23:51:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199754#M20888</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2014-03-27T23:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Module Switcher not working as expected</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199755#M20889</link>
      <description>&lt;P&gt;Umm ... ok. I have created a radio button with options for either bar or column and passing the value to $graph$.&lt;BR /&gt;
When I then try to pass the selected value to charting.chart&amp;gt;$graph$ the result is not what I expect and the chart is displayed as a column regardless of chart type selected. &lt;BR /&gt;
My question is how do I pass the selected graph type to the chart?&lt;BR /&gt;
I can also (and preferred method) pass the graph type based on report run (ie value&amp;gt;report1,graph type. However I am still stuck on getting the 'graph type' value over to charting.chart&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;Alastair&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2014 01:11:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199755#M20889</guid>
      <dc:creator>ahogbin</dc:creator>
      <dc:date>2014-03-28T01:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Module Switcher not working as expected</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199756#M20890</link>
      <description>&lt;P&gt;I gave you too much info at once. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;  I gave you 4 ways to do it when you only need one.  Best one is to change the "name" param of your radio button from "graph" to "charting.chart" like so&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;param name="name"&amp;gt;charting.chart&amp;lt;/param&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and then your two Radio values are "bar" and "column".  That's it.  when you set charting.chart to "column" or "bar" with a HiddenChartFormatter module you're creating a $foo$ token.  Here we just create it directly with the pulldown.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2014 01:45:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199756#M20890</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2014-03-28T01:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Module Switcher not working as expected</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199757#M20891</link>
      <description>&lt;P&gt;Almost there.. I have added the graph type as a delimited option to the 'report' so I now have&lt;BR /&gt;
&lt;OBJECT&gt;&lt;PARAM name="value" /&gt;chart avg(duration) by PAGE COMMON_TASK,bar&lt;BR /&gt;
&lt;PARAM name="value" /&gt;timechart avg(duration) by PAGE,column&lt;/OBJECT&gt;&lt;/P&gt;

&lt;P&gt;I have then used the value setter&lt;BR /&gt;
&lt;MODULE name="ValueSetter"&gt;&lt;BR /&gt;
    &lt;OBJECT&gt;&lt;PARAM name="name" /&gt;reportSplit&lt;BR /&gt;
    &lt;PARAM name="delim" /&gt;,&lt;BR /&gt;
                   &lt;PARAM name="value" /&gt;$report$&lt;BR /&gt;
but I am unsure as to how to pass the graph component thru to the graph (the split works as it returns the correct search).&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2014 03:17:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199757#M20891</guid>
      <dc:creator>ahogbin</dc:creator>
      <dc:date>2014-03-28T03:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Module Switcher not working as expected</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199758#M20892</link>
      <description>&lt;P&gt;Below the valuesetter module I have added&lt;BR /&gt;
&lt;OBJECT&gt;&lt;PARAM name="name" /&gt;charting.chart&lt;BR /&gt;
&lt;PARAM name="value" /&gt;$reportSplit[1]$&lt;/OBJECT&gt;&lt;/P&gt;

&lt;P&gt;but to no avail.&lt;BR /&gt;
I know that the value is being picked up as it is possible to pipe the output to a text string (reportSplit[1] displays the correct value of either bar or column).. but the value is not being recognised by the chart and the chart is displayed as a column chart regardless.&lt;BR /&gt;
Sorry for so many questions and thank you so much for all your help.&lt;/P&gt;

&lt;P&gt;Alastair&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2014 07:48:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199758#M20892</guid>
      <dc:creator>ahogbin</dc:creator>
      <dc:date>2014-03-28T07:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Module Switcher not working as expected</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199759#M20893</link>
      <description>&lt;P&gt;HTML modules are excellent debugging tools.  Just above the FlashChart (as a sibling not a parent),  put an HTML module with $charting.chart$.   Is it possible there's simply a HiddenChartFormatter  between the ValueSetter and the JSChart that is also setting $charting.chart$ to column?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2014 16:51:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199759#M20893</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2014-03-28T16:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Module Switcher not working as expected</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199760#M20894</link>
      <description>&lt;P&gt;The penny finally dropped and all is now working as expected. After reading another post from someone trying to do a similar thing I saw your answer re using valuesetter and arg.whatever to set the required values&lt;BR /&gt;
I added &lt;BR /&gt;
&lt;MODULE name="ValueSetter"&gt;&lt;OBJECT&gt;&lt;PARAM name="arg.charting.chart" /&gt;$reportSplit[1]$&lt;BR /&gt;
In the place of the HiddenChartFormatter and hey presto it worked.&lt;BR /&gt;
Thank you again for all your help... it has been hugely appreciated.&lt;BR /&gt;
Cheers,&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;Alastair&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2014 04:59:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199760#M20894</guid>
      <dc:creator>ahogbin</dc:creator>
      <dc:date>2014-03-31T04:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Module Switcher not working as expected</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199761#M20895</link>
      <description>&lt;P&gt;Glad to hear. Well you're officially a dangerous user now, if you can master a view with this much going on in it. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; Cheers.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2014 05:30:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Module-Switcher-not-working-as-expected/m-p/199761#M20895</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2014-03-31T05:30:15Z</dc:date>
    </item>
  </channel>
</rss>

