{"id":1955,"date":"2010-07-05T15:42:53","date_gmt":"2010-07-05T07:42:53","guid":{"rendered":"http:\/\/www.finereport.com\/CN\/wordpress\/knowledge\/design\/finereport%e4%b8%ad%e6%98%be%e7%a4%ba%e6%a0%bc%e5%bc%8f%e5%92%8c%e6%98%be%e7%a4%ba%e5%80%bc%e7%9a%84%e8%ae%be%e7%bd%ae.html"},"modified":"2018-09-11T19:41:21","modified_gmt":"2018-09-11T11:41:21","slug":"display","status":"publish","type":"post","link":"https:\/\/frg.fineres.com\/en\/2010\/07\/05\/display\/","title":{"rendered":"Display format and display values setting"},"content":{"rendered":"<table class=\"centered\" border=\"1\">\n<tr>\n<th>Number<\/th>\n<th>Name<\/th>\n<th>Date of Birth<\/th>\n<th>Gende<\/th>\n<th>Qualification<\/th>\n<th>Scholarship<\/th>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>Nancy<\/td>\n<td>1948-12-08<\/td>\n<td>M<\/td>\n<td>Middle<\/td>\n<td>\uffe52000.00<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>Andrew<\/td>\n<td>1952-02-19<\/td>\n<td>F<\/td>\n<td>High School<\/td>\n<td>\uffe53000.00<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>Janet<\/td>\n<td>1963-08-30<\/td>\n<td>M<\/td>\n<td>Middle<\/td>\n<td>\uffe52500.00<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>Margaret<\/td>\n<td>1937-09-19<\/td>\n<td>\u5973<\/td>\n<td>College<\/td>\n<td>\uffe52600.00<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>Steven<\/td>\n<td>1955-03-04<\/td>\n<td>F<\/td>\n<td>Junior<\/td>\n<td>\uffe52100.00<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>Michael<\/td>\n<td>1963-07-02<\/td>\n<td>F<\/td>\n<td>Master<\/td>\n<td>\uffe53500.00<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>Robert<\/td>\n<td>1960-05-29<\/td>\n<td>F<\/td>\n<td>Junior<\/td>\n<td>\uffe52900.00<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>Laura<\/td>\n<td>1958-01-29<\/td>\n<td>M<\/td>\n<td>College<\/td>\n<td>\uffe51800.00<\/td>\n<\/tr>\n<tr>\n<td>9<\/td>\n<td>Anne<\/td>\n<td>1966-01-27<\/td>\n<td>M<\/td>\n<td>Junior<\/td>\n<td>\uffe52200.00<\/td>\n<\/tr>\n<tr>\n<td>10<\/td>\n<td>Chris<\/td>\n<td>1970-09-18<\/td>\n<td>F<\/td>\n<td>Junior<\/td>\n<td>\uffe52300.00<\/td>\n<\/tr>\n<\/table>\n<p><!--more--><\/p>\n<p>As shown, the display format and display values\u200b\u200b, make the report more readable enhancements, more beautiful.<\/p>\n<p><strong>Here we look at the process of using <a href=\"http:\/\/www.finereport.com\/en\/products\" title=\"java reporting tools\">java reporting tools<\/a> FineReport achieve the above statements.<\/strong>\u3002<\/p>\n<p><strong>1.Connect database frDemo<\/strong><\/p>\n<p><strong>2.Design Report<\/strong><\/p>\n<p>2.1 New Report <\/p>\n<p>2.2 Meter sample design<br \/>\nThe basic framework of the following diagram design good report.<\/p>\n<p><img loading=\"lazy\" class=\"centered\" src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/display1.jpg\" alt=\"basic framework \" width=\"478\" height=\"85\" \/><\/p>\n<p>Create a data set called emp_sql<br \/>\nSQL statements\uff1aselect empid,empname,birthday,sex,degree,bonous from employee<\/p>\n<p>2.4 Binding data columns<\/p>\n<p><img loading=\"lazy\" class=\"centered\" src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/display2.jpg\" alt=\"Binding data columns\" width=\"468\" height=\"61\" \/><br \/>\nFollow these forms will be dragged into the field data sets corresponding statements within the cell, and make the appropriate settings.<\/p>\n<table class=\"centered\" border=\"1\">\n<tbody>\n<tr>\n<td width=\"64\" valign=\"top\">cell<\/td>\n<td width=\"132\" valign=\"top\">Contents<\/td>\n<td width=\"372\" valign=\"top\">The basic property settings<\/td>\n<\/tr>\n<tr>\n<td width=\"64\" valign=\"top\">A2<\/td>\n<td width=\"132\" valign=\"top\">emp_sql.EMPID<\/td>\n<td width=\"372\" valign=\"top\"><strong>Extend from top to bottom<\/strong>\uff0ccenter, and the remaining default<\/td>\n<\/tr>\n<tr>\n<td width=\"64\" valign=\"top\">B2<\/td>\n<td width=\"132\" valign=\"top\">emp_sql.EMPNAME<\/td>\n<td width=\"372\" valign=\"top\"><strong>Extend from top to bottom<\/strong>\uff0ccenter, and the remaining default<\/td>\n<\/tr>\n<tr>\n<td width=\"64\" valign=\"top\">C2<\/td>\n<td width=\"132\" valign=\"top\">emp_sql.BIRTHDAY<\/td>\n<td width=\"372\" valign=\"top\"><strong>Extend from top to bottom<\/strong>\uff0ccenter, and the remaining default<\/td>\n<\/tr>\n<tr>\n<td width=\"64\" valign=\"top\">D2<\/td>\n<td width=\"132\" valign=\"top\">emp_sql.SEX<\/td>\n<td width=\"372\" valign=\"top\"><strong>Extend from top to bottom<\/strong>\uff0ccenter, and the remaining default<\/td>\n<\/tr>\n<tr>\n<td width=\"64\" valign=\"top\">E2<\/td>\n<td width=\"132\" valign=\"top\">emp_sql.DEGREE<\/td>\n<td width=\"372\" valign=\"top\"><strong>Extend from top to bottom<\/strong>\uff0ccenter, and the remaining default<\/td>\n<\/tr>\n<tr>\n<td width=\"64\" valign=\"top\">F2<\/td>\n<td width=\"132\" valign=\"top\">emp_sql.BONUS<\/td>\n<td width=\"372\" valign=\"top\"><strong>Extend from top to bottom<\/strong>\uff0ccenter, and the remaining default<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>3.Display Format Sets<\/strong><\/p>\n<ul>\n<li>Date field displays the set format\n<p><strong>Right-click the cell C2 | Style | Date<\/strong>\uff0cselect yyyy-MM-dd format (pictured), and click OK<br \/>\n<img class=\"centered\" src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/display3.jpg\" alt=\"Date style\"><\/li>\n<li>bonus field shows the format Setting<br \/>\n<strong>cell F2 is set right click | Style | currency<\/strong>\uff0cselect the display format for \u00a5 12345.68 (eg ), click OK <\/li>\n<p><img class=\"centered\" src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/display4.jpg\" alt=\"currency style\"><\/ul>\n<ul>\n<li>Show value setting<\/li>\n<li>Gender field displays the value setting\n<p>Double-click the cell D2 cell data column settings pop-up box, click Advanced, enter if in a custom display value ($$$ == 1, &#8216;male&#8217;, &#8216;female&#8217;), and click OK. <strong>If (condition value 1 value 2)<\/strong>\uff1aIf the condition is satisfied, equal to the value 1. If not satisfied, equal to the value 2<\/li>\n<p><img class=\"centered\" src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/display5.jpg\" alt=\"Gender field displays the value setting\"><\/p>\n<li>Setting academic field displays values\n<p>To add data collection <strong>deg_sql<\/strong><strong>SQL statement<\/strong>\uff1aselect ID,name from degrees<strong>E2 cell right-click | Form | Data Dictionary | data query<\/strong>\uff0cdata set name selection deg_sql report dataset under column number (actual value) is set to 1, the column number (display value) to 2 (Fig. 1), preview (Figure 2), and click OK. <strong>Column number (actual value)<\/strong> is encoded in the <a href=\"http:\/\/www.finereport.com\/knowledge\/design\" title=\"report design \">report design<\/a> field where the column number is displayed, that is to be placed among the field to a report in the report design. <\/p>\n<p><strong>Column number (displayed value)<\/strong> is represented by the actual data encoding where the column number, which is then converted by the data dictionary, the actual data when the report preview to see.<\/li>\n<p><img class=\"centered\" src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/display6.jpg\" alt=\"Define data dictionary\" ><\/p>\n<\/ul>\n<p><strong>4.Save Preview <\/strong><\/p>\n<p>Save as:<br \/>\n<em>%FineReport_HOME%\/WebReport\/WEB-INF\/reportlets\/com\/doc\/3.2.cpt<\/em><\/p>\n<p>Start the Report Server, enter the following address in your browser to browse: <br \/>\n<em>http:\/\/localhost:8079\/WebReport\/ReportServer?reportlet=\/com\/doc\/3.2.cpt<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Number Name Date of Birth Gende Qualification Scholarsh&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[111],"tags":[117],"_links":{"self":[{"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/posts\/1955"}],"collection":[{"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/comments?post=1955"}],"version-history":[{"count":1,"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/posts\/1955\/revisions"}],"predecessor-version":[{"id":4750,"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/posts\/1955\/revisions\/4750"}],"wp:attachment":[{"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/media?parent=1955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/categories?post=1955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/tags?post=1955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}