This is a continuation of this question:
Which has been archived without warning because I was too busy to dig around in code for someone who was promising to resolve the issue. Although I don’t see how the code requested would have helped.
A tldr of the original question, which still has no answer is: Is there a way to auto-refresh data in a parameter based upon the results in a calculated field. The calculated field in question just puts the date of the nearest Monday in the past to the date of a sensor reading so that we can allow people to see data for a week commencing from a Monday.
The calculated field is defined thus:
formatDate(addDateTime(
1,
'DD',
truncDate(
'WK',
ifelse(
extract(
'WD',
date
) = 1,
addDateTime(
-1,
'DD',
date
),
date
)
)
), 'yyyy/MM/dd')
If you set a parameter to contain all unique values in the column that contains this calculated field then it will work when you first create it but every week (or few weeks) you have to select “Refresh” from the control settings menu (the three vertical dots in the upper right of the controls container) to add the weeks that have passed since.
I just want to know if there’s a way to automate the refresh.
TIA