Dashboards & Visualizations

view strange behavior

DTERM
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

sideview
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

sideview
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.

Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...