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!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...