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
SplunkTrust
SplunkTrust

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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...