Changes between Version 7 and Version 8 of Ticket #505, comment 9


Ignore:
Timestamp:
Sep 20, 2013, 3:54:17 PM (6 years ago)
Author:
olle
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #505, comment 9

    v7 v8  
    99 * New function `tableAlternativesOnChange()` is called when the table alternatives value changes, and enables the "Blood sample filter" pop-up menu when the table alternatives is changed to "1 table with optional blood sample filter" (which is not the default). If the table alternatives is changed to an option different from "1 table with optional blood sample filter", the "Blood sample filter" pop-up menu is reset and disabled again.
    1010 * function `goCreate()` is updated to add the values of pop-up menus "Table alternatives" and "Blood sample filter" to the Ajax servlet requests for the affected reports. The servlet copies the values to the returned JSON object, in order for them to be available to the script functions creating the tables.
    11  * Function `goCreate()` is updated to add 8 extra tables for the sample count report, if "Table alternatives" equals "9 tables with different blood sample choices". The extra tables are added analogously to the extra tables for the consent and overview reports. The extra reports are created by calling function `createItemCountReport(report, reportType)` with different report data for the first argument. In order to avoid a major rewrite of the latter function, JSON data for the new reports are added as child items to the original report object, with a name key identifying the type of report. As function `createItemCountReport(report, reportType)` calls function `addDataRowsToTable(report, reportTable)`, which sets values of global variables `unknownCreation` and `unknownSite` from the report data given as argument to the former function, a side effect is that these two variables will have values for the last processed report data. To avoid this, the values are reset to that of the unfiltered data, before the summary section, where the values are reported.
     11 * Function `goCreate()` is updated to add 8 extra tables for the sample count report, if "Table alternatives" equals "9 tables with different blood sample choices". The extra tables are added analogously to the extra tables for the consent and overview reports. The extra reports are created by calling function `createItemCountReport(report, reportType)` with different report data for the first argument. In order to avoid a major rewrite of the latter function, JSON data for the new reports are added as child items to the original report object, with a name key identifying the type of report. As function `createItemCountReport(report, reportType)` calls function `addDataRowsToTable(report, reportTable)`, which sets values of global variables `unknownCreation` and `unknownSite` from the report data given as argument to the former function, a side effect is that these two variables will have values for the last processed report data. To avoid this, the values are reset to that of the unfiltered data before creation of the summary section, where the values are reported.
    1212 * Functions `createItemCountReport(report, reportType)`, `createOverviewReport(report)`, and `createMissingSampleDataReport(report)` are updated to display the value of a blood sample type filter in the table header text, if a filter is used.
    1313 * Functions `createOverviewReport(report)` and ` addDataRowsToOverviewTable(report, reportTable)` are updated to add a column for "Blood samples follow-up" data.