Getting Data In

Form Input - Add submit button for each panel

HeinzWaescher
Motivator

Hi,

I would like to add a seperate submit button for each panel of a form. At the moment there is only one button at the top to rerun all searches. Is this possible?

BR

Heinz

Tags (3)

ngatchasandra
Builder

Hi,
I do this in Xml with module. The xml code that follow is an example:

<view autoCancelInterval="90" isSticky="False" isVisible="true" onunloadCancelJobs="true" template="dashboard.html">
<label>TextField - intro</label>
<module name="AccountBar" layoutPanel="appHeader"/>
<module name="AppBar" layoutPanel="appHeader"/>
<module name="SideviewUtils" layoutPanel="appHeader"/>
<module name="Message" layoutPanel="messaging">
<param name="filter">*</param>
<param name="maxSize">2</param>
<param name="clearOnJobDispatch">False</param>
</module>
<module name="HTML" layoutPanel="viewHeader">
<param name="html">
<![CDATA[ <h1>TextField - Templated example</h1> ]]>
</param>
</module>

<module name="TextField" layoutPanel="panel_row1_col1" autoRun="True">
<param name="name">exclusion</param>
<param name="float">left</param>
<param name="template">NOT ( $value$ )</param>
<param name="label">exclude events containing:</param>
<param name="default">splunkd</param>
<module name="Button">
<param name="allowSoftSubmit">True</param>
  <param name="label">Submit</param>

<module name="Search">
<param name="search">
index=_internal source="*metrics.log" group="per_sourcetype_thruput" $exclusion$ | stats avg(eps) by series
</param>
<param name="earliest">-1h</param>
<param name="latest">now</param>
<module name="JobProgressIndicator"/>
<module name="Pager">
<param name="entityName">results</param>
<module name="SimpleResultsTable">
<param name="displayRowNumbers">False</param>
<param name="entityName">results</param>
</module>
</module>
<!--
 this HTML module here is just to show you the token values 
-->
<!--  along with the search string.  -->
<!--  feel free to delete it  -->

</module>
</module>
</module>
   <module name="TextField" layoutPanel="panel_row2_col1" autoRun="True">
<param name="name">exclusion</param>
<param name="float">left</param>
<param name="template">NOT ( $value$ )</param>
<param name="label">exclude events containing:</param>
<param name="default">splunkd</param>
<module name="Button">
<param name="allowSoftSubmit">True</param>
<param name="label">Submit</param>
<module name="Search">
<param name="search">
index=_internal source="*metrics.log" group="per_sourcetype_thruput" $exclusion$ | stats avg(eps) by series
</param>
<param name="earliest">-1h</param>
<param name="latest">now</param>
<module name="JobProgressIndicator"/>
<module name="Pager">
<param name="entityName">results</param>
<module name="SimpleResultsTable">
<param name="displayRowNumbers">False</param>
<param name="entityName">results</param>
</module>
</module>
<!--
 this HTML module here is just to show you the token values 
-->
<!--  along with the search string.  -->
<!--  feel free to delete it  -->

</module>
</module>
</module>
<!--  EXAMPLE END  -->
</view>
0 Karma
Get Updates on the Splunk Community!

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...

Data-Driven Success: Splunk & Financial Services

Splunk streamlines the process of extracting insights from large volumes of data. In this fast-paced world, ...