How to change the title name when selecting data in the drop-down box
When selecting 201808, the name of the title is 8 month of project pfee.
When choosing 201807, the name of the title is 7 month of project pfee, and so on.
@flzhang132,
Added to the previous dashboard example :
<form>
<init>
<eval token="prev_month">strftime(relative_time(now(),"-1mon"),"%Y%m")</eval>
</init>
<fieldset submitButton="false">
<input type="dropdown" token="ymmon">
<label>Date</label>
<choice value="ym201801">201801</choice>
<choice value="ym201802">201802</choice>
<choice value="ym201803">201803</choice>
<choice value="ym201804">201804</choice>
<choice value="ym201805">201805</choice>
<choice value="ym201806">201806</choice>
<choice value="ym201807">201807</choice>
<choice value="ym201808">201808</choice>
<choice value="ym201809">201809</choice>
<choice value="ym201810">201810</choice>
<default>$prev_month$</default>
<initialValue>$prev_month$</initialValue>
<change>
<eval token="mon_number">strftime(strptime($value$,"%Y%m"),"%m")</eval>
</change>
</input>
</fieldset>
<row>
<panel>
<title>$mon_number$ months of project fee</title>
<table>
<search>
<query>| makeresults|eval value="Some Project Values"</query>
<earliest>-15m</earliest>
<latest>now</latest>
</search>
<option name="drilldown">none</option>
</table>
</panel>
</row>
</form>
@flzhang132,
Added to the previous dashboard example :
<form>
<init>
<eval token="prev_month">strftime(relative_time(now(),"-1mon"),"%Y%m")</eval>
</init>
<fieldset submitButton="false">
<input type="dropdown" token="ymmon">
<label>Date</label>
<choice value="ym201801">201801</choice>
<choice value="ym201802">201802</choice>
<choice value="ym201803">201803</choice>
<choice value="ym201804">201804</choice>
<choice value="ym201805">201805</choice>
<choice value="ym201806">201806</choice>
<choice value="ym201807">201807</choice>
<choice value="ym201808">201808</choice>
<choice value="ym201809">201809</choice>
<choice value="ym201810">201810</choice>
<default>$prev_month$</default>
<initialValue>$prev_month$</initialValue>
<change>
<eval token="mon_number">strftime(strptime($value$,"%Y%m"),"%m")</eval>
</change>
</input>
</fieldset>
<row>
<panel>
<title>$mon_number$ months of project fee</title>
<table>
<search>
<query>| makeresults|eval value="Some Project Values"</query>
<earliest>-15m</earliest>
<latest>now</latest>
</search>
<option name="drilldown">none</option>
</table>
</panel>
</row>
</form>