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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...