Dashboards & Visualizations

Is there a refresh option so it can pick up any changes on the horseshoe caption?

jiaqya
Builder

I have a query configured for the horseshoe caption to output a number.
but when the number change the horseshoe caption value does not change or refresh, although the query does give the changed value upon running.

Is there a refresh option so it can pick up any changes on the caption?

For the caption to show the number I have created a radio input to output the value and doing a set token using <
below is the code, what could be wrong or is there a way to force a refresh of the token value

<input type="radio" searchWhenChanged="true" depends="$justHideMe$" token="test_number">
        <label>test_number</label>
        <search>
          <query>test query|eval test_number=+"% of "+test_number</query>
          <progress>
             <set token="toktest_number">$result.test_number$</set>
          </progress>
        </search>
        <default>$toktest_number$</default>
        <fieldForLabel>test_number</fieldForLabel>
        <fieldForValue>test_number</fieldForValue>
        <selectFirstChoice>true</selectFirstChoice>
     </input>

      <option name="horseshoe_meter_app.horseshoe_meter.caption">$test_number$</option>
0 Karma

jiaqya
Builder

I tried using your suggestion, but it didnt help.

The issue here was not the horseshoe caption but the token that gets set , ie the $test_number$
Found a fix this for. I just had to enter a |table entry to the input query.
Without the table entry, the output was not getting picked up by the token is what I am guessing.

After putting in |table it is consistently picking up the token value and setting it as well.

My issue is fixed at this point. Hope this helps others..

0 Karma

DalJeanis
Legend

1) The token you are setting with the results from the radio-populating search is $toktest_number$.

2) The token you are using to set the caption is $test_number$.

3) You are apparently hiding the input that does this, so I'm not sure "when the number change" would ever happen.

4) If someone is actually going to be selecting items from the dropdown, then you probably want to set the tag during the input's <change> condition instead of the search's <progress> condition.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...