Dashboards & Visualizations

view strange behavior

Contributor

I've got the following code in a view. It works fine with one strange exception. I see the text "Loading..." in the upper right hand side of the view when I include the HTML portion (in bold below). If I remove the HTML, the "Loading..." text disappears. Now the view contents and the HTML work so I don't see what could be "Loading". Any clue as to what is causing this? Thanks.

    <?xml version="1.0"?>

<view template="dashboard.html">

  **<module name="HTML" layoutPanel="viewHeader">
    <param name="html"><![CDATA[
    <h1 align="center">Customer Activity</h1>
    <h2> bla bla</h2>
    <h3> more bla bla</h3>
    <a align="right" href="/en-US/app/MyApp/about_dashboard">Customer Home</a>
    <br>
    odalsfaslj saljdfasjf
    ]]></param>
  </module>**

<label>Customer Activity</label>
  <module name="GenericHeader" layoutPanel="panel_row1_col1">
    <param name="label">Customer Activity (Most ACTIVE)</param>
      <param name="invervalInSeconds">300</param>
      <module name="HiddenSearch" autoRun="True" layoutPanel="panel_row1_col1_grp1">
    <param name="search"> 
              index="MyApp" sourcetype="client" | timechart count by client 
    </param>
        <param name="earliest">-1h</param>
        <module name="HiddenChartFormatter">
          <param name="chart">line</param>
          <param name="chart.nullValueMode">connect</param>
          <param name="secondaryAxis.scale">log</param>
          <param name="primaryAxisTitle.text">Time</param>
          <param name="secondaryAxisTitle.text">Volume</param>
          <module name="FlashChart"/>
        </module>
      </module>
  </module>
</view>
Tags (1)
0 Karma
1 Solution

SplunkTrust
SplunkTrust

The 'Loading' text will get stuck there whenever there is an exception being thrown in the Javascript. In the future you can go to 'Tools > Error Console' in firefox to see the text of the error.

The problem here is simply that you have not included the SideviewUtils module. This is mentioned as a requirement on the homepage of the Sideview Utils documentation. If you use any of the modules from the app, you have to also include the invisible module whose name is "SideviewUtils" somewhere on the page.

Take a closer look at the documentation, both the intro pages in Sideview Utils and dont forget the specific documentation around the HTML module.

View solution in original post

SplunkTrust
SplunkTrust

The 'Loading' text will get stuck there whenever there is an exception being thrown in the Javascript. In the future you can go to 'Tools > Error Console' in firefox to see the text of the error.

The problem here is simply that you have not included the SideviewUtils module. This is mentioned as a requirement on the homepage of the Sideview Utils documentation. If you use any of the modules from the app, you have to also include the invisible module whose name is "SideviewUtils" somewhere on the page.

Take a closer look at the documentation, both the intro pages in Sideview Utils and dont forget the specific documentation around the HTML module.

View solution in original post

State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!