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!

Enterprise Security Content Update (ESCU) | New Releases

In January, the Splunk Threat Research Team had one release of new security content via the Splunk ES Content ...

Expert Tips from Splunk Professional Services, Ensuring Compliance, and More New ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Observability Release Update: AI Assistant, AppD + Observability Cloud Integrations & ...

This month’s releases across the Splunk Observability portfolio deliver earlier detection and faster ...