Hello all,
I want to initialize a token value. That is while dashboard is opened that value should be initialized to the token. I have tried writing the token value inside "init". I want to compute the token value in the "init" method, i tried and there is no change. How can i achieve this?
Hi
Check this
<dashboard>
<label>init</label>
<init>
<eval token="temp">1+2</eval>
</init>
<row>
<html>
$temp$
</html>
</row>
</dashboard>
Please post your xml.
[updated]
Try by getting the max number in query and set it in a token.
<dashboard>
<label>max number</label>
<search>
<query>
| makeresults
| eval temp="12,33,444,66"
| makemv delim="," temp
| stats max(temp) as num
</query>
<done>
<set token="max_num">$result.num$</set>
</done>
</search>
<row>
<html>
maximum number: $max_num$
</html>
</row>
</dashboard>
HI @vnravikumar , can i use where command to print the fields which of $max_num$?
I have tried it and not getting any result. My file is in json format.