<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SugarCRM: really shared calendar</title>
	<atom:link href="http://software.tulentsev.com/2009/02/sugarcrm-really-shared-calendar/feed/" rel="self" type="application/rss+xml" />
	<link>http://software.tulentsev.com/2009/02/sugarcrm-really-shared-calendar/</link>
	<description>Random thoughts about programming</description>
	<lastBuildDate>Fri, 03 Feb 2012 15:48:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mark</title>
		<link>http://software.tulentsev.com/2009/02/sugarcrm-really-shared-calendar/comment-page-1/#comment-320</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 25 Nov 2011 11:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://software.tulentsev.com/?p=108#comment-320</guid>
		<description>Super handy thanks.</description>
		<content:encoded><![CDATA[<p>Super handy thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://software.tulentsev.com/2009/02/sugarcrm-really-shared-calendar/comment-page-1/#comment-213</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 11 Aug 2011 10:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://software.tulentsev.com/?p=108#comment-213</guid>
		<description>No doubt on that</description>
		<content:encoded><![CDATA[<p>No doubt on that</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nephoxroot</title>
		<link>http://software.tulentsev.com/2009/02/sugarcrm-really-shared-calendar/comment-page-1/#comment-212</link>
		<dc:creator>Nephoxroot</dc:creator>
		<pubDate>Thu, 11 Aug 2011 10:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://software.tulentsev.com/?p=108#comment-212</guid>
		<description>With this, the workaround, or solution is not upgrade safe.</description>
		<content:encoded><![CDATA[<p>With this, the workaround, or solution is not upgrade safe.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saurabh Sharma</title>
		<link>http://software.tulentsev.com/2009/02/sugarcrm-really-shared-calendar/comment-page-1/#comment-202</link>
		<dc:creator>Saurabh Sharma</dc:creator>
		<pubDate>Tue, 01 Mar 2011 09:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://software.tulentsev.com/?p=108#comment-202</guid>
		<description>$select = &#039;&#039;;
$auto_where = &#039; WHERE &#039;;
if(!empty($where)) {
    $auto_where .= $where. &#039; AND &#039;;
}
 
// Use a simpler query in case of meetings.
if($bean-&gt;table_name == &quot;meetings&quot;) {
    $select = &quot;SELECT {$bean-&gt;table_name}.* from {$bean-&gt;rel_users_table},{$bean-&gt;table_name} &quot;;
    $auto_where .= &quot; {$bean-&gt;table_name}.deleted=0 &quot;;
}
else {
    $select = &quot;SELECT {$bean-&gt;table_name}.* from {$bean-&gt;rel_users_table},{$bean-&gt;table_name} &quot;;
    $auto_where .= &quot; {$bean-&gt;rel_users_table}.{$bean_id_name}={$bean-&gt;table_name}.id AND {$bean-&gt;rel_users_table}.user_id=&#039;{$user_id}&#039; AND {$bean-&gt;table_name}.deleted=0 AND {$bean-&gt;rel_users_table}.deleted=0&quot;;
}


that is a exact way to call all meetings in calender,

Thanks,
Sourabh Sharma
</description>
		<content:encoded><![CDATA[<p>$select = &#8221;;<br />
$auto_where = &#8216; WHERE &#8216;;<br />
if(!empty($where)) {<br />
    $auto_where .= $where. &#8216; AND &#8216;;<br />
}</p>
<p>// Use a simpler query in case of meetings.<br />
if($bean-&gt;table_name == &#8220;meetings&#8221;) {<br />
    $select = &#8220;SELECT {$bean-&gt;table_name}.* from {$bean-&gt;rel_users_table},{$bean-&gt;table_name} &#8220;;<br />
    $auto_where .= &#8221; {$bean-&gt;table_name}.deleted=0 &#8220;;<br />
}<br />
else {<br />
    $select = &#8220;SELECT {$bean-&gt;table_name}.* from {$bean-&gt;rel_users_table},{$bean-&gt;table_name} &#8220;;<br />
    $auto_where .= &#8221; {$bean-&gt;rel_users_table}.{$bean_id_name}={$bean-&gt;table_name}.id AND {$bean-&gt;rel_users_table}.user_id=&#8217;{$user_id}&#8217; AND {$bean-&gt;table_name}.deleted=0 AND {$bean-&gt;rel_users_table}.deleted=0&#8243;;<br />
}</p>
<p>that is a exact way to call all meetings in calender,</p>
<p>Thanks,<br />
Sourabh Sharma</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergei Tulentsev</title>
		<link>http://software.tulentsev.com/2009/02/sugarcrm-really-shared-calendar/comment-page-1/#comment-187</link>
		<dc:creator>Sergei Tulentsev</dc:creator>
		<pubDate>Thu, 19 Aug 2010 20:52:54 +0000</pubDate>
		<guid isPermaLink="false">http://software.tulentsev.com/?p=108#comment-187</guid>
		<description>We host our own version and have full control over the sources.</description>
		<content:encoded><![CDATA[<p>We host our own version and have full control over the sources.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian U</title>
		<link>http://software.tulentsev.com/2009/02/sugarcrm-really-shared-calendar/comment-page-1/#comment-140</link>
		<dc:creator>Brian U</dc:creator>
		<pubDate>Wed, 23 Jun 2010 18:16:58 +0000</pubDate>
		<guid isPermaLink="false">http://software.tulentsev.com/?p=108#comment-140</guid>
		<description>Great post.  One question...is this solution available for on-demand users or only for those hosting their own instance of SugarCRM?</description>
		<content:encoded><![CDATA[<p>Great post.  One question&#8230;is this solution available for on-demand users or only for those hosting their own instance of SugarCRM?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergei Tulentsev</title>
		<link>http://software.tulentsev.com/2009/02/sugarcrm-really-shared-calendar/comment-page-1/#comment-117</link>
		<dc:creator>Sergei Tulentsev</dc:creator>
		<pubDate>Tue, 25 May 2010 11:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://software.tulentsev.com/?p=108#comment-117</guid>
		<description>So, Aidan, did you work it around? Or are you stuck?</description>
		<content:encoded><![CDATA[<p>So, Aidan, did you work it around? Or are you stuck?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aidan</title>
		<link>http://software.tulentsev.com/2009/02/sugarcrm-really-shared-calendar/comment-page-1/#comment-116</link>
		<dc:creator>Aidan</dc:creator>
		<pubDate>Tue, 25 May 2010 01:32:52 +0000</pubDate>
		<guid isPermaLink="false">http://software.tulentsev.com/?p=108#comment-116</guid>
		<description>Thanks for this, very helpful. I ran into an issue in 5.2 (possibly the same one the previous poster was trying to fix):

Query Failed:SELECT meetings.* from meetings WHERE (DATE_FORMAT(meetings.date_start,&#039;%Y-%m-%d&#039;) &gt;= &#039;2010-04-01&#039; AND DATE_FORMAT(meetings.date_start,&#039;%Y-%m-%d&#039;) table_name}.* from {$bean-&gt;table_name} LEFT JOIN {$bean-&gt;rel_users_table} ON {$bean-&gt;table_name}.id={$bean-&gt;rel_users_table}.{$bean_id_name} &quot;;</description>
		<content:encoded><![CDATA[<p>Thanks for this, very helpful. I ran into an issue in 5.2 (possibly the same one the previous poster was trying to fix):</p>
<p>Query Failed:SELECT meetings.* from meetings WHERE (DATE_FORMAT(meetings.date_start,&#8217;%Y-%m-%d&#8217;) &gt;= &#8217;2010-04-01&#8242; AND DATE_FORMAT(meetings.date_start,&#8217;%Y-%m-%d&#8217;) table_name}.* from {$bean-&gt;table_name} LEFT JOIN {$bean-&gt;rel_users_table} ON {$bean-&gt;table_name}.id={$bean-&gt;rel_users_table}.{$bean_id_name} &#8220;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://software.tulentsev.com/2009/02/sugarcrm-really-shared-calendar/comment-page-1/#comment-11</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 11 Jan 2010 09:51:44 +0000</pubDate>
		<guid isPermaLink="false">http://software.tulentsev.com/?p=108#comment-11</guid>
		<description>Yeah, maybe you&#039;re right. I&#039;ll disable this pain for a while and let&#039;s see if will get flooded with spam or not :-)

I am glad my post was useful to you  :-)</description>
		<content:encoded><![CDATA[<p>Yeah, maybe you&#8217;re right. I&#8217;ll disable this pain for a while and let&#8217;s see if will get flooded with spam or not :-)</p>
<p>I am glad my post was useful to you  :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrea</title>
		<link>http://software.tulentsev.com/2009/02/sugarcrm-really-shared-calendar/comment-page-1/#comment-10</link>
		<dc:creator>andrea</dc:creator>
		<pubDate>Mon, 11 Jan 2010 09:21:41 +0000</pubDate>
		<guid isPermaLink="false">http://software.tulentsev.com/?p=108#comment-10</guid>
		<description>Hello,
your patch was what I needed, I had to change it for SugarCRM 5.5.

row 9 becomes:
 $select = &quot;SELECT {$bean-&gt;table_name}.* from {$bean-&gt;table_name}, {$bean-&gt;rel_users_table} &quot;;

Thank you,
Andrea

(p.s.: the registration process is painful for just leaving a comment.. :) )</description>
		<content:encoded><![CDATA[<p>Hello,<br />
your patch was what I needed, I had to change it for SugarCRM 5.5.</p>
<p>row 9 becomes:<br />
 $select = &#8220;SELECT {$bean-&gt;table_name}.* from {$bean-&gt;table_name}, {$bean-&gt;rel_users_table} &#8220;;</p>
<p>Thank you,<br />
Andrea</p>
<p>(p.s.: the registration process is painful for just leaving a comment.. :) )</p>
]]></content:encoded>
	</item>
</channel>
</rss>

