{"id":3609,"date":"2016-06-25T03:01:50","date_gmt":"2016-06-24T19:01:50","guid":{"rendered":"http:\/\/www.finereport.com\/en\/?p=3609"},"modified":"2019-10-24T14:48:09","modified_gmt":"2019-10-24T06:48:09","slug":"set-report-filling-attribute","status":"publish","type":"post","link":"https:\/\/frg.fineres.com\/en\/2016\/06\/25\/set-report-filling-attribute\/","title":{"rendered":"Set Report Filling Attribute"},"content":{"rendered":"<p>We will introduce how to set report filling attribute of FineReport <a title=\"reporting software\" href=\"\/en\/\" target=\"_blank\"><span style=\"color: blue;\">reporting software<\/span><\/a> in this article.<\/p>\n<h3>1. Description<\/h3>\n<p>To set report filling attributes, you need to bind the report body cell to the data table field to guarantee one-to-one correspondence of cell data and database field for data entry at the time of data submission.<\/p>\n<h3>2. Set Report Filling Attribute<\/h3>\n<p>Click Template &gt; Report Filling Attribute. Click <img src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/201662212.png\" alt=\"\" \/>button and select built-in SQL. Set Submit Type as default Intelligent Submission, and Database as FineReport built-in FRDemo Database. Enter the data to the Employee Table of the database, as shown below:<\/p>\n<p><img class=\"aligncenter\" src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/20166228.png\" alt=\"\" \/><\/p>\n<p><strong>2.1 Bind field<\/strong><\/p>\n<p><strong>Intelligently add field<\/strong><\/p>\n<p>Click Intelligently Add Field to pop up the dialog that lists all fields in the data table. Check the field requiring data change. By default, check all fields. In this case, use Default Setting and click OK to add all fields in the database to the panel for cell binding, as shown below:<\/p>\n<p><img class=\"aligncenter\" src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/20166229.png\" alt=\"\" \/><\/p>\n<p><strong>Intelligently add cell<\/strong><\/p>\n<p>After adding of database field, the next step is to add cell. Click Intelligently Add Cell to pop up Add Cell dialog, which is displayed in the report body. Directly click the cells in the report body and you can bind cells for specific fields. In case of add error, select the value text box after specific field in the dialog box, then click correct cell, as shown below:<\/p>\n<p><img class=\"aligncenter\" src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/201662210.png\" alt=\"\" \/><\/p>\n<p><strong>Primary key setting<\/strong><\/p>\n<p>After data table fields and cells are added and correspond to each after, check the primary key. As Employee ID field is the primary key in the Employee Table, also check Employee ID as the primary key in the Report Filling Attribute, as shown below:<\/p>\n<p><img class=\"aligncenter\" src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/201662211.png\" alt=\"\" \/><\/p>\n<p>For detailed settings of report filling attribute, refer to <span style=\"color: blue;\">Report Filling Attribute<\/span>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We will introduce how to set report filling attribute o&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[111],"tags":[117],"_links":{"self":[{"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/posts\/3609"}],"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=3609"}],"version-history":[{"count":4,"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/posts\/3609\/revisions"}],"predecessor-version":[{"id":8491,"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/posts\/3609\/revisions\/8491"}],"wp:attachment":[{"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/media?parent=3609"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/categories?post=3609"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/tags?post=3609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}