<?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: dealing with space on a tokenized value in a form dashboard using dropdown in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/dealing-with-space-on-a-tokenized-value-in-a-form-dashboard/m-p/152077#M9271</link>
    <description>&lt;P&gt;So in my case I am using a simple XML form.  &lt;/P&gt;

&lt;P&gt;I'm taking something like &lt;/P&gt;

&lt;P&gt;&lt;INPUT type="dropdown" token="MyToken" /&gt;&lt;BR /&gt;
      &lt;LABEL&gt;Confidentiality Rating:&lt;/LABEL&gt;&lt;BR /&gt;
      &lt;SEED&gt;"&lt;EM&gt;"&lt;/EM&gt;&lt;/SEED&gt;&lt;BR /&gt;
      &lt;SUFFIX&gt;&lt;/SUFFIX&gt;&lt;BR /&gt;
      &lt;POPULATINGSEARCH fieldforvalue="MyTokenField" fieldforlabel="MyTokenField" earliest="-1m"&gt;| inputlookup inventory.csv | fields MyTokenField&lt;/POPULATINGSEARCH&gt;&lt;BR /&gt;
      &lt;DEFAULT&gt;"*"&lt;/DEFAULT&gt;&lt;BR /&gt;
    &lt;/P&gt;

&lt;P&gt;Then feeding that into a table with a token from above.  Where does mvc.tokenSafe fit and does that make it advanced XML?&lt;/P&gt;</description>
    <pubDate>Mon, 03 Mar 2014 18:00:02 GMT</pubDate>
    <dc:creator>mjones414</dc:creator>
    <dc:date>2014-03-03T18:00:02Z</dc:date>
    <item>
      <title>dealing with space on a tokenized value in a form dashboard using dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dealing-with-space-on-a-tokenized-value-in-a-form-dashboard/m-p/152075#M9269</link>
      <description>&lt;P&gt;I've a form thats tokenizing about 13 different fields, and the values are a mixmatch of single and multiple word entries.  In text, I can simply add a suffix of * and the person can type some of the value and find what they want, but in a dropdown (desired), this will only work if the value contains no spaces at all.  I've tried seeding with "*" as typed, but that didn't seem to make a difference.  How can I successfully pass a multi-word value into a token from a dropdown and have it filter a table in a form bases dashboard&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2014 08:39:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dealing-with-space-on-a-tokenized-value-in-a-form-dashboard/m-p/152075#M9269</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2014-02-15T08:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: dealing with space on a tokenized value in a form dashboard using dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dealing-with-space-on-a-tokenized-value-in-a-form-dashboard/m-p/152076#M9270</link>
      <description>&lt;P&gt;When passing the value from the dropdown to the search, use the "s" filter to escape the dropdown value for search. This will allow you to search for phrases containing multiple words.&lt;/P&gt;

&lt;P&gt;So if DropdownView.value is mvc.tokenSafe("$words$"), set SearchManager.search to something like mvc.tokenSafe("search $words|s$").&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2014 19:17:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dealing-with-space-on-a-tokenized-value-in-a-form-dashboard/m-p/152076#M9270</guid>
      <dc:creator>dfoster_splunk</dc:creator>
      <dc:date>2014-02-18T19:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: dealing with space on a tokenized value in a form dashboard using dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dealing-with-space-on-a-tokenized-value-in-a-form-dashboard/m-p/152077#M9271</link>
      <description>&lt;P&gt;So in my case I am using a simple XML form.  &lt;/P&gt;

&lt;P&gt;I'm taking something like &lt;/P&gt;

