{"id":22719,"date":"2024-02-15T14:48:40","date_gmt":"2024-02-15T22:48:40","guid":{"rendered":"https:\/\/docs.extraview.com\/v22\/book\/uccolumnreportinit\/"},"modified":"2024-03-05T17:48:43","modified_gmt":"2024-03-06T01:48:43","slug":"uccolumnreportinit","status":"publish","type":"page","link":"https:\/\/docs.extraview.com\/v22\/uccolumnreportinit\/","title":{"rendered":"ucColumnReportInit"},"content":{"rendered":"<h3>\n\tPurpose<\/h3>\n<p>This method is called when you execute a column report. The method is used to initialize any user custom code you require for the report<\/p>\n<h3>\n\tApplies To<\/h3>\n<p><em>Search &amp; Reporting<\/em> screens<\/p>\n<h3>\n\tSignature<\/h3>\n<pre class=\"code\">\n<code>public void ucColumnReportInit()<\/code>\n<\/pre>\n<h3>\n\tNotes<\/h3>\n<p>The method is also called when the user refreshes a report<\/p>\n<h3>\n\tExample<\/h3>\n<pre class=\"code\">\n<code>public HashMap ucModifyColumnReportRow (HashMap tags)\nthrows Exception\n{\n    \/\/ Check the report output type: only implement custom color coding scheme if\n    \/\/ output type if HTML (not for Word or Excel)\n    SesameSession session = SesameSession.getSession();\n    String outputType = (String) session.getAttribute(\"REPORT_OUTPUTTYPE\");\n    \n    if ( ! \"HTML\".equalsIgnoreCase(outputType) ) { return tags; }\n    \n    \/\/ Resource Interactive CUSTOM CODE:\n    \/\/ Set the color code according to the issue priority:\n    String priority = (String) tags.get(\"PRIORITY\");\n    \n    if (priority != null)\n    {\n        String fontColor = null;\n        \n        if ( priority.equals(\"Monday\") ) {\n            fontColor = \"#FF0000\";\n        } else if ( priority.equals(\"Tuesday\") ) {\n            fontColor = \"#CF2904\";\n        } else if ( priority.equals(\"Wednesday\") ) {\n            fontColor = \"#CF4E04\";\n        } else { \/\/ Friday or Thursday\n            fontColor = \"#000000\";\n        }\n        \n        \/\/ Iterate through all tag values and set their font color\n        Set keys = tags.keySet();\n        Iterator iterator = keys.iterator();\n\n        while (iterator.hasNext() )\n        {\n            String key = (String) iterator.next();\n            \n            \/\/ Don't change special tags (\n<h3>Purpose<\/h3>\n\n\nThis method is called when you execute a column report. The method is used to initialize any user custom code you require for the report\n\n<h3>Applies To<\/h3>\n\n\n<em>Search &amp; Reporting<\/em> screens\n\n<h3>Signature<\/h3>\n\n\n<pre class=\"code\"><code>public void ucColumnReportInit()<\/code><\/pre>\n<h3>Notes<\/h3>\n<p>The method is also called when the user refreshes a report<\/p>\n<h3>Example<\/h3>\n<pre class=\"code\"><code>public HashMap ucModifyColumnReportRow (HashMap tags)\nthrows Exception\n{\n    \/\/ Check the report output type: only implement custom color coding scheme if\n    \/\/ output type if HTML (not for Word or Excel)\n    SesameSession session = SesameSession.getSession();\n    String outputType = (String) session.getAttribute(\"REPORT_OUTPUTTYPE\");\n    \n    if ( ! \"HTML\".equalsIgnoreCase(outputType) ) { return tags; }\n    \n    \/\/ Resource Interactive CUSTOM CODE:\n    \/\/ Set the color code according to the issue priority:\n    String priority = (String) tags.get(\"PRIORITY\");\n    \n    if (priority != null)\n    {\n        String fontColor = null;\n        \n        if ( priority.equals(\"Monday\") ) {\n            fontColor = \"#FF0000\";\n        } else if ( priority.equals(\"Tuesday\") ) {\n            fontColor = \"#CF2904\";\n        } else if ( priority.equals(\"Wednesday\") ) {\n            fontColor = \"#CF4E04\";\n        } else { \/\/ Friday or Thursday\n            fontColor = \"#000000\";\n        }\n        \n        \/\/ Iterate through all tag values and set their font color\n        Set keys = tags.keySet();\n        Iterator iterator = keys.iterator();\n\n        while (iterator.hasNext() )\n        {\n            String key = (String) iterator.next();\n            \n            \/\/ Don't change special tags (e.g., $$ROWNUM_START$$, $$ROWNUM_SIZE$$)\n            \/\/ NOTE: Noticed that if changing the ID value,\n            \/\/ then an Exception is generated in the log file:\n            \n            if ( key.startsWith(\"$\") || key.equals(\"ID\") ) {\n                continue;\n            }\n            \n            String value = (String) tags.get(key);\n            tags.put(key, \" &lt; font color='\" + fontColor + \"' &gt;\" + value + \"&lt; \/font&gt;\");\n        }\n    }\n    \n    return tags;\n}<\/code><\/pre>\n<p>)<br \/>\n            \/\/ NOTE: Noticed that if changing the ID value,<br \/>\n            \/\/ then an Exception is generated in the log file:<\/p>\n<p>            if ( key.startsWith(\"$\") || key.equals(\"ID\") ) {<br \/>\n                continue;<br \/>\n            }<\/p>\n<p>            String value = (String) tags.get(key);<br \/>\n            tags.put(key, \" &lt; font color='\" + fontColor + \"' &gt;\" + value + \"&lt; \/font&gt;\");<br \/>\n        }<br \/>\n    }<\/p>\n<p>    return tags;<br \/>\n}<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Purpose This method is called when you execute a column report. The method is used to initialize any user custom code you require for the report Applies To Search &amp; Reporting screens Signature public void ucColumnReportInit() Notes The method is also called when the user refreshes a report Example public HashMap ucModifyColumnReportRow (HashMap tags) throws&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_lmt_disableupdate":"","_lmt_disable":"","_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"class_list":["post-22719","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ucColumnReportInit - Product Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.extraview.com\/v22\/uccolumnreportinit\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ucColumnReportInit - Product Documentation\" \/>\n<meta property=\"og:description\" content=\"Purpose This method is called when you execute a column report. The method is used to initialize any user custom code you require for the report Applies To Search &amp; Reporting screens Signature public void ucColumnReportInit() Notes The method is also called when the user refreshes a report Example public HashMap ucModifyColumnReportRow (HashMap tags) throws...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.extraview.com\/v22\/uccolumnreportinit\/\" \/>\n<meta property=\"og:site_name\" content=\"Product Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-06T01:48:43+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.extraview.com\/v22\/uccolumnreportinit\/\",\"url\":\"https:\/\/docs.extraview.com\/v22\/uccolumnreportinit\/\",\"name\":\"ucColumnReportInit - Product Documentation\",\"isPartOf\":{\"@id\":\"https:\/\/docs.extraview.com\/v22\/#website\"},\"datePublished\":\"2024-02-15T22:48:40+00:00\",\"dateModified\":\"2024-03-06T01:48:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/docs.extraview.com\/v22\/uccolumnreportinit\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.extraview.com\/v22\/uccolumnreportinit\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.extraview.com\/v22\/uccolumnreportinit\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.extraview.com\/v22\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ucColumnReportInit\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.extraview.com\/v22\/#website\",\"url\":\"https:\/\/docs.extraview.com\/v22\/\",\"name\":\"ExtraView Product Documentation\",\"description\":\"ExtraView Documentation\",\"publisher\":{\"@id\":\"https:\/\/docs.extraview.com\/v22\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.extraview.com\/v22\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/docs.extraview.com\/v22\/#organization\",\"name\":\"ExtraView Corporation\",\"url\":\"https:\/\/docs.extraview.com\/v22\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.extraview.com\/v22\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/docs-stg.extraview.com\/wp-content\/uploads\/2024\/03\/favicon.png\",\"contentUrl\":\"https:\/\/docs-stg.extraview.com\/wp-content\/uploads\/2024\/03\/favicon.png\",\"width\":512,\"height\":512,\"caption\":\"ExtraView Corporation\"},\"image\":{\"@id\":\"https:\/\/docs.extraview.com\/v22\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ucColumnReportInit - Product Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.extraview.com\/v22\/uccolumnreportinit\/","og_locale":"en_US","og_type":"article","og_title":"ucColumnReportInit - Product Documentation","og_description":"Purpose This method is called when you execute a column report. The method is used to initialize any user custom code you require for the report Applies To Search &amp; Reporting screens Signature public void ucColumnReportInit() Notes The method is also called when the user refreshes a report Example public HashMap ucModifyColumnReportRow (HashMap tags) throws...","og_url":"https:\/\/docs.extraview.com\/v22\/uccolumnreportinit\/","og_site_name":"Product Documentation","article_modified_time":"2024-03-06T01:48:43+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/docs.extraview.com\/v22\/uccolumnreportinit\/","url":"https:\/\/docs.extraview.com\/v22\/uccolumnreportinit\/","name":"ucColumnReportInit - Product Documentation","isPartOf":{"@id":"https:\/\/docs.extraview.com\/v22\/#website"},"datePublished":"2024-02-15T22:48:40+00:00","dateModified":"2024-03-06T01:48:43+00:00","breadcrumb":{"@id":"https:\/\/docs.extraview.com\/v22\/uccolumnreportinit\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.extraview.com\/v22\/uccolumnreportinit\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.extraview.com\/v22\/uccolumnreportinit\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.extraview.com\/v22\/"},{"@type":"ListItem","position":2,"name":"ucColumnReportInit"}]},{"@type":"WebSite","@id":"https:\/\/docs.extraview.com\/v22\/#website","url":"https:\/\/docs.extraview.com\/v22\/","name":"ExtraView Product Documentation","description":"ExtraView Documentation","publisher":{"@id":"https:\/\/docs.extraview.com\/v22\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.extraview.com\/v22\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/docs.extraview.com\/v22\/#organization","name":"ExtraView Corporation","url":"https:\/\/docs.extraview.com\/v22\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.extraview.com\/v22\/#\/schema\/logo\/image\/","url":"https:\/\/docs-stg.extraview.com\/wp-content\/uploads\/2024\/03\/favicon.png","contentUrl":"https:\/\/docs-stg.extraview.com\/wp-content\/uploads\/2024\/03\/favicon.png","width":512,"height":512,"caption":"ExtraView Corporation"},"image":{"@id":"https:\/\/docs.extraview.com\/v22\/#\/schema\/logo\/image\/"}}]}},"taxonomy_info":[],"featured_image_src_large":false,"author_info":{"display_name":"carl.koppel","author_link":"https:\/\/docs.extraview.com\/v22\/author\/carl-koppel\/"},"comment_info":0,"_links":{"self":[{"href":"https:\/\/docs.extraview.com\/v22\/wp-json\/wp\/v2\/pages\/22719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.extraview.com\/v22\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.extraview.com\/v22\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.extraview.com\/v22\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.extraview.com\/v22\/wp-json\/wp\/v2\/comments?post=22719"}],"version-history":[{"count":0,"href":"https:\/\/docs.extraview.com\/v22\/wp-json\/wp\/v2\/pages\/22719\/revisions"}],"wp:attachment":[{"href":"https:\/\/docs.extraview.com\/v22\/wp-json\/wp\/v2\/media?parent=22719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}