<?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: Why am I getting error &amp;quot;addRowExpansionRenderer is not a function&amp;quot; in the JavaScript web framework after upgrade to Splunk 6.3 from 6.2.4? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-error-quot-addRowExpansionRenderer-is-not-a/m-p/284634#M17977</link>
    <description>&lt;P&gt;I fixed it after referencing the example dashboards app. Below you can find my code.&lt;/P&gt;

&lt;P&gt;6.2.4 code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;var tables = ['web_stat_page_tbl', 'web_diag_tran_tbl', 'web_diag_comp_tbl', 'web_stat_tran_tbl'];

    for(i = 0; i &amp;lt; tables.length; i++) {
        mvc.Components.get(tables[i]).getVisualization(function(tableView) {
            // Add custom cell renderer
            tableView.table.addCellRenderer(new CustomRangeRenderer());
            // Add custom row renderer
            tableView.table.addRowExpansionRenderer(new CustomRowRenderer());

            // Force the table to re-render
            tableView.table.render();
        });
    } 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;6.3.0 code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    var tableElement = mvc.Components.getInstance("web_stat_page_tbl");
    tableElement.getVisualization(function(tableView) {
        // Add custom cell renderer, the table will re-render automatically.
        tableView.addCellRenderer(new CustomRangeRenderer());
        tableView.addRowExpansionRenderer(new CustomRowRenderer());
    });
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 20 Oct 2015 17:43:47 GMT</pubDate>
    <dc:creator>ConnorG</dc:creator>
    <dc:date>2015-10-20T17:43:47Z</dc:date>
    <item>
      <title>Why am I getting error "addRowExpansionRenderer is not a function" in the JavaScript web framework after upgrade to Splunk 6.3 from 6.2.4?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-error-quot-addRowExpansionRenderer-is-not-a/m-p/284632#M17975</link>
      <description>&lt;P&gt;After upgrading to Splunk 6.3, it seems the previous web framework for Javascript does not work properly. &lt;/P&gt;

&lt;P&gt;My jscript is getting a &lt;CODE&gt;TypeError: tableView.table.addRowExpansionRenderer is not a function&lt;/CODE&gt; error when being run under a 6.3 instance. &lt;/P&gt;

&lt;P&gt;The code I'm using is expanding upon the concepts provides &lt;A href="http://dev.splunk.com/view/SP-CAAAE49"&gt;here&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;Anyone know if there were changes to the web framework and how to accommodate those changes?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2015 15:09:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-error-quot-addRowExpansionRenderer-is-not-a/m-p/284632#M17975</guid>
      <dc:creator>ConnorG</dc:creator>
      <dc:date>2015-10-20T15:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "addRowExpansionRenderer is not a function" in the JavaScript web framework after upgrade to Splunk 6.3 from 6.2.4?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-error-quot-addRowExpansionRenderer-is-not-a/m-p/284633#M17976</link>
      <description>&lt;P&gt;Below is the table object in a debug view coming from Splunk 6.2.4. Here we can see the addRowExpansionRenderer is still listed under the object.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/750i2B7FB58BBC9A731F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Here is the same object in 6.3. No mention of RowExpansionRenderer anywhere.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/751i3A17005C7CE8F19B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2015 17:10:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-error-quot-addRowExpansionRenderer-is-not-a/m-p/284633#M17976</guid>
      <dc:creator>ConnorG</dc:creator>
      <dc:date>2015-10-20T17:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "addRowExpansionRenderer is not a function" in the JavaScript web framework after upgrade to Splunk 6.3 from 6.2.4?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-error-quot-addRowExpansionRenderer-is-not-a/m-p/284634#M17977</link>
      <description>&lt;P&gt;I fixed it after referencing the example dashboards app. Below you can find my code.&lt;/P&gt;

&lt;P&gt;6.2.4 code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;var tables = ['web_stat_page_tbl', 'web_diag_tran_tbl', 'web_diag_comp_tbl', 'web_stat_tran_tbl'];

    for(i = 0; i &amp;lt; tables.length; i++) {
        mvc.Components.get(tables[i]).getVisualization(function(tableView) {
            // Add custom cell renderer
            tableView.table.addCellRenderer(new CustomRangeRenderer());
            // Add custom row renderer
            tableView.table.addRowExpansionRenderer(new CustomRowRenderer());

            // Force the table to re-render
            tableView.table.render();
        });
    } 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;6.3.0 code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    var tableElement = mvc.Components.getInstance("web_stat_page_tbl");
    tableElement.getVisualization(function(tableView) {
        // Add custom cell renderer, the table will re-render automatically.
        tableView.addCellRenderer(new CustomRangeRenderer());
        tableView.addRowExpansionRenderer(new CustomRowRenderer());
    });
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Oct 2015 17:43:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-error-quot-addRowExpansionRenderer-is-not-a/m-p/284634#M17977</guid>
      <dc:creator>ConnorG</dc:creator>
      <dc:date>2015-10-20T17:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "addRowExpansionRenderer is not a function" in the JavaScript web framework after upgrade to Splunk 6.3 from 6.2.4?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-error-quot-addRowExpansionRenderer-is-not-a/m-p/284635#M17978</link>
      <description>&lt;P&gt;Sticking to the old format would give us:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    var tables = ['web_stat_page_tbl', 'web_diag_tran_tbl', 'web_diag_comp_tbl', 'web_stat_tran_tbl'];

    for(i = 0; i &amp;lt; tables.length; i++) {
        mvc.Components.get(tables[i]).getVisualization(function(tableView) {
            // Add custom cell renderer
            tableView.addCellRenderer(new CustomRangeRenderer());
            // Add custom row renderer
            tableView.addRowExpansionRenderer(new CustomRowRenderer());

        });
    } 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Oct 2015 17:48:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-error-quot-addRowExpansionRenderer-is-not-a/m-p/284635#M17978</guid>
      <dc:creator>ConnorG</dc:creator>
      <dc:date>2015-10-20T17:48:30Z</dc:date>
    </item>
  </channel>
</rss>

