<?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  Panel as pop window for drilldown in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-as-pop-window-for-drilldown/m-p/567462#M46600</link>
    <description>&lt;P&gt;require([&lt;BR /&gt;'underscore',&lt;BR /&gt;'".Modal.js"',&lt;BR /&gt;'splunkjs/mvc',&lt;BR /&gt;'splunkjs/mvc/searchmanager',&lt;BR /&gt;'splunkjs/mvc/simplexml/ready!'&lt;BR /&gt;], function(_, ModalViewComponent, mvc, SearchManager) {&lt;BR /&gt;var tableElement = mvc.Components.getInstance("tbl_1");&lt;BR /&gt;tableElement.on("click", function(e) {&lt;BR /&gt;console.log(e.data);&lt;BR /&gt;console.log(e.data['row.sourcetype']);&lt;BR /&gt;var modal = new ModalViewComponent({&lt;BR /&gt;title: "Demo Table View",&lt;BR /&gt;id: "tb1_1",&lt;BR /&gt;search: new SearchManager({&lt;BR /&gt;earliest_time: "-15m",&lt;BR /&gt;latest_time: "now",&lt;BR /&gt;preview: false,&lt;BR /&gt;cache: false,p&lt;BR /&gt;search: 'index=_internal sourcetype="' + e.data['row.sourcetype'] + '" | stats count by source'&lt;BR /&gt;}, { tokens: true, tokenNamespace: "submitted" }),&lt;BR /&gt;display_component: {&lt;BR /&gt;viz_model: require('splunkjs/mvc/tableview'),&lt;BR /&gt;viz_options: {&lt;BR /&gt;pageSize: '10',&lt;BR /&gt;data: "events",&lt;BR /&gt;drilldown: "row",&lt;BR /&gt;},&lt;BR /&gt;drilldown: (e) =&amp;gt; {&lt;BR /&gt;console.log(e);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;modal.show();&lt;BR /&gt;});&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Sep 2021 16:38:59 GMT</pubDate>
    <dc:creator>Rukmani_Splunk</dc:creator>
    <dc:date>2021-09-17T16:38:59Z</dc:date>
    <item>
      <title>Splunk  Panel as pop window for drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-as-pop-window-for-drilldown/m-p/561634#M46176</link>
      <description>&lt;P&gt;I&amp;nbsp; need to&amp;nbsp; have display&amp;nbsp; splunk&amp;nbsp; dashboard&amp;nbsp; as pop&amp;nbsp; window when we click&amp;nbsp; as drilldown.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example&amp;nbsp;index=_internal |stats count by source, sourcetype&lt;/P&gt;&lt;P&gt;when click on the&amp;nbsp; table it&amp;nbsp; should pop&amp;nbsp; up&amp;nbsp; a panel containing&amp;nbsp; the below search&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index_internal |table sourcetype&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 02:19:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-as-pop-window-for-drilldown/m-p/561634#M46176</guid>
      <dc:creator>Rukmani_Splunk</dc:creator>
      <dc:date>2021-08-02T02:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk  Panel as pop window for drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-as-pop-window-for-drilldown/m-p/561645#M46177</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/207122"&gt;@Rukmani_Splunk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check the below links for example code for required Solution.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/KamleshVaghela/splunk_dashboard_model_view_examples/tree/main" target="_self"&gt;splunk_dashboard_model_view_examples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;XML&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/KamleshVaghela/splunk_dashboard_model_view_examples/blob/main/default/data/ui/views/example_1.xml" target="_self"&gt;example_1.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;JS&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/KamleshVaghela/splunk_dashboard_model_view_examples/blob/main/appserver/static/app.js#L243" target="_self"&gt;app.js&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Model View Component&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/KamleshVaghela/splunk_dashboard_model_view_examples/blob/main/appserver/static/components/ModalViewComponent.js" target="_self"&gt;ModalViewComponent.js&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know incase any help you required on this code.&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 05:11:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-as-pop-window-for-drilldown/m-p/561645#M46177</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-08-02T05:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk  Panel as pop window for drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-as-pop-window-for-drilldown/m-p/566712#M46558</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Thanks for your reply&amp;nbsp; , I&amp;nbsp; am very&amp;nbsp; new to&amp;nbsp; this&amp;nbsp; java script&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;and i&amp;nbsp; get&amp;nbsp; the belwo&amp;nbsp; error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ncaught Error: Script error for: ../app/splunk_dashboard_model_view_examples/components/ModalViewComponent&lt;BR /&gt;&lt;A href="http://requirejs.org/docs/errors.html#scripterror" target="_blank"&gt;http://requirejs.org/docs/errors.html#scripterror&lt;/A&gt;&lt;BR /&gt;at makeError (eval at module.exports (common.js:134), &amp;lt;anonymous&amp;gt;:166:17)&lt;BR /&gt;at HTMLScriptElement.onScriptError (eval at module.exports (common.js:134), &amp;lt;anonymous&amp;gt;:1689:36)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Sep 2021 11:47:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-as-pop-window-for-drilldown/m-p/566712#M46558</guid>
      <dc:creator>Rukmani_Splunk</dc:creator>
      <dc:date>2021-09-11T11:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk  Panel as pop window for drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-as-pop-window-for-drilldown/m-p/566772#M46561</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/207122"&gt;@Rukmani_Splunk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share your sample code?&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 04:57:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-as-pop-window-for-drilldown/m-p/566772#M46561</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-09-13T04:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk  Panel as pop window for drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-as-pop-window-for-drilldown/m-p/567462#M46600</link>
      <description>&lt;P&gt;require([&lt;BR /&gt;'underscore',&lt;BR /&gt;'".Modal.js"',&lt;BR /&gt;'splunkjs/mvc',&lt;BR /&gt;'splunkjs/mvc/searchmanager',&lt;BR /&gt;'splunkjs/mvc/simplexml/ready!'&lt;BR /&gt;], function(_, ModalViewComponent, mvc, SearchManager) {&lt;BR /&gt;var tableElement = mvc.Components.getInstance("tbl_1");&lt;BR /&gt;tableElement.on("click", function(e) {&lt;BR /&gt;console.log(e.data);&lt;BR /&gt;console.log(e.data['row.sourcetype']);&lt;BR /&gt;var modal = new ModalViewComponent({&lt;BR /&gt;title: "Demo Table View",&lt;BR /&gt;id: "tb1_1",&lt;BR /&gt;search: new SearchManager({&lt;BR /&gt;earliest_time: "-15m",&lt;BR /&gt;latest_time: "now",&lt;BR /&gt;preview: false,&lt;BR /&gt;cache: false,p&lt;BR /&gt;search: 'index=_internal sourcetype="' + e.data['row.sourcetype'] + '" | stats count by source'&lt;BR /&gt;}, { tokens: true, tokenNamespace: "submitted" }),&lt;BR /&gt;display_component: {&lt;BR /&gt;viz_model: require('splunkjs/mvc/tableview'),&lt;BR /&gt;viz_options: {&lt;BR /&gt;pageSize: '10',&lt;BR /&gt;data: "events",&lt;BR /&gt;drilldown: "row",&lt;BR /&gt;},&lt;BR /&gt;drilldown: (e) =&amp;gt; {&lt;BR /&gt;console.log(e);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;modal.show();&lt;BR /&gt;});&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 16:38:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-as-pop-window-for-drilldown/m-p/567462#M46600</guid>
      <dc:creator>Rukmani_Splunk</dc:creator>
      <dc:date>2021-09-17T16:38:59Z</dc:date>
    </item>
  </channel>
</rss>

