{"id":20323,"date":"2020-07-31T12:14:08","date_gmt":"2020-07-31T12:14:08","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=20323"},"modified":"2022-10-11T05:36:54","modified_gmt":"2022-10-11T05:36:54","slug":"how-to-add-checkbox-in-crystal-report","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2020\/07\/31\/how-to-add-checkbox-in-crystal-report\/","title":{"rendered":"How to add checkbox in Crystal Report"},"content":{"rendered":"\n<p>There are many instances when client wants to give multiple copies of the invoices to their customers, where they must segregate multiple copies into original and duplicate. So we have given option on the report for those client where at the header part Original and Duplicate check boxes are given. So if the specific invoice is printing for the first time then Original checkbox should be ticked and if it is printing for more than once then the checkbox for duplicate should be ticked.<\/p>\n\n\n\n<p>To achieve this working in Crystal report please refer the below steps:<\/p>\n\n\n\n<p><strong>Step 1:-<\/strong><br>Create subreport using below SQL query and add that subreport into main report.<br>For example, your report code is ZSINVOICE i.e. for Sales Invoice Report. Add our subreport in this main report.<\/p>\n\n\n\n<p>Refer below screenshot for SQL Query snippet:-<\/p>\n\n\n\n<p><strong>New Stuff:<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2020\/07\/01\/how-to-solve-if-new-field-added-in-inquiry-screen-and-still-not-visible-after-global-validation-of-window\/\">How to solve if new field added in inquiry screen and still not visible after global validation of window<\/a><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/07\/script1.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"273\" height=\"140\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/07\/script1.png\" alt=\"\" class=\"wp-image-20345\"\/><\/a><figcaption>Sample Script<\/figcaption><\/figure><\/div>\n\n\n\n<p>Where variable \u201cNUMDEB\u201d holds the Invoice Number and variable \u201cFOLDER\u201d holds the name of the Sage X3 folder in which you are working.<\/p>\n\n\n\n<p><strong>Step 2:-<\/strong><br>Insert 2 ticked and 2 unticked check box images in report headers like below screenshot:-<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/07\/report-header.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img fetchpriority=\"high\" decoding=\"async\" width=\"383\" height=\"131\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/07\/report-header.png\" alt=\"\" class=\"wp-image-20326\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/07\/report-header.png 383w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/07\/report-header-300x103.png 300w\" sizes=\"(max-width: 383px) 100vw, 383px\" \/><\/a><figcaption>Sample Report header<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>Step 3:-<\/strong><br>Add suppress condition for both of the header sections using Section Expert.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/07\/report-header-section-1.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"628\" height=\"364\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/07\/report-header-section-1.png\" alt=\"\" class=\"wp-image-20327\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/07\/report-header-section-1.png 628w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/07\/report-header-section-1-300x174.png 300w\" sizes=\"(max-width: 628px) 100vw, 628px\" \/><\/a><figcaption>Report header section<\/figcaption><\/figure><\/div>\n\n\n\n<p>Below is the Condition for \u2018Report header a\u2019 section :-<br><strong>{Command.COUNT}=1<\/strong><\/p>\n\n\n\n<p>Below is the Condition for \u2018Report header b\u2019 section :-<br><strong>{Command.COUNT}&lt;&gt;1<\/strong><\/p>\n\n\n\n<p>Whenever user tries to print the Sales Invoice report from Sage X3, it will show checkbox ticked based on the counter. <\/p>\n\n\n\n<p>Refer below screenshot of the sample output.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/07\/Sample-report-output.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"516\" height=\"190\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/07\/Sample-report-output.png\" alt=\"\" class=\"wp-image-20328\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/07\/Sample-report-output.png 516w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/07\/Sample-report-output-300x110.png 300w\" sizes=\"(max-width: 516px) 100vw, 516px\" \/><\/a><figcaption>Sample report output<\/figcaption><\/figure><\/div>\n\n\n\n<p>In this way anyone can identify whether the invoice copy is original or duplicate by looking at checkbox.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-color has-link-color wp-elements-c5e1638fe0db781fd132d689b469078c\" style=\"color:#c71d22\"><strong>About Us<\/strong><\/h2>\n\n\n\n<p>Greytrix \u2013 a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience and expertise, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation competence.<\/p>\n\n\n\n<p id=\"block-28013e99-0882-44c6-b705-7b16c85053b2\">Greytrix&nbsp;has some unique integration solutions developed for&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-crm\/\">Sage CRM<\/a>&nbsp;with Sage ERPs&nbsp;namely&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-x3-erp\/\">Sage X3<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-intacct\/\">Sage Intacct<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-100-erp\/\">Sage 100<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-500-erp\/\">Sage 500<\/a>,&nbsp;and&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-300-erp\/\">Sage 300<\/a>. We also offer best-in-class&nbsp;Sage ERP&nbsp;and&nbsp;Sage CRM&nbsp;customization and development services&nbsp;to&nbsp;Business&nbsp;Partners,&nbsp;End&nbsp;Users, and Sage PSG worldwide. Greytrix&nbsp;helps in&nbsp;the migration of Sage CRM from&nbsp;Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes&nbsp;addons like&nbsp;&nbsp;Greytrix Business Manager,&nbsp;Sage CRM Project Manager,&nbsp;Sage CRM Resource Planner,&nbsp;Sage CRM Contract Manager,&nbsp;Sage CRM Event Manager,&nbsp;Sage CRM Budget Planner,&nbsp;Gmail Integration,&nbsp;Sage CRM Mobile Service Signature,&nbsp;Sage CRM CTI Framework.<\/p>\n\n\n\n<p id=\"block-4bc42a09-fb13-4598-8137-ce5f7b91ce28\">Greytrix is a recognized&nbsp;Sage Champion Partner&nbsp;for GUMU&#x2122; Sage X3 \u2013 Sage CRM integration listed on&nbsp;<a href=\"https:\/\/www.sage.com\/marketplace\/asb_ListingDetail?listingId=a1h24000007PC3aAAG\" target=\"_blank\" rel=\"noreferrer noopener\">Sage Marketplace<\/a>&nbsp;and Sage CRM \u2013 Sage Intacct integration listed on&nbsp;<a href=\"https:\/\/marketplace.intacct.com\/MPListing?lid=a2D0H000007kiHyUAI\" target=\"_blank\" rel=\"noreferrer noopener\">Sage Intacct Marketplace<\/a>. The&nbsp;<a href=\"https:\/\/www.greytrix.com\/gumu\/\" target=\"_blank\" rel=\"noreferrer noopener\">GUMU&#x2122; Cloud framework<\/a>&nbsp;by Greytrix forms the backbone of cloud integrations that are managed in real-time for the processing and execution of application programs at the click of a button.<\/p>\n\n\n\n<p id=\"block-76376301-1c3e-4250-8a09-727595a606f0\">For more information on our integration solutions, please contact us at&nbsp;<a href=\"mailto:sage@greytrix.com\">sage@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are many instances when client wants to give multiple copies of the invoices to their customers, where they must segregate multiple copies into original and duplicate. So we have given option on the report for those client where at the header part Original and Duplicate check boxes are given. So if the specific invoice\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2020\/07\/31\/how-to-add-checkbox-in-crystal-report\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,2796],"tags":[3035,461,644,1822,3036],"class_list":["post-20323","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","category-technical","tag-check-box","tag-crystal-report","tag-duplicate","tag-sage-x3","tag-subreport"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/20323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=20323"}],"version-history":[{"count":9,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/20323\/revisions"}],"predecessor-version":[{"id":25270,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/20323\/revisions\/25270"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=20323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=20323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=20323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}