<?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: Align Buttons in Sideviews in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122852#M9529</link>
    <description>&lt;P&gt;Hi Nick, didn't work for me, do I missed something ? do I have to replace .mainsSearchControls in my case ?&lt;/P&gt;</description>
    <pubDate>Tue, 04 Mar 2014 13:28:03 GMT</pubDate>
    <dc:creator>sbsbb</dc:creator>
    <dc:date>2014-03-04T13:28:03Z</dc:date>
    <item>
      <title>Align Buttons in Sideviews</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122848#M9525</link>
      <description>&lt;P&gt;Is it possible to align buttons in Sideviews ? &lt;BR /&gt;
I have always problems with Timerangepicker and buttons, that have no "float" parameter.&lt;/P&gt;

&lt;P&gt;How can I align 3 buttons for example ? At the moment there are always und another...&lt;/P&gt;

&lt;P&gt;I tried the following : &lt;BR /&gt;
        &lt;MODULE name="URLLoader" layoutpanel="panel_row1_col1" autorun="True"&gt;&lt;BR /&gt;
          &lt;OBJECT&gt;&lt;PARAM name="keepURLUpdated" /&gt;True&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;module name="HTML" layoutPanel="panel_row1_col1"&amp;gt;
        &amp;lt;param name="html"&amp;gt;&amp;lt;![CDATA[
&amp;lt;style type="text/css"&amp;gt;
    .mainSearchControls .Button
    .mainSearchControls .TimeRangePicker {
    float:left;
}
&amp;lt;/style&amp;gt;
    ]]&amp;gt;&amp;lt;/param&amp;gt;

        &amp;lt;module name="Pulldown"&amp;gt;
          &amp;lt;param name="float"&amp;gt;left&amp;lt;/param&amp;gt;
          &amp;lt;param name="label"&amp;gt;Plattform&amp;lt;/param&amp;gt;
          &amp;lt;param name="name"&amp;gt;plattform&amp;lt;/param&amp;gt;
          &amp;lt;param name="staticOptions"&amp;gt;
            &amp;lt;list&amp;gt;
              &amp;lt;param name="value"&amp;gt;t_kihub&amp;lt;/param&amp;gt;
              &amp;lt;param name="label"&amp;gt;test&amp;lt;/param&amp;gt;
            &amp;lt;/list&amp;gt;
            &amp;lt;list&amp;gt;
              &amp;lt;param name="value"&amp;gt;i_kihub&amp;lt;/param&amp;gt;
              &amp;lt;param name="label"&amp;gt;inte&amp;lt;/param&amp;gt;
            &amp;lt;/list&amp;gt;
            &amp;lt;list&amp;gt;
              &amp;lt;param name="selected"&amp;gt;true&amp;lt;/param&amp;gt;
              &amp;lt;param name="value"&amp;gt;p_kihub&amp;lt;/param&amp;gt;
              &amp;lt;param name="label"&amp;gt;prod&amp;lt;/param&amp;gt;
            &amp;lt;/list&amp;gt;
          &amp;lt;/param&amp;gt;

          &amp;lt;module name="Search"&amp;gt;
            &amp;lt;param name="search"&amp;gt;&amp;lt;![CDATA[
| dbquery $plattform$-kihub_ro "SELECT ABK,BPUIC,BEZEICHNUNG_OFFIZIELL FROM KIHUB_STAMMDATEN.BP WHERE LANDUIC=85 AND ABK IS NOT NULL ORDER BY BEZEICHNUNG_OFFIZIELL "





]]&amp;gt;&amp;lt;/param&amp;gt;

            &amp;lt;module name="JobProgressIndicator" /&amp;gt;

            &amp;lt;module name="Pulldown"&amp;gt;
              &amp;lt;param name="template"&amp;gt;msg_property_BPUIC=$value$&amp;lt;/param&amp;gt;
              &amp;lt;param name="count"&amp;gt;30000&amp;lt;/param&amp;gt;
              &amp;lt;param name="labelField"&amp;gt;BEZEICHNUNG_OFFIZIELL&amp;lt;/param&amp;gt;
              &amp;lt;param name="valueField"&amp;gt;BPUIC&amp;lt;/param&amp;gt;
              &amp;lt;param name="postProcess"&amp;gt;$postProcess$ | dedup BPUIC | sort BP_NAME&amp;lt;/param&amp;gt;
              &amp;lt;param name="float"&amp;gt;left&amp;lt;/param&amp;gt;
              &amp;lt;param name="label"&amp;gt;BP&amp;lt;/param&amp;gt;
              &amp;lt;param name="name"&amp;gt;BPUIC&amp;lt;/param&amp;gt;
              &amp;lt;param name="staticOptions"&amp;gt;
                &amp;lt;list&amp;gt;
                  &amp;lt;param name="value"&amp;gt;*&amp;lt;/param&amp;gt;
                  &amp;lt;param name="selected"&amp;gt;true&amp;lt;/param&amp;gt;
                &amp;lt;/list&amp;gt;
              &amp;lt;/param&amp;gt;

              &amp;lt;module name="TextField"&amp;gt;
                &amp;lt;param name="width"&amp;gt;40px&amp;lt;/param&amp;gt;
                &amp;lt;param name="template"&amp;gt;msg_property_VMNr=$value$&amp;lt;/param&amp;gt;
                &amp;lt;param name="float"&amp;gt;left&amp;lt;/param&amp;gt;
                &amp;lt;param name="name"&amp;gt;VMNr&amp;lt;/param&amp;gt;
                &amp;lt;param name="label"&amp;gt;VMNr&amp;lt;/param&amp;gt;
                &amp;lt;param name="default"&amp;gt;*&amp;lt;/param&amp;gt;

                &amp;lt;module name="TextField"&amp;gt;
                  &amp;lt;param name="label"&amp;gt;event_id&amp;lt;/param&amp;gt;
                  &amp;lt;param name="float"&amp;gt;left&amp;lt;/param&amp;gt;
                  &amp;lt;param name="name"&amp;gt;event_id&amp;lt;/param&amp;gt;
                  &amp;lt;param name="default"&amp;gt;*&amp;lt;/param&amp;gt;

                  &amp;lt;module name="Pulldown"&amp;gt;
                    &amp;lt;param name="float"&amp;gt;left&amp;lt;/param&amp;gt;
                    &amp;lt;param name="separator"&amp;gt;+OR+&amp;lt;/param&amp;gt;
                    &amp;lt;param name="template"&amp;gt;msg_header_type=$value$&amp;lt;/param&amp;gt;
                    &amp;lt;param name="size"&amp;gt;5&amp;lt;/param&amp;gt;
                    &amp;lt;param name="label"&amp;gt;messageType&amp;lt;/param&amp;gt;
                    &amp;lt;param name="name"&amp;gt;messageType&amp;lt;/param&amp;gt;
                    &amp;lt;param name="staticOptions"&amp;gt;
                      &amp;lt;list&amp;gt;
                        &amp;lt;param name="value"&amp;gt;*&amp;lt;/param&amp;gt;
                        &amp;lt;param name="selected"&amp;gt;true&amp;lt;/param&amp;gt;
                      &amp;lt;/list&amp;gt;
                      &amp;lt;list&amp;gt;
                        &amp;lt;param name="value"&amp;gt;CUSM_AnschlussMeldung&amp;lt;/param&amp;gt;
                      &amp;lt;/list&amp;gt;
                      &amp;lt;list&amp;gt;
                        &amp;lt;param name="value"&amp;gt;CUSM_AufstellungsEreignis&amp;lt;/param&amp;gt;
                      &amp;lt;/list&amp;gt;
                      &amp;lt;list&amp;gt;
                        &amp;lt;param name="value"&amp;gt;CUSM_AusfahrtEreignis&amp;lt;/param&amp;gt;
                      &amp;lt;/list&amp;gt;
                      &amp;lt;list&amp;gt;
                        &amp;lt;param name="value"&amp;gt;CUSM_EinfahrtEreignis&amp;lt;/param&amp;gt;
                      &amp;lt;/list&amp;gt;
                      &amp;lt;list&amp;gt;
                        &amp;lt;param name="value"&amp;gt;CUSM_EinfahrtWarnung&amp;lt;/param&amp;gt;
                      &amp;lt;/list&amp;gt;
                      &amp;lt;list&amp;gt;
                        &amp;lt;param name="value"&amp;gt;CUSM_FahrtKurz&amp;lt;/param&amp;gt;
                      &amp;lt;/list&amp;gt;
                      &amp;lt;list&amp;gt;
                        &amp;lt;param name="value"&amp;gt;CUSM_FahrtVA&amp;lt;/param&amp;gt;
                      &amp;lt;/list&amp;gt;
                      &amp;lt;list&amp;gt;
                        &amp;lt;param name="value"&amp;gt;CUSM_TagesFPL&amp;lt;/param&amp;gt;
                      &amp;lt;/list&amp;gt;
                      &amp;lt;list&amp;gt;
                        &amp;lt;param name="value"&amp;gt;CUSM_ZNAbfahrtEreignis&amp;lt;/param&amp;gt;
                      &amp;lt;/list&amp;gt;
                      &amp;lt;list&amp;gt;
                        &amp;lt;param name="value"&amp;gt;CUSM_ZNAbfahrtWarnung&amp;lt;/param&amp;gt;
                      &amp;lt;/list&amp;gt;
                      &amp;lt;list&amp;gt;
                        &amp;lt;param name="value"&amp;gt;CUSM_ZNEinfahrtEreignis&amp;lt;/param&amp;gt;
                      &amp;lt;/list&amp;gt;
                      &amp;lt;list&amp;gt;
                        &amp;lt;param name="value"&amp;gt;CUSM_ZNEinfahrtWarnung&amp;lt;/param&amp;gt;
                      &amp;lt;/list&amp;gt;
                      &amp;lt;list&amp;gt;
                        &amp;lt;param name="value"&amp;gt;CUSM_ZNVMEinwahl&amp;lt;/param&amp;gt;
                      &amp;lt;/list&amp;gt;
                      &amp;lt;list&amp;gt;
                        &amp;lt;param name="value"&amp;gt;CUSM_ZNVMLoeschen&amp;lt;/param&amp;gt;
                      &amp;lt;/list&amp;gt;
                    &amp;lt;/param&amp;gt;

                    &amp;lt;module name="TextField"&amp;gt;
                      &amp;lt;param name="width"&amp;gt;20px&amp;lt;/param&amp;gt;
                      &amp;lt;param name="float"&amp;gt;left&amp;lt;/param&amp;gt;
                      &amp;lt;param name="template"&amp;gt;head limit=$value$&amp;lt;/param&amp;gt;
                      &amp;lt;param name="name"&amp;gt;limit&amp;lt;/param&amp;gt;
                      &amp;lt;param name="label"&amp;gt;limit (kein=0)&amp;lt;/param&amp;gt;
                      &amp;lt;param name="default"&amp;gt;400&amp;lt;/param&amp;gt;

                      &amp;lt;module name="TimeRangePicker"&amp;gt;
                        &amp;lt;param name="default"&amp;gt;Last 15 minutes&amp;lt;/param&amp;gt;
                        &amp;lt;param name="default"&amp;gt;Last 15 minutes&amp;lt;/param&amp;gt;

                        &amp;lt;module name="Button"&amp;gt;
                          &amp;lt;param name="allowAutoSubmit"&amp;gt;False&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Jan 2014 08:22:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122848#M9525</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2014-01-23T08:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Align Buttons in Sideviews</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122849#M9526</link>
      <description>&lt;P&gt;The relevant Sideview modules all have "float" params.  If you have a bunch of Sideview form element modules (eg TextField, Pulldown) and you set their "float" params to "left" then they will all end up on one line. &lt;/P&gt;

