ucModifyColumn ReportRow
Purpose
ucModifyColumnReportRow is used to modify the results displayed on each row of a column report.
Applies To
Search & Reporting screens
Signature
public HashMap ucModifyColumnReportRow(HashMap tags) throws Exception
Notes
A hashmap of the results is passed into the method, for each row of the result set. The hashmap contains all the objects to be displayed on the report, with the data dictionary name being the key to each entry. You may modify any of the entries in the hashmap and then return the hashmap to be processed by the report renderer.
Example
public HashMap ucModifyColumnReportRow (HashMap tags)
throws Exception {
if (tags.containsKey("TIME_CRITICAL") ||
tags.containsKey("TIME_HIGH") ||
tags.containsKey("TIME_MEDIUM") ||
tags.containsKey("TIME_LOW") ||
tags.containsKey("TIME_TOTAL") ||
tags.containsKey("CUSTOMER_TIME_CRITICAL") ||
tags.containsKey("CUSTOMER_TIME_HIGH") ||
tags.containsKey("CUSTOMER_TIME_MEDIUM") ||
tags.containsKey("CUSTOMER_TIME_LOW") ||
tags.containsKey("CUSTOMER_TIME_TOTAL") )
{
HashMap oldTags = (HashMap) tags.clone();
calculateCustomerTimes(tags);
formatTags ("TIME_CRITICAL", tags, oldTags);
formatTags ("TIME_HIGH", tags, oldTags);
formatTags ("TIME_MEDIUM", tags, oldTags);
formatTags ("TIME_LOW", tags, oldTags);
formatTags ("TIME_TOTAL", tags, oldTags);
formatTags ("CUSTOMER_TIME_CRITICAL", tags, oldTags);
formatTags ("CUSTOMER_TIME_HIGH", tags, oldTags);
formatTags ("CUSTOMER_TIME_MEDIUM", tags, oldTags);
formatTags ("CUSTOMER_TIME_LOW", tags, oldTags);
formatTags ("CUSTOMER_TIME_TOTAL", tags, oldTags);
}
return tags;
}