<?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: Is there any way to pass JavaScript variable to search module in view XML? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-any-way-to-pass-JavaScript-variable-to-search-module-in/m-p/128752#M34962</link>
    <description>&lt;P&gt;You can use the &lt;CODE&gt;CustomBehavior&lt;/CODE&gt; module available in SideviewUtils. For an example of setting a value that can be used as &lt;CODE&gt;$value$&lt;/CODE&gt; in downstream modules you can take a look at the &lt;CODE&gt;search_exploder&lt;/CODE&gt; view along with its &lt;CODE&gt;search_exploder.js&lt;/CODE&gt; JavaScript file.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Apr 2014 12:44:22 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-04-11T12:44:22Z</dc:date>
    <item>
      <title>Is there any way to pass JavaScript variable to search module in view XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-any-way-to-pass-JavaScript-variable-to-search-module-in/m-p/128751#M34961</link>
      <description>&lt;P&gt;Is there any way to pass JavaScript variable to search module in view XML?&lt;/P&gt;

&lt;P&gt;My JavaScript code (application.js) generates field list to filter out the search results in my view XML. Is there any way to pass data from JS to view XML?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;JavaScript code:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`function myCustomFunc(){
var fieldList
....
....
....
return fieldList;
}`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;View XML:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`&amp;lt;module name="Search" layoutPanel="appHeader"&amp;gt;
&amp;lt;param name="search"&amp;gt;
...|...|...| table fieldList
&amp;lt;/param&amp;gt;
&amp;lt;/module&amp;gt;`
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Apr 2014 12:10:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-any-way-to-pass-JavaScript-variable-to-search-module-in/m-p/128751#M34961</guid>
      <dc:creator>kasu_praveen</dc:creator>
      <dc:date>2014-04-11T12:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to pass JavaScript variable to search module in view XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-any-way-to-pass-JavaScript-variable-to-search-module-in/m-p/128752#M34962</link>
      <description>&lt;P&gt;You can use the &lt;CODE&gt;CustomBehavior&lt;/CODE&gt; module available in SideviewUtils. For an example of setting a value that can be used as &lt;CODE&gt;$value$&lt;/CODE&gt; in downstream modules you can take a look at the &lt;CODE&gt;search_exploder&lt;/CODE&gt; view along with its &lt;CODE&gt;search_exploder.js&lt;/CODE&gt; JavaScript file.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2014 12:44:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-any-way-to-pass-JavaScript-variable-to-search-module-in/m-p/128752#M34962</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-04-11T12:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to pass JavaScript variable to search module in view XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-any-way-to-pass-JavaScript-variable-to-search-module-in/m-p/128753#M34963</link>
      <description>&lt;P&gt;A follow on from this:&lt;BR /&gt;
My understanding is that this requires editing a js file. And it seems like I might have to have the same validation for all input boxes?&lt;BR /&gt;
Is there a way to specify this from within the advanced XML dashboard?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2014 14:44:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-any-way-to-pass-JavaScript-variable-to-search-module-in/m-p/128753#M34963</guid>
      <dc:creator>helenashton</dc:creator>
      <dc:date>2014-04-11T14:44:05Z</dc:date>
    </item>
  </channel>
</rss>

