{"id":720,"date":"2008-01-04T19:56:57","date_gmt":"2008-01-05T02:56:57","guid":{"rendered":"http:\/\/members.crystalreportsbook.com\/crystal-reports-xi\/17-5-create-dataset-manually-with-the-ide\/"},"modified":"2010-11-17T18:46:20","modified_gmt":"2010-11-18T01:46:20","slug":"17-5-create-dataset-manually-with-the-ide","status":"publish","type":"post","link":"http:\/\/www.crystalreportsonlinetraining.com\/training\/17-5-create-dataset-manually-with-the-ide\/","title":{"rendered":"17.05 Create Dataset Manually with the IDE"},"content":{"rendered":"<h3>Creating a DataSet Manually with the IDE<\/h3>\n<p>The last method of building a dataset assumed that you have a table that can be dragged and dropped onto the designer. There are times you want to build without an existing data source. This could be a report based on user input or internal calculations. No worries, you can still use the IDE to create a dataset manually.<\/p>\n<p>Just like before, add a DataSet object to your project. Right-click on the menu item Project | Add New Item. The Add New Item dialog box lists Dataset File as an option. Select this option, give it an appropriate filename and click OK.<\/p>\n<p>The designer shows a blank screen. Right-click anywhere on the designer and select Add | New Element. In the first column of the first row type in the table name and press the Tab key twice. In Figure 17-3 I named the table ManualTable.<\/p>\n<p>         <a href=\"http:\/\/www.crystalreportsonlinetraining.com\/Images\/CRNet2003\/Ch17\/image005.png\"><br \/>\n            <img decoding=\"async\" src=\"http:\/\/www.crystalreportsonlinetraining.com\/Images\/CRNet2003\/Ch17\/image006.jpg\"><\/img><\/a><br \/>\n         <b>Figure 17-3. A new DataSet table.<\/b><\/p>\n<p>Each field in a table is defined as an XML Element with a field name and data type. On the second row click on the first column and a dropdown list appears. Select the Element item.<\/p>\n<p>         <a href=\"http:\/\/www.crystalreportsonlinetraining.com\/Images\/CRNet2003\/Ch17\/image007.png\"><br \/>\n            <img decoding=\"async\" src=\"http:\/\/www.crystalreportsonlinetraining.com\/Images\/CRNet2003\/Ch17\/image008.jpg\"><\/img><\/a><\/p>\n<p>Next enter a field name and a data type. In this example I created a field EmployeeId of type int and EmployeeName of type string.<\/p>\n<p>         <a href=\"http:\/\/www.crystalreportsonlinetraining.com\/Images\/CRNet2003\/Ch17\/image009.png\"><br \/>\n            <img decoding=\"async\" src=\"http:\/\/www.crystalreportsonlinetraining.com\/Images\/CRNet2003\/Ch17\/image010.jpg\"><\/img><\/a><\/p>\n<p>The dataset is complete. After saving the file it can be referenced by a report.<\/p>\n<blockquote><p>If you make changes to the dataset schema after creating the report, the reports will not recognize these changes. It keeps the schema in its cache and doesn&#8217;t refresh. The only way to force it to renew the cache is to completely close the Visual Studio IDE, re-open the project, right-click on the report and select Database | Verify Database.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Creating a DataSet Manually with the IDE The last method of building a dataset assumed that you have a table that can be dragged and dropped onto the designer. There are times you want to build without an existing data source. This could be a report based on user input or internal calculations. No worries, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,2],"tags":[],"class_list":["post-720","post","type-post","status-publish","format-standard","hentry","category-chapter-17-dynamic-data-sources","category-crystal-reportsnet-2003","entry"],"_links":{"self":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts\/720","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=720"}],"version-history":[{"count":1,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts\/720\/revisions"}],"predecessor-version":[{"id":1652,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts\/720\/revisions\/1652"}],"wp:attachment":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/media?parent=720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/categories?post=720"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/tags?post=720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}