<?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: form : view results in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/form-view-results/m-p/82448#M4450</link>
    <description>&lt;P&gt;Thx very much for your answer. I create a view following yours links. I have a problem when I go on the link. The error is:Splunk cannot find the "dashboard" view.This page was linked to from &lt;A href="http://odpc:8000/en-US/app/ACS/ACS_alertes" target="_blank"&gt;http://odpc:8000/en-US/app/ACS/ACS_alertes&lt;/A&gt;.&lt;BR /&gt;
This is my xml file :&lt;BR /&gt;
&lt;VIEW autocancelinterval="90" isvisible="true" objectmode="SimpleDashboard" onunloadcanceljobs="true" refresh="-1" template="dashboard.html"&gt;&lt;BR /&gt;
&lt;MODULE name="SingleValue"&gt;&lt;BR /&gt;
&lt;OBJECT&gt;&lt;PARAM name="linkFields" /&gt;result&lt;BR /&gt;
&lt;PARAM name="linkSearch" /&gt;source=tcp:5555 PCH_D=06-14 PCH_DT=19|stats count&lt;BR /&gt;
&lt;PARAM name="classField" /&gt;range&lt;BR /&gt;
&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/VIEW&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 11:58:54 GMT</pubDate>
    <dc:creator>LauraBre</dc:creator>
    <dc:date>2020-09-28T11:58:54Z</dc:date>
    <item>
      <title>form : view results</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/form-view-results/m-p/82444#M4446</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I create a form with "single" but we can't see the results of the search button. How can do it to have a link "view result".&lt;/P&gt;

&lt;P&gt;Thanks by advance for your answer.&lt;/P&gt;

&lt;P&gt;This is a part of my xml file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...&lt;BR /&gt;
    &lt;SINGLE&gt;&lt;/SINGLE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;searchString&amp;gt;source=tcp:5555 PURCH_DAY=06-14 PURCH_DATE=19 PA_HOST="|tpwacs01v.priv.atos.fr" SD_STAT_PA="YES" | stats count | rangemap field=count severe=0-0 elevated=1-40 default=low&amp;lt;/searchString&amp;gt;

      &amp;lt;title&amp;gt;Host: tpwacs01v.priv.atos.fr&amp;lt;/title&amp;gt;

      &amp;lt;earliestTime&amp;gt;-7d&amp;lt;/earliestTime&amp;gt;

      &amp;lt;option name="beforeLabel"&amp;gt;PA YES : &amp;lt;/option&amp;gt;

      &amp;lt;option name="classField"&amp;gt;range&amp;lt;/option&amp;gt;

      &amp;lt;option name="field"&amp;gt;count&amp;lt;/option&amp;gt;

    &amp;lt;/single&amp;gt;

  &amp;lt;/row&amp;gt;

...
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 24 Jun 2012 11:21:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/form-view-results/m-p/82444#M4446</guid>
      <dc:creator>LauraBre</dc:creator>
      <dc:date>2012-06-24T11:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: form : view results</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/form-view-results/m-p/82445#M4447</link>
      <description>&lt;P&gt;Right, so I know how to do this via advanced XML so that is what my answer will be in, its quite easy once you get into it and generally most users end up having to jump into it sooner or later &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
As per;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/AdvancedDev/ModuleReference"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/AdvancedDev/ModuleReference&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You want;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;linkFields
Specify whether to just link the result, or include labels. To link the result and both labels, specify "result,beforeLabel,afterLabel"
defaults to: result

linkSearch
Specify a valid complete search query to turn the result into a clickable link
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To convert your existing dashboard to advanced XML just append &lt;CODE&gt;?showsource=1&lt;/CODE&gt; to the end of the URL. As an example I have created a singleValue for you below in advanced XML;&lt;/P&gt;

&lt;P&gt;Or at least I would if Splunkbase would let me paste it properly! I've put it here; &lt;A href="http://pastebin.com/Q3GFK60z"&gt;http://pastebin.com/Q3GFK60z&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The way you mention in your question, with a click to view results, can cause formatting issues with singleValues but if you really want you can do it with a ViewRedirectorLink module as per the module reference above, just reply if you're after that. &lt;/P&gt;</description>
      <pubDate>Sun, 24 Jun 2012 11:34:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/form-view-results/m-p/82445#M4447</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-06-24T11:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: form : view results</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/form-view-results/m-p/82446#M4448</link>
      <description>&lt;P&gt;Thx for your answer. I don't understand very well how have I to do to convert my dashboard because I don't have url in my xml file.&lt;/P&gt;

