Dashboards & Visualizations

Can a form be also a dahsboard?

dadi
Path Finder

In my view I use the

in order to get input from the user.
In my recently 4.3 installation I've noticed that if I replace the with my view gets editing capabilities but lacks the user input component.
Can I enjoy both worlds, having both input component and edit dashboard?

I've noticed that if I use advanced xml than the editing capabilities disappear , so in that case I would not want to use advanced xml.

Thanks.

0 Karma
1 Solution

MHibbin
Influencer

I think simply put, the answer is no...

However once you have started to play around with XML specfically simple XML it becomes very easy to start modifying your XML directly. There are loads of guides on editing the XML and you are able to perform a much greater level of customisation editing it directly... more so in advanced XML.

Cheers,

MHibbin

View solution in original post

the_wolverine
Champion

Using advanced XML, sure you can put a form in a dashboard. Here's some sample code:

    <module name="HiddenSearch" layoutPanel="panel_row3_col1" autorun="False" >
    <param name="search">index=_internal sourcetype=$sourcetype$ | fields + _time,sourcetype,_raw</param>
    <param name="earliest">-24h</param>
    <module name="ExtendedFieldSearch">
      <param name="replacementMap">
        <param name="arg">
          <param name="sourcetype">
            <param name="value"></param>
        </param>
      </param>
      </param>
      <param name="field">Enter sourcetype</param>
      <param name="intention">
        <param name="name">stringreplace</param>
        <param name="arg">
          <param name="sourcetype">
            <param name="fillOnEmpty">True</param>
          </param>
        </param>
      </param>

<!--
        <module name="TimeRangePicker">
          <param name="searchWhenChanged">False</param>
          -->

          <module name="SubmitButton">
            <param name="allowSoftSubmit">True</param>
            <param name="label">Click to Search</param>
            <module name="JobProgressIndicator" layoutPanel="panel_row3_col1" group="Find matching events">
              <param name="groupLabel">Look up matching events for</param>


            <module name="Paginator">
              <param name="count">10</param>
              <param name="entityName">results</param>
              <module name="EnablePreview">
                <param name="enable">True</param>
                <param name="display">False</param>


                <module name="SimpleResultsTable">
                  <param name="count">10</param>
                  <param name="entityName">results</param>
                  <param name="allowTransformedFieldSelect">True</param>
                  <param name="drilldown">none</param>
                  <module name="ConvertToDrilldownSearch">
                    <module name="ViewRedirector">
                      <param name="viewTarget">flashtimeline</param>
                    </module>
                  </module>

                <module name="ViewRedirectorLink">
                  <param name="viewTarget">flashtimeline</param>
                </module>
              </module>
            </module>
          </module>
        </module>
       </module>
    </module>
  </module>
0 Karma

jgedeon120
Contributor

This can not be done in simple XML you will need to look into advance XML.

0 Karma

jgedeon120
Contributor

I would suggest that you install the ui examples app and look at the code and objects. I think it might answer most of you questions that you're going to come across when to get deeper into the app.

0 Karma

dadi
Path Finder

Are you suggesting that in advanced xml it can be done? Any pointers on how?
Thanks.

0 Karma

MHibbin
Influencer

I think simply put, the answer is no...

However once you have started to play around with XML specfically simple XML it becomes very easy to start modifying your XML directly. There are loads of guides on editing the XML and you are able to perform a much greater level of customisation editing it directly... more so in advanced XML.

Cheers,

MHibbin

dadi
Path Finder

Ok. so basically the answer is NO. I can't have a form and edit capabilities in the same view

0 Karma

MHibbin
Influencer

I understand you would like the edit options on the view, but, this is simply not possible, once you start editing the XML for the form (i.e. creating the form). you can't place the form tag within a dashboard tag

0 Karma

MHibbin
Influencer

I normally cheat a little here, to make the process quicker...

dadi
Path Finder

Thanks MHibbin.
I've tried to play with my XML but wasn't able to put a form inside a dashboard. Are you suggesting there is no way I can workaround it by editting my xml?

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...