This dummy search method saved my day in a slightly different use case: Direct URL link to input token. Basically, I need to set a token based on an input value, and want the input to have an initial value. Without the dummy search-<progress/>, I have to set the token value in <init/> based on the initial/default value of input. As such, if I use a URL link that corresponds to input that is not the default input, the result is bizarre because the token value would still correspond to default input. After some trial and error, I get this dashboard to work both interactively and by direct link to any input value. (I have to remove the <init/> segment to make it work.) <form>
<label>Set token on load</label>
<fieldset submitButton="false">
<input type="dropdown" token="master_token" searchWhenChanged="true">
<label>master token</label>
<choice value="Data Entry">Data entry</choice>
<choice value="Click Only">Click only</choice>
<choice value="Attachment">Attachment</choice>
<default>Data Entry</default>
</input>
</fieldset>
<search>
<query>
| makeresults
| fields - _time
| eval master_token="$master_token$"
</query>
<progress>
<condition match="master_token=="Data Entry"">
<set token="data_entry">True</set>
<unset token="attachment"></unset>
<unset token="click_only"></unset>
</condition>
<condition match="master_token=="Click Only"">
<set token="click_only">True</set>
<unset token="data_entry"></unset>
<unset token="attachment"></unset>
</condition>
<condition match="master_token=="Attachment"">
<set token="attachment">True</set>
<unset token="click_only"></unset>
<unset token="data_entry"></unset>
</condition>
</progress>
</search>
<row>
<panel>
<html>
<div>master_token: $master_token$</div>
<div>data_entry: $data_entry$</div>
<div>click_only: $click_only$</div>
<div>attachment: $attachment$</div>
</html>
</panel>
</row>
</form> In the above, default input is "Data Entry". If I link to /set_token_on_load?form.master_token=Click%20Only, the output will be master_token: Click Only data_entry: $data_entry$ click_only: True attachment: $attachment$ instead of the bizarre master_token: Click Only data_entry: Data Entry click_only: $click_only$ attachment: $attachment$ if I had to set these subtokens in <init/>. I didn't know that you can put a search outside panels. Thanks for the eyeopener, @niketn!
... View more