&lt;P&gt;&lt;INPUT type="dropdown" token="MyToken" /&gt;&lt;BR /&gt;
      &lt;LABEL&gt;Confidentiality Rating:&lt;/LABEL&gt;&lt;BR /&gt;
      &lt;SEED&gt;"&lt;EM&gt;"&lt;/EM&gt;&lt;/SEED&gt;&lt;BR /&gt;
      &lt;SUFFIX&gt;&lt;/SUFFIX&gt;&lt;BR /&gt;
      &lt;POPULATINGSEARCH fieldforvalue="MyTokenField" fieldforlabel="MyTokenField" earliest="-1m"&gt;| inputlookup inventory.csv | fields MyTokenField&lt;/POPULATINGSEARCH&gt;&lt;BR /&gt;
      &lt;DEFAULT&gt;"*"&lt;/DEFAULT&gt;&lt;BR /&gt;
    &lt;/P&gt;

&lt;P&gt;Then feeding that into a table with a token from above.  Where does mvc.tokenSafe fit and does that make it advanced XML?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2014 18:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dealing-with-space-on-a-tokenized-value-in-a-form-dashboard/m-p/152077#M9271</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2014-03-03T18:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: dealing with space on a tokenized value in a form dashboard using dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dealing-with-space-on-a-tokenized-value-in-a-form-dashboard/m-p/152078#M9272</link>
      <description>&lt;P&gt;mvc.tokenSafe() is applied automatically to most settings in Simple XML. For example &lt;INPUT type="dropdown" token="MyToken" /&gt; binds the created DropdownView.value to mvc.tokenSafe("$MyToken$").&lt;/P&gt;

&lt;P&gt;And the contents of &lt;POPULATINGSEARCH ...=""&gt; are also wrapped with mvc.tokenSafe().&lt;/POPULATINGSEARCH&gt;&lt;/P&gt;

&lt;P&gt;None of this is Advanced XML. The explicit use of mvc.tokenSafe() comes into play when using either HTML dashboards or custom JS code.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2014 18:14:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dealing-with-space-on-a-tokenized-value-in-a-form-dashboard/m-p/152078#M9272</guid>
      <dc:creator>dfoster_splunk</dc:creator>
      <dc:date>2014-03-03T18:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: dealing with space on a tokenized value in a form dashboard using dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dealing-with-space-on-a-tokenized-value-in-a-form-dashboard/m-p/152079#M9273</link>
      <description>&lt;P&gt;So would the right approach then to be to put token="MyToken|s" in the input type to keep everything in simple xml, or don't define token= and explicitly define mvc.tokenSafe("MyToken|s")&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2014 19:16:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dealing-with-space-on-a-tokenized-value-in-a-form-dashboard/m-p/152079#M9273</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2014-03-03T19:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: dealing with space on a tokenized value in a form dashboard using dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dealing-with-space-on-a-tokenized-value-in-a-form-dashboard/m-p/152080#M9274</link>
      <description>&lt;P&gt;Not quite. The |s suffix is a filter that is applied to the output. So if the token was being used in a search string (like &lt;POPULATINGSEARCH ...=""&gt;) then you'd have $MyToken|s$. But the input that generates the token in the first place would still be token="MyToken".&lt;/POPULATINGSEARCH&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2014 22:00:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dealing-with-space-on-a-tokenized-value-in-a-form-dashboard/m-p/152080#M9274</guid>
      <dc:creator>dfoster_splunk</dc:creator>
      <dc:date>2014-03-03T22:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: dealing with space on a tokenized value in a form dashboard using dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dealing-with-space-on-a-tokenized-value-in-a-form-dashboard/m-p/152081#M9275</link>
      <description>&lt;P&gt;It worked for me. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2015 17:35:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dealing-with-space-on-a-tokenized-value-in-a-form-dashboard/m-p/152081#M9275</guid>
      <dc:creator>srtarak09</dc:creator>
      <dc:date>2015-06-11T17:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: dealing with space on a tokenized value in a form dashboard using dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dealing-with-space-on-a-tokenized-value-in-a-form-dashboard/m-p/531760#M36149</link>
      <description>&lt;P&gt;this worked for me! Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 20:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dealing-with-space-on-a-tokenized-value-in-a-form-dashboard/m-p/531760#M36149</guid>
      <dc:creator>sg_content</dc:creator>
      <dc:date>2020-12-02T20:02:12Z</dc:date>
    </item>
  </channel>
</rss>