&lt;P&gt;However the older Splunk modules like TimeRangePicker don't have any such param or mechanism. &lt;/P&gt;

&lt;P&gt;So you have to create a little custom CSS and put it in your app. &lt;/P&gt;

&lt;P&gt;The most common way is to go into your app and edit  appserver/static/application.css &lt;BR /&gt;
(if there is no file there already then create the file and make sure to restart splunkWeb after you create it)&lt;/P&gt;

&lt;P&gt;Say you have all these modules in the "mainSearchControls" layoutPanel, then you would want to put this into your css: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.mainSearchControls .TimeRangePicker {
    float:left;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you only want to mess with one particular view, and that view is called "foobar", then you would have this: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.splView-foobar .mainSearchControls .TimeRangePicker {
    float:left;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What is also quite common,  is to specify the same rule for the Pulldown and TextField modules, &lt;EM&gt;instead&lt;/EM&gt; of using the float params.   This is slightly preferable because then the modules will be in their final position right when the page loads.  The Sideview "float" params are convenient, but if you watch closely the modules flicker a bit when the page loads. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.mainSearchControls .TimeRangePicker,
.mainSearchControls .TextField,
.mainSearchControls .Pulldown {
    float:left;
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jan 2014 23:35:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122849#M9526</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2014-01-28T23:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Align Buttons in Sideviews</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122850#M9527</link>
      <description>&lt;P&gt;Thank you for your answer. In fact our Splunk is hosted, so I'm not able to modify some  appserver/static/application.css...&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2014 08:50:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122850#M9527</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2014-01-29T08:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Align Buttons in Sideviews</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122851#M9528</link>
      <description>&lt;P&gt;Well you can always sneak a style block in with an HTML module as a last resort. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;module name="HTML" layoutPanel="viewHeader"&amp;gt;
    &amp;lt;param name="html"&amp;gt;&amp;lt;![CDATA[
&amp;lt;style type="text/css"&amp;gt;
    .mainSearchControls .TimeRangePicker {
    float:left;
}
&amp;lt;/style&amp;gt;
    ]]&amp;gt;&amp;lt;/param&amp;gt;
  &amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jan 2014 17:36:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122851#M9528</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2014-01-29T17:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Align Buttons in Sideviews</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122852#M9529</link>
      <description>&lt;P&gt;Hi Nick, didn't work for me, do I missed something ? do I have to replace .mainsSearchControls in my case ?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2014 13:28:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122852#M9529</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2014-03-04T13:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Align Buttons in Sideviews</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122853#M9530</link>
      <description>&lt;P&gt;When you first create an application.css you have to restart splunkweb or the server wont realize its there.  Perhaps it's just that?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2014 16:53:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122853#M9530</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2014-03-04T16:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Align Buttons in Sideviews</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122854#M9531</link>
      <description>&lt;P&gt;No I've tried with an html module, but it doesn't work :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="HTML" layoutPanel="viewHeader"&amp;gt;
&amp;lt;param name="html"&amp;gt;
&amp;lt;![CDATA[
&amp;lt;h1&amp;gt;FahrtVA-FahrtKurz&amp;lt;/h1&amp;gt;
&amp;lt;style type="text/css"&amp;gt;
.panel_row3_col1 .Button {
float:left;
}
&amp;lt;/style&amp;gt;
]]&amp;gt;&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Jul 2014 12:34:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122854#M9531</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2014-07-18T12:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Align Buttons in Sideviews</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122855#M9532</link>
      <description>&lt;P&gt;In the dashboard.html template (the home of "panel_row3_col1", it's weird but there is no element with class="Panel_row3_col1", which you can verify with Firebug. That may be why your style doesn't match.  It says that elements with class "Button" inside elements with class "panel_row3_col1" should have such and such a style, but there are no such elements.   Try changing ".panel_row3_col1" to just ".panel_row3_col", which is a div element that &lt;EM&gt;does&lt;/EM&gt; exist on the page.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:08:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122855#M9532</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2020-09-28T17:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Align Buttons in Sideviews</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122856#M9533</link>
      <description>&lt;P&gt;I had to work on this issue. My experiments showed that there are 2 rules that must be respected for this to work.&lt;BR /&gt;
1. The panel to which the object belongs must be in the declaration of the formatting statement.&lt;BR /&gt;
2. the html module must be placed after the object declaration.&lt;/P&gt;

&lt;P&gt;Example code:&lt;BR /&gt;
&lt;MODULE name="TimeRangePicker" layoutpanel="viewHeader"&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="HTML" layoutpanel="viewHeader"&gt;&lt;BR /&gt;
    &lt;OBJECT&gt;&lt;PARAM name="html" /&gt;&amp;lt;![CDATA[&lt;BR /&gt;
&lt;STYLE type="text/css"&gt;&amp;lt;br&amp;gt;
    .viewHeader {&amp;lt;br&amp;gt;
        background-color:#82CDE6;&amp;lt;br&amp;gt;
    }&amp;lt;br&amp;gt;
    .viewHeader .TimeRangePicker {&amp;lt;br&amp;gt;
    float:left;&amp;lt;br&amp;gt;
    }&amp;lt;br&amp;gt;
&lt;/STYLE&gt;&lt;BR /&gt;
    ]]&amp;gt;&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2014 16:49:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Align-Buttons-in-Sideviews/m-p/122856#M9533</guid>
      <dc:creator>sansay</dc:creator>
      <dc:date>2014-08-07T16:49:57Z</dc:date>
    </item>
  </channel>
</rss>

