{"id":14108,"date":"2018-05-08T15:57:24","date_gmt":"2018-05-08T15:57:24","guid":{"rendered":"https:\/\/kb.sambapos.com\/?p=14108"},"modified":"2018-05-08T15:57:24","modified_gmt":"2018-05-08T15:57:24","slug":"9-1-8-custom-report-viewer-widget","status":"publish","type":"post","link":"https:\/\/kb.sambapos.com\/en\/9-1-8-custom-report-viewer-widget\/","title":{"rendered":"9.1.8. Custom Report Viewer Widget"},"content":{"rendered":"<p>You can add custom reports inside a Custom Entity Screen by using a Custom Report Viewer Widget.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14111 \" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/05\/9-1-8-Custom-Report-Viewer-Widget-01.jpg\" alt=\"\" width=\"639\" height=\"428\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/05\/9-1-8-Custom-Report-Viewer-Widget-01.jpg 987w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/05\/9-1-8-Custom-Report-Viewer-Widget-01-300x201.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/05\/9-1-8-Custom-Report-Viewer-Widget-01-768x515.jpg 768w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/p>\n<p>After adding widget in custom entity screen click\u00a0<code>Settings<\/code>\u00a0context menu item to edit settings.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14113 \" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/05\/9-1-8-Custom-Report-Viewer-Widget-02.jpg\" alt=\"\" width=\"400\" height=\"424\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/05\/9-1-8-Custom-Report-Viewer-Widget-02.jpg 625w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/05\/9-1-8-Custom-Report-Viewer-Widget-02-283x300.jpg 283w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>You can select a custom report from\u00a0<code>Report Name<\/code>\u00a0combo box. Setting a\u00a0<code>Border<\/code>\u00a0for report or changing\u00a0<code>Zoom Ratio<\/code>\u00a0is also possible. For using\u00a0<strong>Setting Mappings<\/strong>\u00a0feature you can review\u00a0<a class=\"wikilink1\" title=\"custom_report_table_views\" href=\"https:\/\/sambapos.com\/wiki\/doku.php\/custom_report_table_views#custom_report_widget_settings_for_table_view\">Custom Report Widget Settings for Table View<\/a>\u00a0section.<\/p>\n<p>Widget displays reports in current work period by default. To change default date range for the widget you can append a date setting to report name with a colon character.<\/p>\n<p>For example setting report name as\u00a0<code>My Report:Yesterday<\/code>\u00a0will display report by using Yesterday&#8217;s date. These are the available values that can be used as date filter.<\/p>\n<table style=\"height: 120px;\" width=\"709\">\n<tbody>\n<tr>\n<td style=\"width: 699px;\">\n<table class=\"inline\">\n<tbody>\n<tr class=\"row0\">\n<td class=\"col0\">This Month<\/td>\n<td class=\"col1\"><\/td>\n<\/tr>\n<tr class=\"row1\">\n<td class=\"col0\">Past Month<\/td>\n<td class=\"col1\"><\/td>\n<\/tr>\n<tr class=\"row2\">\n<td class=\"col0\">This Week<\/td>\n<td class=\"col1\"><\/td>\n<\/tr>\n<tr class=\"row3\">\n<td class=\"col0\">Past Week<\/td>\n<td class=\"col1\"><\/td>\n<\/tr>\n<tr class=\"row4\">\n<td class=\"col0\">Today<\/td>\n<td class=\"col1\"><\/td>\n<\/tr>\n<tr class=\"row5\">\n<td class=\"col0\">Yesterday<\/td>\n<td class=\"col1\"><\/td>\n<\/tr>\n<tr class=\"row6\">\n<td class=\"col0\">Workperiod<\/td>\n<td class=\"col1\"><\/td>\n<\/tr>\n<tr class=\"row7\">\n<td class=\"col0 leftalign\">Last 10 days.<\/td>\n<td class=\"col1\">&gt; You can change 10 days value.<\/td>\n<\/tr>\n<tr class=\"row8\">\n<td class=\"col0 leftalign\">Next 10 days.<\/td>\n<td class=\"col1\">&gt; You can change 10 days value.<\/td>\n<\/tr>\n<tr class=\"row9\">\n<td class=\"col0 leftalign\">1 1 2010 &lt;&gt; 10 1 2010<\/td>\n<td class=\"col1\">&gt; You can configure a date range by using &lt;&gt; chars.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can add custom reports inside a Custom Entity Screen by using a Custom Report Viewer Widget. After adding widget in custom entity screen click\u00a0Settings\u00a0context menu item to edit settings. You can select a custom report from\u00a0Report Name\u00a0combo box. Setting a\u00a0Border\u00a0for report or changing\u00a0Zoom Ratio\u00a0is also possible. For using\u00a0Setting Mappings\u00a0feature you can review\u00a0Custom Report Widget [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-14108","post","type-post","status-publish","format-standard","hentry","category-reports"],"_links":{"self":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts\/14108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/comments?post=14108"}],"version-history":[{"count":1,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts\/14108\/revisions"}],"predecessor-version":[{"id":14115,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts\/14108\/revisions\/14115"}],"wp:attachment":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/media?parent=14108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/categories?post=14108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/tags?post=14108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}