Where does the ExcludeDays parameter get set in Burndown Report?
In looking at the Javascript code that is embedded in and used by the Burndown rptdesign file, I see a couple of instances of "ExcludeDays" being used in IF statements, indicating that it can be used as a boolean value. I cannot find where it is being set. It would appear that it is tied to the report parameter "Week Days" where one can select on of the days of the week to restrict which days of the week are included in the report. From this it would appear that if you select any one, or more of the Week Day values, it will set ExcludeDays to TRUE, otherwise it is false.
|
One answer
You probably don't need others to confirm for you. The only place that the excludeDays variable is set is in the "initialize" function of the report. I agree with your reasoning.
<method name="initialize"><![CDATA[function replaceAll(str, src, dst) { Comments
Ryan McBryde
commented Feb 15 '17, 4:45 p.m.
Donald, Thanks. Where are you finding that "initialize" code? I found that in the "OnRender" function of the chart itself that this code is apparently setting "ExcludeDays" to TRUE as well as setting the "startDate", "firstDate", and the other date parameters from the global variables (getGlobalVariable) set in the data set code
Ryan McBryde
commented Feb 15 '17, 5:16 p.m.
As far as you know does that code to do the following:
Set "d" to the value of whatever was selected in the "Week Days" report parameter.
Sets "ExcludeDays" to False.
WeekDays to NULL
if "d" exists and "d" is not empty THEN
set weekDays to the result of splitting "d" on a comma (if more than one day in "d" then WeekDays will be more than 1. If only one day in "d" then Weekdays will be 1.
check to see if Weekdays is equal to 0 or 7 and if either, 0 = no days selected, 7 = all days selected, then set weekDays to NULL ELSE set ExcludeDays to TRUE (indicating that at least one day and less than 7 days were selected.
Donald Nong
commented Feb 16 '17, 12:11 a.m.
I would say your interpretation of the code is correct.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.