<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.method.me/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Method:Classic General Q&amp;amp;A</title><link>http://forums.method.me/cs/forums/13.aspx</link><description>Ask technical support questions, how do I? Questions... Or anything else you want to know from the Method Team and other Method users.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Re: Inconsistent Results and Errors Generating Report</title><link>http://forums.method.me/cs/forums/thread/12962.aspx</link><pubDate>Tue, 03 Jul 2012 14:51:21 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:12962</guid><dc:creator>Method_Ted</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/12962.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12962</wfw:commentRss><description>&lt;p&gt;@Rolf&lt;/p&gt;
&lt;p&gt;If you like us to review the issue further and your work-around then I will gladly forward it to our developers. Please email them to me and we will examine it further.&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/cs/Themes/methodtheme/images/icon-quote.gif"&gt; &lt;strong&gt;Rolf:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;how do I do a count of the number of records matching my criteria in a report?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;As far as counting the number of matches, there is a function in the Report Designer in the &amp;#39;Summary Editor&amp;#39; called &amp;#39;Count&amp;#39;. I have enclosed the screenshot of this menu. This function is similar to the one in Method with the &amp;#39;Retrieve value from table&amp;#39; action with the property &amp;#39;Retrieve Count&amp;#39; where it will return the number of matches within the table.&lt;/p&gt;
&lt;p&gt;&lt;img height="382" width="800" src="http://i.imgur.com/MFw4y.png" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;Please let me know if I can be of further assistance.&lt;/p&gt;</description></item><item><title>Re: Inconsistent Results and Errors Generating Report</title><link>http://forums.method.me/cs/forums/thread/12931.aspx</link><pubDate>Sat, 30 Jun 2012 19:18:46 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:12931</guid><dc:creator>Rolf</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/12931.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12931</wfw:commentRss><description>&lt;p&gt;Ted,&lt;/p&gt;
&lt;p&gt;Thanks for the quick response.&amp;nbsp; I had already tried all that, and it doesn&amp;#39;t help. Furthermore, date formatting should only affect the way dates are displayed; the underlying value remains the same. So, it should have no impact on any logical value comparisons.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s the first thing that should be fixed, if in fact that&amp;#39;s what is happening, which was only a guess on my part.&lt;/p&gt;
&lt;p&gt;The second problem&amp;nbsp; is that the Global value field I mentioned in my original post is also not printing consistently, and it is totally independent of the date range evaluation, so that makes no sense at all.&lt;/p&gt;
&lt;p&gt;If you can duplicate this problem, then you might want to have the designers have a look, because I would think proper date handling is central to many Report Generation activities.&lt;/p&gt;
&lt;p&gt;I have come up with a workaround that mostly does what I want, but would prefer not to have to do that in other reports I need to create.&lt;/p&gt;
&lt;p&gt;I do have a different question though;&amp;nbsp; how do I do a count of the number of records matching my criteria in a report?&lt;/p&gt;
&lt;p&gt;thanks in advance for your help,&lt;/p&gt;
&lt;p&gt;Rolf&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Inconsistent Results and Errors Generating Report</title><link>http://forums.method.me/cs/forums/thread/12924.aspx</link><pubDate>Fri, 29 Jun 2012 17:47:12 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:12924</guid><dc:creator>Method_Ted</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/12924.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12924</wfw:commentRss><description>&lt;p&gt;@Rolf&lt;/p&gt;
&lt;p&gt;Thanks for the detailed information and I agree that it looks like a date format issue that is causing the error. I would check the format that it passing to the Report Generator and make the report of the same format. I would also check in the date field of the report for the format that is it displaying.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would modify the FormatString Editor to have the same date format. I have enclosed the screenshot of this menu to help illustarte this point.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i.imgur.com/mcsyD.png" width="425" height="403" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;Please let me know if I can be of further assistance.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Inconsistent Results and Errors Generating Report</title><link>http://forums.method.me/cs/forums/thread/12916.aspx</link><pubDate>Thu, 28 Jun 2012 21:36:24 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:12916</guid><dc:creator>Rolf</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/12916.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12916</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m creating a report based on the customer table wherein I extract records that fall within a date range defined by two date picker objects on the screen and one other criteria.&amp;nbsp; If either or both of those fields are empty, I enter default&amp;nbsp; start and/or end dates as necessary.&amp;nbsp; I also save these two date values in a separate unrelated global values table; to be used by the report generator to enter the date range on the report.&amp;nbsp; In the Report Designer this all works fine and as expected.&amp;nbsp; However, when generating the actual report, I get inconsistent results.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;If the date range was initially blank,&amp;nbsp; the&amp;nbsp; default dates are entered, and then the report is created. It properly displays the date range from the global values table, but the records retrieved are all records matching the second criteria, and the date range is ignored completely.&amp;nbsp; This also happens if either the start date&amp;nbsp; or the end date is blank prior to running the report.&amp;nbsp; If however, both dates are entered first, then the report extracts the proper records matching both the date range and the second criteria, but will not display the global value dates on the report.&lt;/p&gt;
&lt;p&gt;After considerable time and energy trying to&amp;nbsp; determine what is happening, I think it may be related to how date formats are handled in the report generator.&amp;nbsp; I say this because during testing I changed the condition from &amp;quot;within the date range&amp;quot;&amp;nbsp; to&amp;quot; greater than or equal to&amp;quot;&amp;nbsp; the start date value.&amp;nbsp; When the start date was initially blank,&amp;nbsp;&amp;nbsp; the report would generate and select the correct records ( although still not displaying the global date values)&amp;nbsp; If, however, there was an initial value in the start date field, the report would not generate at all and I got an &amp;nbsp; &amp;quot;unspecified error loading the report&amp;quot;&amp;nbsp; error.&amp;nbsp; Screen messages during testing indicate the blank fields are filled with the date format as&amp;nbsp; &amp;quot;6/28/2012&amp;quot; while dates from the field are&amp;nbsp; &amp;quot; Jun-28-2012&amp;quot;&lt;/p&gt;
&lt;p&gt;I know this was a rather long and detailed description of the problem, but I felt that was necessary&amp;nbsp; for you to have any chance of reproducing it.&lt;/p&gt;
&lt;p&gt;I look forward to your comments on this.&amp;nbsp; Thanks,&lt;/p&gt;
&lt;p&gt;Rolf&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>