Archive

Create several links on dashboard and click on click of a submitbutton

New Member

USers need to see couple of servers on the dashboard , select and submit to the appropriate dashboard
I have found the xml code , but this is for searches, how can we modify the searches with a link to a dashboard?

<form>
   <fieldset submitButton="true">
     <input type="radio" token="choice">
       <choice value="| stats count | eval search = &quot;search 1&quot;">Search 1</choice>
       <choice value="| stats count | eval search = &quot;search 2&quot;">Search 2</choice>
       <choice value="| stats count | eval search = &quot;search 3&quot;">Search 3</choice>
     </input>
   </fieldset>
   <row>
     <table>
       <searchString>$choice$</searchString>
     </table>
   </row>
 </form>
Tags (1)
0 Karma

Esteemed Legend

Try this instead:

<row>
   <panel>
      <title>Top Games</title>
      <input type="link" token="notUsed" searchWhenChanged="true">
         <label></label>
         <choice value="search1">Search 1</choice>
         <choice value="search2">Search 2</choice>
         <choice value="search3">Search 3</choice>
         <default>search1</default>
         <change>
            <condition value="search1">
               <set token="search">Search 1 goes here</set>
            </condition>
            <condition value="search2">
               <set token="search">Search 1 goes here</set>
            </condition>
            <condition value="search3">
               <set token="search">Search 1 goes here</set>
            </condition>
         </change>
      </input>
      <chart>
         <search>
            <query>$search$</query>
         </search>
         <option name="charting.chart">bar</option>
         <option name="charting.legend.placement">none</option>
      </chart>
   </panel>
</row>
0 Karma