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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

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

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...