<?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: Splunk 6 Web Framework drilldown properties in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Web-Framework-drilldown-properties/m-p/119347#M6936</link>
    <description>&lt;P&gt;Hi @apruneda_splunk, I have viewed the docs and yes I have forgot that the drilldown properties for Table views. Thanks for your reply&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2013 02:05:20 GMT</pubDate>
    <dc:creator>crt89</dc:creator>
    <dc:date>2013-10-30T02:05:20Z</dc:date>
    <item>
      <title>Splunk 6 Web Framework drilldown properties</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Web-Framework-drilldown-properties/m-p/119342#M6931</link>
      <description>&lt;P&gt;Good day, I am currently using Splunk 6 Web Framework for my app development and I noticed something with the drilldown properties if set to false it doesn't work, it will still drilldown when the user initiates to click. This was tested with maps and tables since these are my two dashboard panels.&lt;/P&gt;

&lt;P&gt;Based on the documentation. &lt;/P&gt;

&lt;P&gt;Properties&lt;/P&gt;

&lt;P&gt;drilldown &lt;BR /&gt;&lt;BR /&gt;
| true &lt;BR /&gt;&lt;BR /&gt;
| Indicates whether to enable a drilldown action when this view is clicked. &lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
drilldownRedirect &lt;BR /&gt;&lt;BR /&gt;
| true &lt;BR /&gt;&lt;BR /&gt;
| Indicates whether to redirect to a search page when clicked. When true, a refined search corresponding to the point that was clicked is displayed in the search app. When false, you must create a click event handler to define a drilldown action. You can also use the preventDefault method in the click event handler to bypass the default redirect to search.&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;I tried both and set the properties to false but still my view continue to drilldown. I dont know how to use the preventDefault, I tried adding preventDefault=true but still proceed to drilldowns. I'm using the Django bindings btw.&lt;/P&gt;

&lt;P&gt;Hope to here from you guys.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2013 07:19:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Web-Framework-drilldown-properties/m-p/119342#M6931</guid>
      <dc:creator>crt89</dc:creator>
      <dc:date>2013-10-29T07:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6 Web Framework drilldown properties</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Web-Framework-drilldown-properties/m-p/119343#M6932</link>
      <description>&lt;P&gt;Panel Type: Map -  false to disable drilldown&lt;BR /&gt;
Panel Type: Table - none to disable drilldown&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2013 16:37:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Web-Framework-drilldown-properties/m-p/119343#M6932</guid>
      <dc:creator>afishkin_splunk</dc:creator>
      <dc:date>2013-10-29T16:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6 Web Framework drilldown properties</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Web-Framework-drilldown-properties/m-p/119344#M6933</link>
      <description>&lt;P&gt;It's a bit hard to answer without seeing what code you're trying, but here is a sample that shows the various ways to disable drilldown on a table:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;script&amp;gt;
    var deps = [
        "splunkjs/mvc",
        "splunkjs/mvc/tableview",
        "splunkjs/mvc/searchmanager"
    ];
    require(deps, function() {
        var TableView = require("splunkjs/mvc/tableview");
        var SearchManager = require("splunkjs/mvc/searchmanager");

        var table1 = new TableView({
            id: "table1",
            managerid: "search1",
            el: $("#table1")
        }).render();

        var table2 = new TableView({
            id: "table2",
            drilldownRedirect: false,
            managerid: "search1",
            el: $("#table2")
        }).render();
        table2.on('click', function(e) {
            alert('CLICKED!'); 
        });

        var table3 = new TableView({
            id: "table3",
            drilldown: "none",
            managerid: "search1",
            el: $("#table3")
        }).render();
        table3.on('click', function(e) {
            alert('NEVER HAPPENS!'); 
        });

        var table4 = new TableView({
            id: "table4",
            managerid: "search1",
            el: $("#table4")
        }).render();
        table4.on('click', function(e) {
            e.preventDefault();
            alert('DRILLDOWN DISABLED!'); 
        });

        new SearchManager({
            id: "search1",
            earliest_time: "-24h@h",
            latest_time: "now",
            search: "index=_internal | stats count by sourcetype" 
        });
    });
&amp;lt;/script&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The idea is that you can disable various things:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;drilldown&lt;/CODE&gt; controls whether click events are enabled at all.&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;drilldownRedirect&lt;/CODE&gt; allows you to disable the default redirect behavior but maintain the click events.&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;preventDefault()&lt;/CODE&gt; allows you to dynamically disable the default redirect behavior in the cases that you want.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Hopefully this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2013 18:24:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Web-Framework-drilldown-properties/m-p/119344#M6933</guid>
      <dc:creator>ineeman</dc:creator>
      <dc:date>2013-10-29T18:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6 Web Framework drilldown properties</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Web-Framework-drilldown-properties/m-p/119345#M6934</link>
      <description>&lt;P&gt;The drilldown property takes different values depending on which view you are working with. Here's the &lt;A href="http://docs.splunk.com/Documentation/WebFramework"&gt;reference&lt;/A&gt; for the table view--note that drilldown can be set to row|cell|none:  &lt;A href="http://docs.splunk.com/DocumentationStatic/WebFramework/1.0/compref_table.html"&gt;http://docs.splunk.com/DocumentationStatic/WebFramework/1.0/compref_table.html&lt;/A&gt;. &lt;/P&gt;

&lt;P&gt;Here's a topic that gives examples of how to set these properties for each type of view: &lt;BR /&gt;
&lt;A href="http://dev.splunk.com/view/SP-CAAAEME"&gt;http://dev.splunk.com/view/SP-CAAAEME&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2013 23:54:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Web-Framework-drilldown-properties/m-p/119345#M6934</guid>
      <dc:creator>apruneda_splunk</dc:creator>
      <dc:date>2013-10-29T23:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6 Web Framework drilldown properties</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Web-Framework-drilldown-properties/m-p/119346#M6935</link>
      <description>&lt;P&gt;Hi @ineeman I have managed to disable drilldowns on my map view. The thing is I need to visit another app view for my page to take effect of the drilldown. Instead of just refreshing my page. I see you use javascript on making your views, I'm not knowledgeable about it but I guess it will help others. Thanks again for your reply&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2013 02:03:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Web-Framework-drilldown-properties/m-p/119346#M6935</guid>
      <dc:creator>crt89</dc:creator>
      <dc:date>2013-10-30T02:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6 Web Framework drilldown properties</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Web-Framework-drilldown-properties/m-p/119347#M6936</link>
      <description>&lt;P&gt;Hi @apruneda_splunk, I have viewed the docs and yes I have forgot that the drilldown properties for Table views. Thanks for your reply&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2013 02:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Web-Framework-drilldown-properties/m-p/119347#M6936</guid>
      <dc:creator>crt89</dc:creator>
      <dc:date>2013-10-30T02:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6 Web Framework drilldown properties</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Web-Framework-drilldown-properties/m-p/119348#M6937</link>
      <description>&lt;P&gt;Yes, if you'd like to do some custom logic on drilldown, you need to register a JS custom event handler. Feel free to post another Answers question regarding this if you want some examples.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2013 16:47:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-Web-Framework-drilldown-properties/m-p/119348#M6937</guid>
      <dc:creator>ineeman</dc:creator>
      <dc:date>2013-10-30T16:47:48Z</dc:date>
    </item>
  </channel>
</rss>

