<?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: Function startSearch() is not a function. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Function-startSearch-is-not-a-function/m-p/307611#M165562</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;Just to inform that now it is working. &lt;/P&gt;

&lt;P&gt;Before i was just using the "DEFINE" in the start of Javascript file indicating the usage of SearchManager.js:&lt;/P&gt;

&lt;P&gt;define([&lt;BR /&gt;
    'underscore',&lt;BR /&gt;
    'backbone',&lt;BR /&gt;
    'jquery',&lt;BR /&gt;
    'splunkjs/mvc',&lt;BR /&gt;
    'splunkjs/mvc/searchmanager',&lt;BR /&gt;
    'splunkjs/mvc/simplexml/element/table'&lt;BR /&gt;
    ], function(_, Backbone, $, mvc,  SearchManager, TableElement) {&lt;/P&gt;

&lt;P&gt;I have included the below variable forcing to use the SearchManager lib:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        var SearchManager = require("splunkjs/mvc/searchmanager");
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After this inclusion, the function startSearch() began to work fine.&lt;/P&gt;

&lt;P&gt;Thanks all&lt;/P&gt;</description>
    <pubDate>Sun, 15 Oct 2017 14:07:27 GMT</pubDate>
    <dc:creator>danillopavan</dc:creator>
    <dc:date>2017-10-15T14:07:27Z</dc:date>
    <item>
      <title>Function startSearch() is not a function.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Function-startSearch-is-not-a-function/m-p/307609#M165560</link>
      <description>&lt;P&gt;Facing issues to run a search using SearchManager. The error says that function startSearch() is not a function. I am facing this issue in splunk version 6.6.2 Anyone know why this function is not more availabe on 6.6.2 version?&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2017 15:03:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Function-startSearch-is-not-a-function/m-p/307609#M165560</guid>
      <dc:creator>danillopavan</dc:creator>
      <dc:date>2017-10-14T15:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Function startSearch() is not a function.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Function-startSearch-is-not-a-function/m-p/307610#M165561</link>
      <description>&lt;P&gt;HI danillopavan,&lt;/P&gt;

&lt;P&gt;can you please show your sample code?&lt;/P&gt;</description>
      <pubDate>Sun, 15 Oct 2017 13:47:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Function-startSearch-is-not-a-function/m-p/307610#M165561</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-10-15T13:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Function startSearch() is not a function.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Function-startSearch-is-not-a-function/m-p/307611#M165562</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;Just to inform that now it is working. &lt;/P&gt;

&lt;P&gt;Before i was just using the "DEFINE" in the start of Javascript file indicating the usage of SearchManager.js:&lt;/P&gt;

&lt;P&gt;define([&lt;BR /&gt;
    'underscore',&lt;BR /&gt;
    'backbone',&lt;BR /&gt;
    'jquery',&lt;BR /&gt;
    'splunkjs/mvc',&lt;BR /&gt;
    'splunkjs/mvc/searchmanager',&lt;BR /&gt;
    'splunkjs/mvc/simplexml/element/table'&lt;BR /&gt;
    ], function(_, Backbone, $, mvc,  SearchManager, TableElement) {&lt;/P&gt;

&lt;P&gt;I have included the below variable forcing to use the SearchManager lib:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        var SearchManager = require("splunkjs/mvc/searchmanager");
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After this inclusion, the function startSearch() began to work fine.&lt;/P&gt;

&lt;P&gt;Thanks all&lt;/P&gt;</description>
      <pubDate>Sun, 15 Oct 2017 14:07:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Function-startSearch-is-not-a-function/m-p/307611#M165562</guid>
      <dc:creator>danillopavan</dc:creator>
      <dc:date>2017-10-15T14:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Function startSearch() is not a function.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Function-startSearch-is-not-a-function/m-p/307612#M165563</link>
      <description>&lt;P&gt;@danillopavan, please accept your own answer to mark this question as answered.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Oct 2017 15:34:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Function-startSearch-is-not-a-function/m-p/307612#M165563</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-15T15:34:51Z</dc:date>
    </item>
  </channel>
</rss>

