Dashboards & Visualizations
Highlighted

two searchTemplate in one form

Contributor

Hi,

How Can I run two searchTemplate in a single form

I have a query which gets two variable : $first$ and $second$

Now $first$ is always ABC

but $second$ varies according to the country:

For INDIA: it has 5 values
For AUS : it has 5 values

So, I am clicking ABC and any of the one value of AUS then it is not working, because INDIA has been declared before AUS in the form..

it is not taking values for both INDIA and AUS

Please help

0 Karma
Highlighted

Re: two searchTemplate in one form

Contributor

Can I expect some prompt answer to my problem ..
Your help would be highly appreciated

0 Karma
Highlighted

Re: two searchTemplate in one form

Legend

It's saturday, I wouldn't expect many people to be around (in fact, I'm not really sure what I'm doing here either). Patience is a virtue.

0 Karma
Highlighted

Re: two searchTemplate in one form

Motivator

Thanks @Ayn for standing up for the weekend but it is 2 years plus and I have this same question

I would like to use two form searches on the same dashboard. I tried puting them in seperet row's but that didn't work

I would like to have one form search at the top of the dashboard and another form search at the bottom with different form windows for each of the two 's

Can anyone help me and @abhayneilam with this problem?

If you can please post as an answer so @abhayneilam can review and select as an answer

0 Karma
Highlighted

Re: two searchTemplate in one form

Path Finder
0 Karma
Highlighted

Re: two searchTemplate in one form

Path Finder

Here is a sample based on one of my dashboard forms. I hope this helps. Basically you just use the value of the input token as a variable in the second populating search.

<fieldset submitButton="true">
    <input type="dropdown" token="rmonth1">
      <label>Recent Report Month</label>
      <populatingSearch fieldForValue="report_month" fieldForLabel="report_month">
        <![CDATA[| savedsearch "AWS Bill - Monthly Latest Snapshot" | stats count by report_month]]>
      </populatingSearch>
    </input>
    <input type="dropdown" token="rmonth2">
      <label>Previous Comparison Report Month</label>
      <populatingSearch fieldForValue="report_month" fieldForLabel="report_month">
        <![CDATA[| savedsearch "AWS Bill - Monthly Latest Snapshot" | where report_month<"$rmonth1$" | stats count by report_month]]>
      </populatingSearch>
    </input>
  </fieldset>
0 Karma