{"id":1108,"date":"2008-10-16T20:48:33","date_gmt":"2008-10-17T03:48:33","guid":{"rendered":"http:\/\/members.crystalreportsbook.com\/books\/?p=1108"},"modified":"2010-05-17T00:08:38","modified_gmt":"2010-05-17T07:08:38","slug":"1712-manual-datasets-with-the-ide","status":"publish","type":"post","link":"http:\/\/www.crystalreportsonlinetraining.com\/training\/1712-manual-datasets-with-the-ide\/","title":{"rendered":"17.12 Manual DataSets with the IDE"},"content":{"rendered":"<h3>Creating a DataSet Manually with the IDE<\/h3>\n<p>The previous 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 create a new table without having 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 Add.<\/p>\n<p>The designer shows a blank screen. Right-click anywhere on the designer and select Add > DataTable. Right-click below the heading and select Add > Column. You can change the data type using the Properties window. In Figure 17-4 is a sample called DataTable1.<\/p>\n<p>         <a href=\"http:\/\/www.crystalreportsonlinetraining.com\/Images\/CRNet2008\/Ch17\/image007.png\"><br \/>\n            <img decoding=\"async\" src=\"http:\/\/www.crystalreportsonlinetraining.com\/Images\/CRNet2008\/Ch17\/image008.jpg\"><br \/>\n            <\/img><br \/>\n         <\/a><br \/>\n         <b>Figure 17-4. A new DataSet table.<\/b><\/p>\n<p>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 report 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 and select the menu options Crystal Reports > Database > Verify Database.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Creating a DataSet Manually with the IDE The previous 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 create a new table without having an existing data source. This could be a report based on user input or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,40],"tags":[],"class_list":["post-1108","post","type-post","status-publish","format-standard","hentry","category-chapter-17-data-sources","category-crystal-reportsnet-2008","entry"],"_links":{"self":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts\/1108","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=1108"}],"version-history":[{"count":1,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts\/1108\/revisions"}],"predecessor-version":[{"id":1231,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts\/1108\/revisions\/1231"}],"wp:attachment":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/media?parent=1108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/categories?post=1108"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/tags?post=1108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}