<?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: Receiving &amp;quot;A custom JavaScript error caused an issue loading your dashboard.&amp;quot; error in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/643999#M52581</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234730"&gt;@sweetie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this? I have corrected some code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require([
    'splunkjs/mvc/tableview',
    'splunkjs/mvc/chartview',
    'splunkjs/mvc/searchmanager',
    'splunkjs/mvc',
    'underscore',
    'splunkjs/mvc/simplexml/ready!'
], function (
    TableView,
    ChartView,
    SearchManager,
    mvc,
    _
) {
    var EventSearchBasedRowExpansionRenderer = TableView.BaseRowExpansionRenderer.extend({
        initialize: function (args) {

            this._searchManager = new SearchManager({
                id: 'details-search-manager',
                preview: false
            });
            this._TableView = new TableView({
                managerid: 'details-search-manager'

            });
        },
        canRender: function (rowData) {

            return true;
        },
        render: function ($container, rowData) {

            var sourcetypeCell = _(rowData.cells).find(function (cell) {
                return cell.field === 'SID';
            });
            value = processCell.value;

            this._searchManager.set({ search: '|makeresults count=10 | eval a="A", value="' + value + '" ' });
        }
    });

    var tableElement = mvc.Components.getInstance("table1");
    tableElement.getVisualization(function (tableView) {
        tableView.addRowExpansionRenderer(new EventSearchBasedRowExpansionRenderer());
    });

});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
    <pubDate>Sat, 20 May 2023 05:42:22 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2023-05-20T05:42:22Z</dc:date>
    <item>
      <title>Receiving "A custom JavaScript error caused an issue loading your dashboard." error</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/643743#M52571</link>
      <description>&lt;P&gt;hi Splunk'ers, I am facing an error popup while loading my Custom made dashboard which states below:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"A custom JavaScript error caused an issue loading your dashboard. See the developer console for more details."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am using Javascript (.js scripts) for some functionalities in my dashboard. I even tried adding version = "1.1" in the form but it didn't help. Any suggestions will be really helpful.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Console error:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;dashboard_1.1.js:1317 Error: Script error for: theme_utils&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;A href="http://requirejs.org/docs/errors.html#scripterror" target="_blank" rel="noopener"&gt;http://requirejs.org/docs/errors.html#scripterror&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at makeError (eval at module.exports&amp;nbsp;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at HTMLScriptElement.onScriptError (eval at module.exports..............)&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 12:20:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/643743#M52571</guid>
      <dc:creator>sweetie</dc:creator>
      <dc:date>2023-05-18T12:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving "A custom JavaScript error caused an issue loading your dashboard." error</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/643860#M52575</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234730"&gt;@sweetie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible for you to share your sample custom JS code and Splunk version?&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 04:51:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/643860#M52575</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2023-05-19T04:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving "A custom JavaScript error caused an issue loading your dashboard." error</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/643881#M52577</link>
      <description>&lt;P&gt;hi, Splunk version is&amp;nbsp;&lt;SPAN&gt;8.2.10.&lt;BR /&gt;&lt;BR /&gt;Script sample-&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;EM&gt;require([&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; 'underscore',&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; 'backbone',&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; 'jquery',&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; 'splunkjs/mvc',&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; 'splunkjs/mvc/tableview',&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; 'splunkjs/mvc/chartview',&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; 'splunkjs/mvc/searchmanager',&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; 'splunkjs/mvc/simplexml/ready!'],function(&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; TableView,&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; ChartView,&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; SearchManager,&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; mvc,&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; _&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; ){&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; var EventSearchBasedRowExpansionRenderer = TableView.BaseRowExpansionRenderer.extend({&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; initialize: function(args) {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this._searchManager = new SearchManager({&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id: 'details-search-manager',&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; preview: false&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this._TableView = new TableView({&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; managerid: 'details-search-manager'&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; canRender: function(rowData) {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; render: function($container, rowData) {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var sourcetypeCell = _(rowData.cells).find(function (cell) {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return cell.field === 'SID';&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this._searchManager.set({ &amp;lt;Splunk Search Query&amp;gt; }&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; });&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; var tableElement = mvc.Components.getInstance("table1");&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; tableElement.getVisualization(function(tableView) {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tableView.addRowExpansionRenderer(new EventSearchBasedRowExpansionRenderer());&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; });&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;});&lt;/EM&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 10:09:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/643881#M52577</guid>
      <dc:creator>sweetie</dc:creator>
      <dc:date>2023-05-19T10:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving "A custom JavaScript error caused an issue loading your dashboard." error</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/643999#M52581</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234730"&gt;@sweetie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this? I have corrected some code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require([
    'splunkjs/mvc/tableview',
    'splunkjs/mvc/chartview',
    'splunkjs/mvc/searchmanager',
    'splunkjs/mvc',
    'underscore',
    'splunkjs/mvc/simplexml/ready!'
], function (
    TableView,
    ChartView,
    SearchManager,
    mvc,
    _
) {
    var EventSearchBasedRowExpansionRenderer = TableView.BaseRowExpansionRenderer.extend({
        initialize: function (args) {

            this._searchManager = new SearchManager({
                id: 'details-search-manager',
                preview: false
            });
            this._TableView = new TableView({
                managerid: 'details-search-manager'

            });
        },
        canRender: function (rowData) {

            return true;
        },
        render: function ($container, rowData) {

            var sourcetypeCell = _(rowData.cells).find(function (cell) {
                return cell.field === 'SID';
            });
            value = processCell.value;

            this._searchManager.set({ search: '|makeresults count=10 | eval a="A", value="' + value + '" ' });
        }
    });

    var tableElement = mvc.Components.getInstance("table1");
    tableElement.getVisualization(function (tableView) {
        tableView.addRowExpansionRenderer(new EventSearchBasedRowExpansionRenderer());
    });

});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 05:42:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/643999#M52581</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2023-05-20T05:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving "A custom JavaScript error caused an issue loading your dashboard." error</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644202#M52610</link>
      <description>&lt;P&gt;So are there changes to the require headers only in your suggested response? Please confirm.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 05:09:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644202#M52610</guid>
      <dc:creator>sweetie</dc:creator>
      <dc:date>2023-05-23T05:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving "A custom JavaScript error caused an issue loading your dashboard." error</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644215#M52613</link>
      <description>&lt;P&gt;Yes&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234730"&gt;@sweetie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Modules should be required properly in Custom Javascript.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 07:38:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644215#M52613</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2023-05-23T07:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving "A custom JavaScript error caused an issue loading your dashboard." error</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644234#M52616</link>
      <description>&lt;P&gt;The modules sequence didn't help fix the error :&amp;nbsp;&lt;EM&gt;A custom JavaScript error caused an issue loading your dashboard. See the developer console for more details.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;Seems the issue is beyond that.&lt;/P&gt;&lt;PRE&gt;'splunkjs/mvc/tableview',
    'splunkjs/mvc/chartview',
    'splunkjs/mvc/searchmanager',
    'splunkjs/mvc',
    'underscore',
    'splunkjs/mvc/simplexml/ready!'&lt;/PRE&gt;&lt;P&gt;'&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 09:12:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644234#M52616</guid>
      <dc:creator>sweetie</dc:creator>
      <dc:date>2023-05-23T09:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving "A custom JavaScript error caused an issue loading your dashboard." error</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644245#M52618</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234730"&gt;@sweetie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share your JS and sample XML with dummy queries? May be with both I can help you with this.&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 11:39:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644245#M52618</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2023-05-23T11:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving "A custom JavaScript error caused an issue loading your dashboard." error</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644404#M52620</link>
      <description>&lt;P&gt;hi @Anonymous&amp;nbsp; , JS I have shared it already , xml will be shared shortly. Also we recently added version = "1.1" to the source codes owing to recent JQuery upgrade to 3.5. Could that have caused any issue?&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 07:14:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644404#M52620</guid>
      <dc:creator>sweetie</dc:creator>
      <dc:date>2023-05-24T07:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving "A custom JavaScript error caused an issue loading your dashboard." error</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644575#M52643</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp; JS is already shared and I will share sample xml shortly with you. Also, could it be related to below version line owing to recent JQuery upgrade to 3.5?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;form version = "1.1" theme="dark" stylesheet="range_icon_css.css" script="row_expansion_san.js, range_icon_san.js" hideFilters="True"&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 04:19:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644575#M52643</guid>
      <dc:creator>sweetie</dc:creator>
      <dc:date>2023-05-25T04:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving "A custom JavaScript error caused an issue loading your dashboard." error</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644630#M52646</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234730"&gt;@sweetie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you are using Splunk version 8.x.x there is no need to add any version in the dashboard.&lt;/P&gt;&lt;P&gt;Can you please try this Sample Example?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require([
    'splunkjs/mvc/tableview',
    'splunkjs/mvc/chartview',
    'splunkjs/mvc/searchmanager',
    'splunkjs/mvc',
    'underscore',
    'splunkjs/mvc/simplexml/ready!'
], function (
    TableView,
    ChartView,
    SearchManager,
    mvc,
    _
) {
    console.log("HIe");
    // var CustomRangeRenderer = TableView.BaseCellRenderer.extend({
    //     canRender: function (cell) {
    //         return cell.field;
    //     },
    //     render: function ($container, rowData) {
    //         console.log(rowData.value);
    //         $container.html(rowData.value)
    //     }
    // });

    var EventSearchBasedRowExpansionRenderer = TableView.BaseRowExpansionRenderer.extend({
        initialize: function (args) {
            this._searchManager = new SearchManager({
                preview: false
            }, { tokens: true, tokenNamespace: "submitted" });

            this._TableView = new TableView({
                managerid: this._searchManager.name,
                drilldown: 'cell'
            });
        },

        canRender: function (rowData) {
            return true;
        },

        render: function ($container, rowData) {
            var processCell = _(rowData.cells).find(function (cell) {
                return cell.field === 'SID';
            });

            value = processCell.value
            // var tokens = mvc.Components.get("default")
            // var id = tokens.get("splunk_id")
            this._searchManager.set({ search: '|makeresults count=100 | eval a="A", value="' + value + '",c=1 | accum c ' });

            $container.append(this._TableView.render().el);
        }
    });

    var tableElement = mvc.Components.getInstance("table1");
    tableElement.getVisualization(function (tableView) {
        // Add custom cell renderer, the table will re-render automatically.
        // tableView.table.addCellRenderer(new CustomRangeRenderer());
        // tableView.render();
        tableView.addRowExpansionRenderer(new EventSearchBasedRowExpansionRenderer());
    });
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard script="a.js" theme="dark" hideFilters="True"&amp;gt;
  &amp;lt;label&amp;gt;Label&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table id="table1"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults count=10 | eval count=1 | accum count | eval SID = count&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-1w@w1&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;@w1&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;condition&amp;gt;&amp;lt;/condition&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screenshot&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-05-25 at 6.49.06 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25540i65D88FA85F099FDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-05-25 at 6.49.06 PM.png" alt="Screenshot 2023-05-25 at 6.49.06 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 13:20:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644630#M52646</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2023-05-25T13:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving "A custom JavaScript error caused an issue loading your dashboard." error</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644730#M52653</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;yes 8.2.1 and if i remove the version clause in &amp;lt;form&amp;gt; altogrther, error seems like below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sweetie_0-1685098101629.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25558i90F721376BEEBA0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sweetie_0-1685098101629.png" alt="sweetie_0-1685098101629.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 10:52:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644730#M52653</guid>
      <dc:creator>sweetie</dc:creator>
      <dc:date>2023-05-26T10:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving "A custom JavaScript error caused an issue loading your dashboard." error</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644731#M52654</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234730"&gt;@sweetie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the console error?&lt;/P&gt;&lt;P&gt;Did you check my above working example?&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 10:53:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644731#M52654</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2023-05-26T10:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving "A custom JavaScript error caused an issue loading your dashboard." error</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644741#M52655</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp; console error are somewhat like these. In the working example, can you let me know what exactly has changed as I see the modules required are the same. Is there any logic OR syntactical change?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sweetie_0-1685101048949.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25564i21ED94820608EEAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sweetie_0-1685101048949.png" alt="sweetie_0-1685101048949.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 11:38:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644741#M52655</guid>
      <dc:creator>sweetie</dc:creator>
      <dc:date>2023-05-26T11:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving "A custom JavaScript error caused an issue loading your dashboard." error</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644743#M52656</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234730"&gt;@sweetie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This kind of error only happens when some reference object is not properly defined.&lt;/P&gt;&lt;P&gt;What I suggest, is just follow the code I have shared with you and add your changes. Just be careful when you define any object OR mention any &lt;STRONG&gt;id.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KV&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 11:52:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Receiving-quot-A-custom-JavaScript-error-caused-an-issue-loading/m-p/644743#M52656</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2023-05-26T11:52:34Z</dc:date>
    </item>
  </channel>
</rss>

