Hello,
We'd like to provide a basic dashboard to our analysts to help them to search the information in an asset lookup based on its name, IP or Mac addresses. By default we'd like to use a wildca...
See more...
Hello,
We'd like to provide a basic dashboard to our analysts to help them to search the information in an asset lookup based on its name, IP or Mac addresses. By default we'd like to use a wildcard with the text input (in case of multiple values in the field), but we'd like to leave an option to suppress the wildcard as well. For this purpose we use a radiobutton. Here is our dashboard:
<form>
<label>Asset Info</label>
<fieldset submitButton="true" autoRun="false">
<input type="text" token="input">
<label>Name, IP or Mac</label>
<default></default>
</input>
<input type="radio" token="field1" searchWhenChanged="true">
<label>Exact Value</label>
<choice value="Yes">Yes</choice>
<choice value="No">No</choice>
<change>
<condition value="No">
<set token="myseaerch">| inputlookup assets_info.csv
| search name=*$input$* OR ip=*$input$* OR mac=*$input$*
| table name, ip, mac, zone, classification, status, os, serial_number</set>
</condition>
<condition value="Yes">
<set token="myseaerch">| inputlookup assets_info.csv
| search name=$input$ OR ip=$input$ OR mac=$input$
| table name, ip, mac, zone, classification, status, os, serial_number</set>
</condition>
</change>
<initialValue>No</initialValue>
<default>No</default>
</input>
</fieldset>
<row>
<panel>
<table>
<title>Asset Info</title>
<search>
<query>$myseaerch$</query>
<earliest>-15m</earliest>
<latest>now</latest>
</search>
<option name="drilldown">none</option>
<option name="refresh.display">progressbar</option>
</table>
</panel>
</row>
</form>
Unfortunately, for some reason we need to reselect a radiobutton every time we want to resubmit the search. I mean, we can't just leave it in "No" position and resubmit a search with a new text input, but have to switch to "Yes" and then back to "No" in order to make it work.
Do you have any idea what the issue is cased by and how it could be fixed?
Thanks for the help.