<?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 How to implement/ to assimilate my list to html? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-to-assimilate-my-list-to-html/m-p/352744#M39373</link>
    <description>&lt;P&gt;Hi I came from Angular, NodeJs And PHP code. so, plz forgive me about the foolish questions.&lt;/P&gt;

&lt;P&gt;I want take my info from Dashboard on my localhost, and like ng-reapet in angular or for loop &lt;BR /&gt;
Create a Front page.&lt;/P&gt;

&lt;P&gt;This is the code for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want create this div by the info from the splunk and duplication like the number of loops in the DB (Dashboard).&lt;/P&gt;

&lt;P&gt;Thank you all &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2017 21:28:22 GMT</pubDate>
    <dc:creator>yaghobieh</dc:creator>
    <dc:date>2017-06-13T21:28:22Z</dc:date>
    <item>
      <title>How to implement/ to assimilate my list to html?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-to-assimilate-my-list-to-html/m-p/352744#M39373</link>
      <description>&lt;P&gt;Hi I came from Angular, NodeJs And PHP code. so, plz forgive me about the foolish questions.&lt;/P&gt;

&lt;P&gt;I want take my info from Dashboard on my localhost, and like ng-reapet in angular or for loop &lt;BR /&gt;
Create a Front page.&lt;/P&gt;

&lt;P&gt;This is the code for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want create this div by the info from the splunk and duplication like the number of loops in the DB (Dashboard).&lt;/P&gt;

&lt;P&gt;Thank you all &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 21:28:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-to-assimilate-my-list-to-html/m-p/352744#M39373</guid>
      <dc:creator>yaghobieh</dc:creator>
      <dc:date>2017-06-13T21:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement/ to assimilate my list to html?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-to-assimilate-my-list-to-html/m-p/352745#M39374</link>
      <description>&lt;P&gt;Please give much more detail and if possible, have somebody else proofread your translation.  I don't see how your question could be understood as it is now.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 00:31:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-to-assimilate-my-list-to-html/m-p/352745#M39374</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-06-14T00:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement/ to assimilate my list to html?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-to-assimilate-my-list-to-html/m-p/352746#M39375</link>
      <description>&lt;P&gt;If I have dashboard like this:&lt;BR /&gt;
&lt;A href="http://imgur.com/a/18nxE"&gt;http://imgur.com/a/18nxE&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And I want implement to my Front page i built &lt;BR /&gt;
How can I do it?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 06:52:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-to-assimilate-my-list-to-html/m-p/352746#M39375</guid>
      <dc:creator>yaghobieh</dc:creator>
      <dc:date>2017-06-14T06:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement/ to assimilate my list to html?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-to-assimilate-my-list-to-html/m-p/352747#M39376</link>
      <description>&lt;P&gt;If I have dashboard like this:&lt;BR /&gt;
&lt;A href="http://imgur.com/a/18nxE"&gt;http://imgur.com/a/18nxE&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And I want implement to my Front page i built &lt;BR /&gt;
How can I do it?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 06:53:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-to-assimilate-my-list-to-html/m-p/352747#M39376</guid>
      <dc:creator>yaghobieh</dc:creator>
      <dc:date>2017-06-14T06:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement/ to assimilate my list to html?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-to-assimilate-my-list-to-html/m-p/352748#M39377</link>
      <description>&lt;P&gt;You will have to do this in HTML Dashboard since Angular Controller does not seem to work in Simple XML dashboard. (Refer to documented steps with output: &lt;A href="https://wiki.splunk.com/User_talk:Niketnilay#Topic_4:_Using_Angular_JS_in_Splunk_HTML_dashboard" target="_blank"&gt;https://wiki.splunk.com/User_talk:Niketnilay#Topic_4:_Using_Angular_JS_in_Splunk_HTML_dashboard&lt;/A&gt;)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Step 1:&lt;/STRONG&gt;&lt;BR /&gt;
Create HTML panel in Splunk Simple XML dashboard (note it will not work right away):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;row&amp;gt;
   &amp;lt;panel&amp;gt;
     &amp;lt;html&amp;gt;
        &amp;lt;!-- ng-controller will work only in HTML Dashboard--&amp;gt;
        &amp;lt;div ng-app="myApp" ng-controller="myCtrl"&amp;gt;
            &amp;lt;h1 ng-repeat="x in records"&amp;gt;{{x}}&amp;lt;/h1&amp;gt;
        &amp;lt;/div&amp;gt;
     &amp;lt;/html&amp;gt;
   &amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Step 2:&lt;/STRONG&gt;&lt;BR /&gt;
Create a script for Angular code say &lt;STRONG&gt;angular_dashboard_names.js&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;var app = angular.module("myApp", []);
app.controller("myCtrl", function($scope) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; $scope.records = [
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Dashboard1",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Dashboard2",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Dashboard3",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Dashboard4"
&amp;nbsp;&amp;nbsp;&amp;nbsp; ]
});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Step 3:&lt;/STRONG&gt;&lt;BR /&gt;
Get local copy of angular.min.js and save to your appserver/static folder(you might have to create one if it does not exist). &lt;BR /&gt;
Depending on your Splunk App name, path may be something like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/app/&amp;lt;YourAppName&amp;gt;/appserver/static
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Add JS script files to root node of your dashboard (depending on whether the view is dashboard or form)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard script="angular.min.js,angular_dashboard_names.js"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Step 4:&lt;/STRONG&gt;&lt;BR /&gt;
Convert the dashboard from Simple XML to HTML using &lt;STRONG&gt;Convert to HTML&lt;/STRONG&gt; option&lt;/P&gt;

&lt;P&gt;PS: If it does not work you might have to bump Splunk and try ( i.e. restart Splunk and refresh browser history and check.)&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/207580-splunk-html-dashboard-with-angularjs.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:29:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-to-assimilate-my-list-to-html/m-p/352748#M39377</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T14:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement/ to assimilate my list to html?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-to-assimilate-my-list-to-html/m-p/352749#M39378</link>
      <description>&lt;P&gt;What do you mean "implement to my Front page I built"?  Do you mean "make this the landing page of Splunk when I login"?  If so, you can put your stuff in an app and then edit your user settings and make this new app your &lt;CODE&gt;Default app&lt;/CODE&gt;.  Also check out this app:&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/2991/"&gt;https://splunkbase.splunk.com/app/2991/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 15:30:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-to-assimilate-my-list-to-html/m-p/352749#M39378</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-06-16T15:30:00Z</dc:date>
    </item>
  </channel>
</rss>

