Dashboards & Visualizations

Table wrap

timbCFCA
Path Finder

I recently converted from a simple to advanced XML view for a parametrized search.
I would like to get the results (displayed in a SimplerResultsTable as of now) to word wrap.
The lines in the table are exceedingly long and impossible to print clearly without getting word wrap working.

I've tried using the SoftWrap option
Search

source="forechange" user="$user$" summary="$summary$"

        <module name="ViewstateAdapter">
          <module name="HiddenFieldPicker">
            <param name="strictMode">True</param>
            <module name="JobProgressIndicator"/>
            <module name="Paginator">
              <param name="count">10</param>
              <param name="entityName">results</param>

              <module name="SoftWrap" layoutPanel="panel_row1_col1">

                <module name="SimpleResultsTable">
                  <param name="fields">_time,user,desc,summary,details</param>

and updating the CSS with

.SimpleResultsTable table.simpleResultsTable {
    white-space:normal;
 }

Neither appears to be working. What am I doing wrong?

Tags (2)
1 Solution

Ayn
Legend

Try:

.SimpleResultsTable table.simpleResultsTable {
    white-space:pre-line;
}

View solution in original post

Ayn
Legend

Try:

.SimpleResultsTable table.simpleResultsTable {
    white-space:pre-line;
}

0waste_splunk
Communicator

where is this css located? in which CSS i should add this code? i have created a dashboard. there is no specific app.

0 Karma

Yunagi
Communicator

Create the CSS file under etc/apps/myapp/appserver/static/.
Also, you need to include the CSS file in your dashboard. Edit the first XML line as follows: dashboard stylesheet="formatting.css"

0 Karma

MHWong
New Member

Did you ever figure this out? I have this problem too.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...