<?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: TypeError: mvc.Components.get(...) is undefined in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/TypeError-mvc-Components-get-is-undefined/m-p/178122#M11014</link>
    <description>&lt;P&gt;Is this not documented anywhere? the mvc.Components.get() method doesn't seem to even have a reference, only examples with names like "myview" which could mean anything - token, id, class, and so on.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2016 10:22:10 GMT</pubDate>
    <dc:creator>bhawkins1</dc:creator>
    <dc:date>2016-10-03T10:22:10Z</dc:date>
    <item>
      <title>TypeError: mvc.Components.get(...) is undefined</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TypeError-mvc-Components-get-is-undefined/m-p/178120#M11012</link>
      <description>&lt;P&gt;I try to follow the example 'Table Cell Highlighting' in the App: Splunk 6.x Dashboard Examples. After adding the script and css to /opt/splunk/etc/apps/search/appserver/static the browser console displays: &lt;/P&gt;

&lt;P&gt;TypeError: mvc.Components.get(...) is undefined&lt;BR /&gt;
mvc.Components.get('highlight').getVisualization(function(tableView) {&lt;/P&gt;

&lt;P&gt;I only adjusted the field names to represent the fieldnames in my own table. Can someone please tell me what I am missing?&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2014 11:14:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TypeError-mvc-Components-get-is-undefined/m-p/178120#M11012</guid>
      <dc:creator>rijk</dc:creator>
      <dc:date>2014-05-26T11:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: mvc.Components.get(...) is undefined</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TypeError-mvc-Components-get-is-undefined/m-p/178121#M11013</link>
      <description>&lt;P&gt;The reason that you are getting this is because your table definition needs an ID.&lt;/P&gt;

&lt;P&gt;If you look at the .js script, and the error you posted above, it says this:&lt;/P&gt;

&lt;P&gt;mvc.Components.get('&lt;STRONG&gt;highlight&lt;/STRONG&gt;').&lt;/P&gt;

&lt;P&gt;That is the tip off. What you need to have in your SimpleXML table definition is this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;table id='highlight'&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Yours probably just looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;table&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...which will not work, and results in the above error.&lt;/P&gt;

&lt;P&gt;Make that change, restart splunkweb, clear your browser cache, and it should work. Easy to miss that, and the error message makes it seem like you're missing a JavaScript dependency of sorts.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2014 04:14:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TypeError-mvc-Components-get-is-undefined/m-p/178121#M11013</guid>
      <dc:creator>jbrodsky_splunk</dc:creator>
      <dc:date>2014-09-11T04:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: mvc.Components.get(...) is undefined</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TypeError-mvc-Components-get-is-undefined/m-p/178122#M11014</link>
      <description>&lt;P&gt;Is this not documented anywhere? the mvc.Components.get() method doesn't seem to even have a reference, only examples with names like "myview" which could mean anything - token, id, class, and so on.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 10:22:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TypeError-mvc-Components-get-is-undefined/m-p/178122#M11014</guid>
      <dc:creator>bhawkins1</dc:creator>
      <dc:date>2016-10-03T10:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: mvc.Components.get(...) is undefined</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TypeError-mvc-Components-get-is-undefined/m-p/178123#M11015</link>
      <description>&lt;P&gt;Documented here:  &lt;A href="https://docs.splunk.com/DocumentationStatic/WebFramework/1.2/compref_mvc.html"&gt;https://docs.splunk.com/DocumentationStatic/WebFramework/1.2/compref_mvc.html&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 21:50:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TypeError-mvc-Components-get-is-undefined/m-p/178123#M11015</guid>
      <dc:creator>ss026381</dc:creator>
      <dc:date>2019-02-21T21:50:47Z</dc:date>
    </item>
  </channel>
</rss>

