{"id":87,"date":"2007-12-30T21:28:53","date_gmt":"2007-12-31T04:28:53","guid":{"rendered":"http:\/\/members.crystalreportsbook.com\/crystal-reports-xi\/421-tutorial-4-4-creating-multi-value-parameters\/"},"modified":"2009-05-06T10:44:04","modified_gmt":"2009-05-06T17:44:04","slug":"421-tutorial-4-4-creating-multi-value-parameters","status":"publish","type":"post","link":"http:\/\/www.crystalreportsonlinetraining.com\/training\/421-tutorial-4-4-creating-multi-value-parameters\/","title":{"rendered":"4.21 Tutorial 4-4. Creating Multi-Value Parameters"},"content":{"rendered":"<h2>Tutorial 4-4. Creating Multi-Value Parameters<\/h2>\n<p>The benefit to setting parameter options is that they give the user a more robust user interface for selecting parameter values. Let&#8217;s modify the report we created in the previous tutorial so that rather than just selecting a single Customer to print, the user can select multiple customers.<\/p>\n<ol>\n<li value=\"1\">Open the report Basic Parameter Tutorial.rpt from Tutorial 4-3. Save it as Multi-Value Parameter Tutorial.rpt.<\/li>\n<li value=\"2\">Look in the Parameter Fields list and find the Selected Country parameter. Right-click on it and select Edit.<\/li>\n<li value=\"3\">For the optional properties, set the Allow Multiple Values option to True. This lets the user select the customers they want to print by either adding or creating a list of valid customers.<\/li>\n<li value=\"4\">Click the OK button to save your changes. This immediately opens the Enter Values dialog box so that you can enter a new value for the parameter.<\/li>\n<li value=\"5\">Refresh the report multiple times and select a different number of customers each time. They will all appear on the report.<\/li>\n<\/ol>\n<p>Notice that even though we changed the parameter to be multi-value, the selection formula stayed the same. When Crystal Reports compares a single field to an array of values, you can still use the = operator to do the comparison. Crystal Reports automatically scans through the array looking for a value that matches. This is discussed more in the next section.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tutorial 4-4. Creating Multi-Value Parameters The benefit to setting parameter options is that they give the user a more robust user interface for selecting parameter values. Let&#8217;s modify the report we created in the previous tutorial so that rather than just selecting a single Customer to print, the user can select multiple customers. Open the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,1],"tags":[],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-chapter-4-filtering-data-with-parameters","category-crystal-reports-xi","entry"],"_links":{"self":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/comments?post=87"}],"version-history":[{"count":0,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts\/87\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/media?parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/categories?post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/tags?post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}