<?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>Search results by user ID 4282</title><link>http://forums.method.me/cs/search/SearchResults.aspx?o=DateDescending&amp;u=4282</link><description>Search results by user ID 4282</description><dc:language>en-US</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>error sending email or showing messages in loop</title><link>http://forums.method.me/cs/forums/p/834/2802.aspx#2802</link><pubDate>Fri, 18 Jun 2010 14:09:56 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:2802</guid><dc:creator>sgis</dc:creator><description>&lt;p&gt;I am trying to look through an activity grid to send email notifications to my clients. I loop through the grid and get the customer entity and use that to get a new field I added to my table called &amp;quot;NotificationEmail&amp;quot;, I copy this into a local ActionResult and then generate a notification report and put the contents of NotificationEmail ActionResult into the MailTo field. The potential bugs are&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1) If there is a semicolon in the email address then I get a 501 error stating that the email address is malformed and the email address it shows starts with the first semicolon in the address and goes to the character before the next semicolon or end. For example, if the email address is:&amp;nbsp;&amp;nbsp; site1@client1.com;manager1@site1.com;other1@site1.com, the error message would show &amp;quot;;other1@site1.co&amp;quot;&lt;/p&gt;
&lt;p&gt;2)If I put a message box to display the NotificationEmail to me just before the SendEmail instruction, the email displays correctly, I do not get a 501 error message and the email sends just fine.&lt;/p&gt;
&lt;p&gt;3)If I put in a message box inside the loop, the loop only executes one time. It does not reloop and the message does not display for each row in the grid.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can anyone confirm this behavior and is there a work around. The message box preventing a loop from occuring makes development very difficult. The email address problem makes the system much less useable.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Stephen Gissendaner&lt;/p&gt;
&lt;p&gt;Clean2Play, ll&lt;/p&gt;
&lt;p&gt;(205) 447-7447&lt;/p&gt;</description></item><item><title>Min/Max and Join of Activity and Customer tables</title><link>http://forums.method.me/cs/forums/p/583/1941.aspx#1941</link><pubDate>Sun, 03 Jan 2010 20:13:12 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:1941</guid><dc:creator>sgis</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am trying to create a report that shows every active customer and for each of those customers, shows the next service date and type and their last service date and type.&amp;nbsp;What&amp;nbsp;I want looks like:&lt;/p&gt;
&lt;p&gt;Customer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Last Service&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next Service&lt;br /&gt;cust123&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;11/23/09 interior&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2/15/10 exterior&lt;/p&gt;
&lt;p&gt;I am basing my report on the Customer table&amp;nbsp;rather than the activity table so that&amp;nbsp;if a customer does not have a service&amp;nbsp;it&amp;nbsp;shows up&amp;nbsp;in the report. &lt;/p&gt;
&lt;p&gt;I actually have two questions.&lt;/p&gt;
&lt;p&gt;1) How do you do a join on the customer and activity tables so that I could show (and filter) all activities by each customer including showing that a customer has no activities.? I have looked in the forums and it appears that the way to do&amp;nbsp;an&amp;nbsp;SQL join is to use the detail report but when I create a detail report using &amp;quot;Activity&amp;quot; as the &amp;quot;data member&amp;quot;I get a report that shows all activity records repeated under each customer name. If I use Customer.Activity as the data member I get the exact same activty record one or more times under each customer. All I want is to show each customer&amp;#39;s activities or lack of activities.&lt;/p&gt;
&lt;p&gt;2) Can you display the info from one detail record based upon if it is the min or max of a certain field? For me, I want to show info from the record that has the Max(Activity.DueDateStart) where Activity.ActivityStatus = &amp;quot;Completed&amp;quot;&amp;nbsp; within the context of each customer.&lt;/p&gt;
&lt;p&gt;Can you help me or point me in the right direction to the documentation for the report generator. If I could just submit my own SQL statement and then write my report against the dataset my custom SQL produced would be great!&lt;/p&gt;</description></item></channel></rss>