&lt;P&gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&lt;BR /&gt;
&lt;DASHBOARD&gt;&lt;BR /&gt;
   &lt;ROW&gt;&lt;BR /&gt;
    &lt;BR /&gt;
        &lt;FONT&gt;UVB : Error Codes&lt;/FONT&gt;&lt;BR /&gt;
    &lt;BR /&gt;
  &lt;/ROW&gt;&lt;BR /&gt;
  &lt;ROW&gt;&lt;BR /&gt;
...&lt;BR /&gt;
    &lt;SINGLE&gt;&lt;BR /&gt;
      &lt;SEARCHSTRING&gt;my search&lt;/SEARCHSTRING&gt;&lt;BR /&gt;
      &lt;TITLE&gt;Host: tpw.fr&lt;/TITLE&gt;&lt;BR /&gt;
      &lt;EARLIESTTIME&gt;-7d&lt;/EARLIESTTIME&gt;&lt;BR /&gt;
      VE YES: &lt;BR /&gt;
      range&lt;BR /&gt;
      count&lt;BR /&gt;
    &lt;/SINGLE&gt;&lt;BR /&gt;
  &lt;/ROW&gt;&lt;BR /&gt;
&lt;/DASHBOARD&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jun 2012 21:15:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/form-view-results/m-p/82446#M4448</guid>
      <dc:creator>LauraBre</dc:creator>
      <dc:date>2012-06-24T21:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: form : view results</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/form-view-results/m-p/82447#M4449</link>
      <description>&lt;P&gt;so lets say that your dashboard is called bobsthings. You would go to the URL &lt;A href="http://SPLUNKSERVER:8000/en-GB/app/search/bobsthings?showsource=1"&gt;http://SPLUNKSERVER:8000/en-GB/app/search/bobsthings?showsource=1&lt;/A&gt; assuming you are using port 8000, not SSL and en-GB &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; (although that will work anyway, regardless)&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jun 2012 21:31:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/form-view-results/m-p/82447#M4449</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-06-24T21:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: form : view results</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/form-view-results/m-p/82448#M4450</link>
      <description>&lt;P&gt;Thx very much for your answer. I create a view following yours links. I have a problem when I go on the link. The error is:Splunk cannot find the "dashboard" view.This page was linked to from &lt;A href="http://odpc:8000/en-US/app/ACS/ACS_alertes" target="_blank"&gt;http://odpc:8000/en-US/app/ACS/ACS_alertes&lt;/A&gt;.&lt;BR /&gt;
This is my xml file :&lt;BR /&gt;
&lt;VIEW autocancelinterval="90" isvisible="true" objectmode="SimpleDashboard" onunloadcanceljobs="true" refresh="-1" template="dashboard.html"&gt;&lt;BR /&gt;
&lt;MODULE name="SingleValue"&gt;&lt;BR /&gt;
&lt;OBJECT&gt;&lt;PARAM name="linkFields" /&gt;result&lt;BR /&gt;
&lt;PARAM name="linkSearch" /&gt;source=tcp:5555 PCH_D=06-14 PCH_DT=19|stats count&lt;BR /&gt;
&lt;PARAM name="classField" /&gt;range&lt;BR /&gt;
&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/VIEW&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:58:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/form-view-results/m-p/82448#M4450</guid>
      <dc:creator>LauraBre</dc:creator>
      <dc:date>2020-09-28T11:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: form : view results</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/form-view-results/m-p/82449#M4451</link>
      <description>&lt;P&gt;How can we add a dropdown box variable to this link search?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2012 04:41:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/form-view-results/m-p/82449#M4451</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2012-12-05T04:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: form : view results</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/form-view-results/m-p/82450#M4452</link>
      <description>&lt;P&gt;is it possible to pass the same through linkview? like along with the viewname foreg flashtimeline?source=$form.sources$&lt;BR /&gt;
something like that&lt;BR /&gt;
please help&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2012 09:05:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/form-view-results/m-p/82450#M4452</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2012-12-05T09:05:25Z</dc:date>
    </item>
  </channel>
</rss>

