{"id":3568,"date":"2016-06-16T03:00:35","date_gmt":"2016-06-15T19:00:35","guid":{"rendered":"http:\/\/www.finereport.com\/en\/?p=3568"},"modified":"2019-10-24T14:47:39","modified_gmt":"2019-10-24T06:47:39","slug":"global-parameter","status":"publish","type":"post","link":"https:\/\/frg.fineres.com\/en\/2016\/06\/16\/global-parameter\/","title":{"rendered":"What is Global Parameter?"},"content":{"rendered":"<p>In this article, we are going to study the global parameter of <a href=\"http:\/\/www.finereport.com\/en\/\" target=\"_blank\"><span style=\"color: blue;\">reporting tool<\/span><\/a>. <\/p>\n<h3>1. Description<\/h3>\n<p>Global parameter, as the name suggests, is a parameter applied globally with similar working principle to <span style=\"color: blue;\">Template Parameter<\/span>.<\/p>\n<h3>2. Creating steps<\/h3>\n<p><strong>2.1 Define global parameter<\/strong><\/p>\n<p>Directly click <span style=\"color: purple;\">Server &gt; Global Parameter<\/span> menu in our <a title=\"FineReport BI and reporting tool report designer\" href=\"http:\/\/www.finereport.com\/en\/features\/report-designer\" target=\"_blank\">report designer<\/a> to add an area parameter default as \u201cNorth China\u201d, as shown below:<\/p>\n<p><img class=\"aligncenter\" src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/201661407.png\" alt=\"\" \/><\/p>\n<p><span style=\"color: red;\">Note: Global parameters will be saved in config.xml under project.<\/span><\/p>\n<p><strong>2.2 Open reports<\/strong><\/p>\n<p><strong>2.3 Set parameter filter<\/strong><\/p>\n<p>Double click the Area data column cell, and click Filter tab. Select Parameter option in the Value area and you can see a parameter named \u201carea\u201d in the drop-down box. Select it and click Add, as shown below:<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter\" src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/201661408.png\" alt=\"\" width=\"692\" height=\"309\" \/><\/p>\n<p><span style=\"color: red;\">Note: Though global parameter \u201carea\u201d is not created in current template, it can be directly called in the template.<\/span><\/p>\n<p><strong>2.4 Create parameter interface<\/strong><\/p>\n<p>Click the Pen at the Parameter Module to make the Parameter Interface in an editable status. At the right bottom corner of the Parameter Interface will display the parameter names with no control and the global parameters, as shown below:<\/p>\n<p><img class=\"aligncenter\" src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/201661409.png\" alt=\"\" \/><\/p>\n<p>Click Add All to set the Parameter Interface, as shown below:<\/p>\n<p><img class=\"aligncenter\" src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/201661410.png\" alt=\"\" \/><\/p>\n<p><strong>2.5 Save and issue reports<\/strong><\/p>\n<p>Save report and take a page break preview. The default Parameter Value is \u201cNorth China\u201d. Directly click Query to query the data of North China.<\/p>\n<p><img class=\"aligncenter\" src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/201661411.png\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we are going to study the global param&#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\/3568"}],"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=3568"}],"version-history":[{"count":6,"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/posts\/3568\/revisions"}],"predecessor-version":[{"id":8477,"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/posts\/3568\/revisions\/8477"}],"wp:attachment":[{"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/media?parent=3568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/categories?post=3568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frg.fineres.com\/en\/wp-json\/wp\/v2\/tags?post=3568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}