<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Limcera</title>
	<atom:link href="http://www.limcera.com/weblog/Index.php?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.limcera.com/weblog</link>
	<description>Coding: Daily Life..</description>
	<pubDate>Thu, 23 Oct 2008 11:44:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>How can i sort with xsl?</title>
		<link>http://www.limcera.com/weblog/?p=20</link>
		<comments>http://www.limcera.com/weblog/?p=20#comments</comments>
		<pubDate>Thu, 23 Oct 2008 09:04:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[CKS]]></category>

		<category><![CDATA[Sharepoint]]></category>

		<category><![CDATA[CKS:EBE]]></category>

		<category><![CDATA[EBE List]]></category>

		<guid isPermaLink="false">http://www.limcera.com/weblog/?p=20</guid>
		<description><![CDATA[You can do sorting in xsl like this;
Also you can sort CKS EBE List&#8217;s like this:
This is sorting categories in a CKS:EBE List. I added a column to Sharepoint List: &#8220;Rank&#8221;, and sorted according to that.
&#60;xsl:template match=&#8221;/&#8221;&#62;
  &#60;ul&#62;
   &#60;xsl:apply-templates select=&#8221;rows/row&#8221;&#62;
   &#60;xsl:sort select=&#8221;Rank&#8221; order=&#8221;ascending&#8221;/&#62;
   &#60;/xsl:apply-templates&#62;
  &#60;/ul&#62;
&#60;/xsl:template&#62;
 &#60;xsl:template match=&#8221;row&#8221;&#62;
  &#60;li&#62;
   &#60;a href=&#8221;{ebe:createTagUrl(Title)}&#8221;&#62;
    &#60;xsl:value-of select=&#8221;Title&#8221;/&#62;
   &#60;/a&#62;
  &#60;/li&#62;
 &#60;/xsl:template&#62;
]]></description>
			<content:encoded><![CDATA[<p>You can do sorting in xsl like this;</p>
<p>Also you can sort CKS EBE List&#8217;s like this:</p>
<p>This is sorting categories in a CKS:EBE List. I added a column to Sharepoint List: &#8220;Rank&#8221;, and sorted according to that.</p>
<p>&lt;xsl:template match=&#8221;/&#8221;&gt;<br />
  &lt;ul&gt;<br />
   &lt;xsl:apply-templates select=&#8221;rows/row&#8221;&gt;<br />
   <span style="color: #ac20ac;">&lt;xsl:sort select=&#8221;Rank&#8221; order=&#8221;ascending&#8221;/&gt;</span><br />
   &lt;/xsl:apply-templates&gt;<br />
  &lt;/ul&gt;<br />
&lt;/xsl:template&gt;</p>
<p> &lt;xsl:template match=&#8221;row&#8221;&gt;<br />
  &lt;li&gt;<br />
   &lt;a href=&#8221;{ebe:createTagUrl(Title)}&#8221;&gt;<br />
    &lt;xsl:value-of select=&#8221;Title&#8221;/&gt;<br />
   &lt;/a&gt;<br />
  &lt;/li&gt;<br />
 &lt;/xsl:template&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.limcera.com/weblog/?feed=rss2&amp;p=20</wfw:commentRss>
		</item>
		<item>
		<title>Getting CMSServerError in CmsHttpContext Current Searches GetByGuid method..</title>
		<link>http://www.limcera.com/weblog/?p=18</link>
		<comments>http://www.limcera.com/weblog/?p=18#comments</comments>
		<pubDate>Thu, 16 Oct 2008 10:41:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[MCMS - CMS]]></category>

		<category><![CDATA[CMS]]></category>

		<category><![CDATA[CmsHttpContext]]></category>

		<category><![CDATA[CMSServerError]]></category>

		<category><![CDATA[GetByGuid]]></category>

		<category><![CDATA[MCMS]]></category>

		<category><![CDATA[Searches]]></category>

		<guid isPermaLink="false">http://www.limcera.com/weblog/?p=18</guid>
		<description><![CDATA[I was getting CmsServerException (Microsoft.ContentManagement.Publishing.CmsServerException) saying  “ Server error.  Contact the site administrator. ”. when trying to call CmsHttpContext.Current.Searches.GetByGuid method.
 
It was hard to find out why this exception occurs, because there was no detail included.
 
Anyway I found out why;
 
I was calling the GetByGuid method like:
 
CmsHttpContext.Current.Searches.GetByGuid(myGuid.ToString());
 
Which was wrong…
 
When you make ToString() to a Guid, it does [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;;">I was getting </span><span style="font-size: 10pt; color: #2b91af; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;">CmsServerException (</span><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;">Microsoft.ContentManagement.Publishing.<span style="color: #2b91af;">CmsServerException</span>) saying<span style="mso-spacerun: yes;">  </span>“ Server error.<span style="mso-spacerun: yes;">  </span>Contact the site administrator. ”. when trying to call <span style="color: #2b91af;">CmsHttpContext</span>.Current.Searches.GetByGuid method.</span></p>
<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;"> </span></p>
<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;">It was hard to find out why this exception occurs, because there was no detail included.</span></p>
<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;"> </span></p>
<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;">Anyway I found out why;</span></p>
<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;"> </span></p>
<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;">I was calling the GetByGuid method like:</span></p>
<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;"> </span></p>
<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; color: #2b91af; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;">CmsHttpContext</span><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;">.Current.Searches.GetByGuid(myGuid.ToString());</span></p>
<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;"> </span></p>
<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;">Which was wrong…</span></p>
<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;"> </span></p>
<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;">When you make ToString() to a Guid, it does not return paranthesis of guid in the return string. On the other hand, GetByGuid wants its parameter string to have paranthesis.</span></p>
<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;"> </span></p>
<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;"> </span></p>
<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;">It should be like:</span></p>
<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; color: #2b91af; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;"> </span></p>
<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; color: #2b91af; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;">CmsHttpContext</span><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;">.Current.Searches.GetByGuid(myGuid.ToString(“B”));</span></p>
<p class="MsoNoSpacing" style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes;"> </span></p>
<p><span style="font-size: 10pt; line-height: 115%; font-family: &quot;Book Antiqua&quot;,&quot;serif&quot;; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-fareast-language: EN-US; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA;">So that when you send the guid properly, you will get rid of CMSServerError..</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.limcera.com/weblog/?feed=rss2&amp;p=18</wfw:commentRss>
		</item>
		<item>
		<title>Getting list items from a Sharepoint list by using Sharepoint Web Services</title>
		<link>http://www.limcera.com/weblog/?p=9</link>
		<comments>http://www.limcera.com/weblog/?p=9#comments</comments>
		<pubDate>Mon, 13 Oct 2008 22:28:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Sharepoint]]></category>

		<category><![CDATA[CAML]]></category>

		<category><![CDATA[Sharepoint Web Services]]></category>

		<guid isPermaLink="false">http://www.limcera.com/weblog/?p=9</guid>
		<description><![CDATA[
Ok, since we are trying to get Sharepoint list items via Sharepoint Web Services, we should add the web service then, as a reference to the project.


The important point is; if you want to get listitems from a subsite’s list, don’t forget to change url like this;
For example;
Change url from;
http://&#60;yoursite&#62; /_vti_bin/Lists.asmx
To this;
http://&#60;yoursite&#62;/&#60;yoursubsite&#62; /_vti_bin/Lists.asmx
Otherwise, you can [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>Ok, since we are trying to get Sharepoint list items via Sharepoint Web Services, we should add the web service then, as a reference to the project.</li>
</ul>
<p style="text-align: center;"><img class="aligncenter" title="Adding Sharepoint web services as a web reference" src="http://www.limcera.com/pics/Adding Sharepoint web services as a web reference.JPG" alt="Adding Sharepoint web services as a web reference" /></p>
<p>The important point is; if you want to get listitems from a subsite’s list, don’t forget to change url like this;<br />
For example;</p>
<p>Change url from;<br />
<span style="color: #009dc4;">http://&lt;yoursite&gt; /_vti_bin/Lists.asmx</span></p>
<p>To this;<br />
<span style="color: #009dc4;">http://&lt;yoursite&gt;/&lt;yoursubsite&gt; /_vti_bin/Lists.asmx</span></p>
<p>Otherwise, you can get a SoapException !</p>
<ul>
<li>Set the credentials of the list.</li>
</ul>
<p><span style="color: #009dc4;">List.Lists cl = new List.Lists();</span></p>
<p><span style="color: #009dc4;">System.Net.NetworkCredential cred = new System.Net.NetworkCredential(<br />
                    listUser,<br />
                    listPwd);</span></p>
<p><span style="color: #009dc4;">cl.Credentials = cred;</span></p>
<p><span style="color: #009dc4;">cl.Url = ConfigurationManager.AppSettings["List.Lists"];</span></p>
<ul>
<li>Write a caml query to filter results. (you can look at caml query example from this posting.) (Or don’t write any query if you want to get whole items in the list)</li>
</ul>
<p><span style="color: #009dc4;">System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();<br />
XmlNode whereQuery = xmlDoc.CreateElement(&#8221;Query&#8221;);</span></p>
<p><span style="color: #009dc4;">whereQuery.InnerXml = String.Format(&#8221;&lt;Where&gt;{0}&lt;/Where&gt;&#8221;,&#8221;write a caml query like the one in the that posting&#8221;);</span></p>
<ul>
<li>You can get list items by calling GetListItems method.</li>
</ul>
<p><span style="color: #009dc4;">XmlNode listNodes = cl.GetListItems(&#8221;LISTNAME&#8221;, null, whereQuery, null, null, null, null);</span></p>
<ul>
<li>We have an xml which contains all items. But in order to get only items you should select nodes under &#8220;//rs:data/z:row”.</li>
<li>First I had tried to select nodes under “//rs:data”. But the child count is doubled, because between each child there exists a node of Whitespace (\n). So in order to get list items properly, “z:row” nodes should be selected.</li>
</ul>
<p><span style="color: #009dc4;">XmlNamespaceManager nm = new XmlNamespaceManager(listNodes.OwnerDocument.NameTable);</span><br />
<span style="color: #009dc4;">nm.AddNamespace(&#8221;rs&#8221;, &#8220;urn:schemas-microsoft-com:rowset&#8221;);</span><br />
<span style="color: #009dc4;">nm.AddNamespace(&#8221;z&#8221;, &#8220;#RowsetSchema&#8221;);</span><br />
<span style="color: #009dc4;">XmlNodeList nodes = listNodes.SelectNodes(&#8221;//rs:data/z:row&#8221;, nm);</span></p>
<ul>
<li>To display Sharepoint listItems in a repeater, bind the XmlNodeList to the repeater, and configure the template of repeater in the aspx.</li>
</ul>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; color: #0000ff; font-family: &quot;Courier New&quot;; mso-no-proof: yes;">&lt;</span><span style="font-size: 10pt; color: #a31515; font-family: &quot;Courier New&quot;; mso-no-proof: yes;">asp</span><span style="font-size: 10pt; color: #0000ff; font-family: &quot;Courier New&quot;; mso-no-proof: yes;">:</span><span style="font-size: 10pt; color: #a31515; font-family: &quot;Courier New&quot;; mso-no-proof: yes;">Repeater</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"> <span style="color: #ff0000;">ID</span><span style="color: #0000ff;">=&#8221;rptList&#8221;</span> <span style="color: #ff0000;">runat</span><span style="color: #0000ff;">=&#8221;server&#8221;&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="mso-spacerun: yes;">     </span></span><span style="font-size: 10pt; color: #0000ff; font-family: &quot;Courier New&quot;; mso-no-proof: yes;">&lt;</span><span style="font-size: 10pt; color: #a31515; font-family: &quot;Courier New&quot;; mso-no-proof: yes;">ItemTemplate</span><span style="font-size: 10pt; color: #0000ff; font-family: &quot;Courier New&quot;; mso-no-proof: yes;">&gt;</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="mso-spacerun: yes;">         </span><span style="mso-spacerun: yes;">   </span></span><span style="font-size: 10pt; color: #0000ff; font-family: &quot;Courier New&quot;; mso-no-proof: yes;">&lt;</span><span style="font-size: 10pt; color: #a31515; font-family: &quot;Courier New&quot;; mso-no-proof: yes;">table</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="color: #0000ff;">&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="mso-spacerun: yes;">                </span><span style="color: #0000ff;">&lt;</span><span style="color: #a31515;">tr</span><span style="color: #0000ff;">&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="mso-spacerun: yes;">                    </span><span style="color: #0000ff;">&lt;</span><span style="color: #a31515;">td</span> <span style="color: #ff0000;">colspan</span><span style="color: #0000ff;">=&#8221;2&#8243;</span><span style="color: #0000ff;">&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="mso-spacerun: yes;">                        </span><span style="background: yellow; mso-highlight: yellow;">&lt;%</span><span style="color: #0000ff;">#</span> ((XmlNode)Container.DataItem).Attributes["ows_Title"].Value<span style="background: yellow; mso-highlight: yellow;">%&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="mso-spacerun: yes;">    </span><span style="mso-spacerun: yes;">                </span><span style="color: #0000ff;">&lt;/</span><span style="color: #a31515;">td</span><span style="color: #0000ff;">&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="mso-spacerun: yes;">                </span><span style="color: #0000ff;">&lt;/</span><span style="color: #a31515;">tr</span><span style="color: #0000ff;">&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="mso-spacerun: yes;">                </span><span style="color: #0000ff;">&lt;</span><span style="color: #a31515;">tr</span><span style="color: #0000ff;">&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="mso-spacerun: yes;">                    </span><span style="color: #0000ff;">&lt;</span><span style="color: #a31515;">td</span> <span style="color: #ff0000;">align</span><span style="color: #0000ff;">=&#8221;left&#8221;</span><span style="color: #0000ff;">&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="mso-spacerun: yes;">                        </span><span style="background: yellow; mso-highlight: yellow;">&lt;%</span><span style="color: #0000ff;">#</span> ((XmlNode)Container.DataItem).Attributes["ows_Date"].Value<span style="background: yellow; mso-highlight: yellow;">%&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="mso-spacerun: yes;">                    </span><span style="color: #0000ff;">&lt;/</span><span style="color: #a31515;">td</span><span style="color: #0000ff;">&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="mso-spacerun: yes;">                    </span><span style="color: #0000ff;">&lt;</span><span style="color: #a31515;">td</span> <span style="color: #ff0000;">align</span><span style="color: #0000ff;">=&#8221;right&#8221;</span><span style="color: #0000ff;">&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="mso-spacerun: yes;">                        </span><span style="background: yellow; mso-highlight: yellow;">&lt;%</span><span style="color: #0000ff;">#</span><span style="mso-spacerun: yes;">  </span>((XmlNode)Container.DataItem).Attributes["ows_Place"].Value<span style="background: yellow; mso-highlight: yellow;">%&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="mso-spacerun: yes;">                    </span><span style="color: #0000ff;">&lt;/</span><span style="color: #a31515;">td</span><span style="color: #0000ff;">&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="mso-spacerun: yes;">                </span><span style="color: #0000ff;">&lt;/</span><span style="color: #a31515;">tr</span><span style="color: #0000ff;">&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="mso-spacerun: yes;">               </span><span style="color: #0000ff;">&lt;/</span><span style="color: #a31515;">table</span><span style="color: #0000ff;">&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="mso-spacerun: yes;">         </span><span style="color: #0000ff;">&lt;/</span><span style="color: #a31515;">ItemTemplate</span><span style="color: #0000ff;">&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-no-proof: yes;"><span style="color: #0000ff;">&lt;/</span><span style="color: #a31515;">asp</span><span style="color: #0000ff;">:</span><span style="color: #a31515;">Repeater</span><span style="color: #0000ff;">&gt;</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.limcera.com/weblog/?feed=rss2&amp;p=9</wfw:commentRss>
		</item>
		<item>
		<title>CAML Queries..</title>
		<link>http://www.limcera.com/weblog/?p=3</link>
		<comments>http://www.limcera.com/weblog/?p=3#comments</comments>
		<pubDate>Sat, 11 Oct 2008 21:44:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Sharepoint]]></category>

		<category><![CDATA[CAML]]></category>

		<guid isPermaLink="false">http://www.limcera.com/weblog/?p=3</guid>
		<description><![CDATA[I’ll let my first post be about CAML queries in Sharepoint… 
I was trying to write Caml Query to retrieve list items from Sharepoint, so I decided to write a post about that. First; Operators in Caml Queries are;

Eq                           Equals
Neq                        Not equal
Gt                           Greater than
Ge                           Greater than or equal
Lt                            Lower than
Le                           Lower than
IsNull                    Is null
BeginsWith         Begins [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="MARGIN: 0px 0px 10pt; LINE-HEIGHT: 14.25pt"><span style="font-size: 10pt; color: #000000; font-family: 'Book Antiqua',serif;">I’ll let my first post be about CAML queries in Sharepoint… </span></p>
<p class="MsoNormal" style="MARGIN: 0px 0px 10pt; LINE-HEIGHT: 14.25pt"><span style="font-size: 10pt; color: #000000; font-family: 'Book Antiqua',serif;">I was trying to write Caml Query to retrieve list items from Sharepoint, so I decided to write a post about that. First; Operators in Caml Queries are;</span></p>
<ul type="disc">
<li class="MsoNormal"><span style="font-size: 10pt; font-family: 'Book Antiqua',serif;">Eq<span>                           </span>Equals</span></li>
<li class="MsoNormal"><span style="font-size: 10pt; font-family: 'Book Antiqua',serif;">Neq<span>                        </span>Not equal</span></li>
<li class="MsoNormal"><span style="font-size: 10pt; font-family: 'Book Antiqua',serif;">Gt<span>                           </span>Greater than</span></li>
<li class="MsoNormal"><span style="font-size: 10pt; font-family: 'Book Antiqua',serif;">Ge<span>                           </span>Greater than or equal</span></li>
<li class="MsoNormal"><span style="font-size: 10pt; font-family: 'Book Antiqua',serif;">Lt<span>                            </span>Lower than</span></li>
<li class="MsoNormal"><span style="font-size: 10pt; font-family: 'Book Antiqua',serif;">Le<span>                           </span>Lower than</span></li>
<li class="MsoNormal"><span style="font-size: 10pt; font-family: 'Book Antiqua',serif;">IsNull<span>                    </span>Is null</span></li>
<li class="MsoNormal"><span style="font-size: 10pt; font-family: 'Book Antiqua',serif;">BeginsWith<span>         </span>Begins with</span></li>
<li class="MsoNormal"><span style="font-size: 10pt; font-family: 'Book Antiqua',serif;">Contains<span>              </span>Contains</span></li>
</ul>
<p class="MsoNormal" style="MARGIN: 0px 0px 10pt; LINE-HEIGHT: 14.25pt"><span style="font-size: 10pt; color: #000000; font-family: 'Book Antiqua',serif;">Here comes a simple query, which can get list items whose FieldA property is equal to ChoiceB; </span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Where&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Eq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 72pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;FieldRef Name=”</span><span style="font-size: 10pt; color: #ff66cc; font-family: 'Book Antiqua',serif;">FieldA</span><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">” /&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 72pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Value Type=”Choice”&gt;</span><span style="font-size: 10pt; color: #ff66cc; font-family: 'Book Antiqua',serif;">ValueB</span><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Value&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Eq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;"><span> </span>&lt;/Where&gt;</span><span style="font-size: 10pt; font-family: 'Book Antiqua',serif;">  </span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px"><span style="font-size: 10pt; font-family: 'Book Antiqua',serif;"> </span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px"><span style="font-size: 10pt; font-family: 'Book Antiqua',serif;"><span> </span>You can add as many filters as you like by using And or Or. And lets compare Date values now; </span></p>
<div></div>
<p><span style="font-size: 10pt; font-family: 'Book Antiqua',serif;"></p>
<p class="MsoNoSpacing" style="MARGIN: 0px"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Where&gt; </span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;"> <span>               </span>&lt;And&gt; </span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 36pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Leq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 72pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;FieldRef Name=”</span><span style="font-size: 10pt; color: #ff66cc; font-family: 'Book Antiqua',serif;">FieldStartDate</span><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">” /&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 72pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Value Type=”DateTime” IncludeTimeValue=”False”&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 108pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #ff66cc; font-family: 'Book Antiqua',serif;">&lt;Today/&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 72pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Value&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 36pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Leq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 36pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Geq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 72pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;FieldRef Name=”</span><span style="font-size: 10pt; color: #ff66cc; font-family: 'Book Antiqua',serif;">FieldEndDate</span><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">” /&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 72pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Value Type=”DateTime” IncludeTimeValue=”False”&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 108pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #ff66cc; font-family: 'Book Antiqua',serif;">&lt;Today/&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 72pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Value&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 36pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Geq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/And&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Where&gt;</span></p>
<p> </p>
<p class="MsoNoSpacing" style="MARGIN: 0px">
<div class="MsoNoSpacing" style="MARGIN: 0px"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;"><span style="color: #000000;">You can use &lt;Today/&gt; to give today’s date. Or you can use &lt;Now/&gt; if you want to also take time part account.</span></span></div>
<div></div>
<p><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;"></p>
<p class="MsoNormal" style="MARGIN: 0px 0px 10pt; LINE-HEIGHT: 14.25pt"><span style="font-size: 10pt; color: #000000; font-family: 'Book Antiqua',serif;">By the way, you can use something like &lt;Today OffsetDays=”+3” /&gt; if you want to say 3 days after today.</span></p>
<p class="MsoNormal" style="MARGIN: 0px 0px 10pt; LINE-HEIGHT: 14.25pt"><span style="font-size: 10pt; color: #000000; font-family: 'Book Antiqua',serif;">To get previous days use (-) (negative numbers), or to get next days use (+) (positive numbers)</span></p>
<p class="MsoNormal" style="MARGIN: 0px 0px 10pt; LINE-HEIGHT: 14.25pt"><span style="font-size: 10pt; color: #000000; font-family: 'Book Antiqua',serif;">I searched but could not find something like OffsetMonths, if you know, please let me know.</span></p>
<p class="MsoNormal" style="MARGIN: 0px 0px 10pt; LINE-HEIGHT: 14.25pt"><span style="font-size: 10pt; color: #000000; font-family: 'Book Antiqua',serif;">Also I should say, one of the common mistakes, I am always doing; writing more than 2 statements inside an “And” or “Or”. You should not write more than 2 statements! </span></p>
<p class="MsoNormal" style="MARGIN: 0px 0px 10pt; LINE-HEIGHT: 14.25pt"><span style="font-size: 10pt; color: #000000; font-family: 'Book Antiqua',serif;">Just write it like;</span></p>
<p> </p>
<div></div>
<p><span style="font-size: 10pt; color: #000000; font-family: 'Book Antiqua',serif;"></p>
<p class="MsoNoSpacing" style="MARGIN: 0px"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Where&gt; </span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;"> <span>               </span>&lt;And&gt; </span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;"> <span>               </span>&lt;And&gt; </span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 72pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Leq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 108pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">…..</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 72pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Leq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 72pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Geq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 108pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">…..</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 72pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Geq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 72pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/And&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 36pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Geq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 72pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">…..</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 36pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Geq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/And&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Where&gt;</span></p>
<p> </p>
<p class="MsoNoSpacing" style="MARGIN: 0px"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;OrderBy&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;FieldRef Name=”</span><span style="font-size: 10pt; color: #ff66cc; font-family: 'Book Antiqua',serif;">FieldA</span><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">” Ascending=”True”/&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/OrderBy&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;"><span style="font-size: 10pt; line-height: 115%; font-family: 'Book Antiqua',serif;"><span style="color: #000000;">Take a look at my final CAML query; (just as an example)</span></span></span> </p>
<p> </p>
<p> </p>
<p></span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Query&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Where&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;And&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 36pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Eq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 72pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;FieldRef Name=”</span><span style="font-size: 10pt; color: #ff66cc; font-family: 'Book Antiqua',serif;">FieldA</span><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">” /&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 108pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Value Type=”Choice”&gt;ChoiceA&lt;/Value&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 36pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Eq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 36pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Or&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 72pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Or&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 108pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;And&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 144pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Geq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 180pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;FieldRef Name=”</span><span style="font-size: 10pt; color: #ff66cc; font-family: 'Book Antiqua',serif;">FieldStartDate</span><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">” /&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 216pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Value Type=”DateTime” IncludeTimeValue=”False”&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 216pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Today/&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 216pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Value&gt;</span></p>
<div></div>
<p><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;"></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 144pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Geq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 144pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Leq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 180pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;FieldRef Name=”</span><span style="font-size: 10pt; color: #ff66cc; font-family: 'Book Antiqua',serif;">FieldStartDate</span><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">” /&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 180pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Value Type=”DateTime” IncludeTimeValue=”False”&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 216pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Today OffsetDays=”+10″ /&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 216pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Value&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 144pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Leq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 144pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/And&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 144pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;And&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 144pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Geq&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 180pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;FieldRef Name=”</span><span style="font-size: 10pt; color: #ff66cc; font-family: 'Book Antiqua',serif;">FieldEndDate</span><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">” /&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 180pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Value Type=”DateTime” IncludeTimeValue=”False”&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 216pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Today /&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 216pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Value&gt;</span></p>
<p class="MsoNoSpacing" style="MARGIN: 0px 0px 0px 144pt; TEXT-INDENT: 36pt"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Geq&gt;</span></p>
<p> </p>
<p> </p>
<p></span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 144pt; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Leq&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 180pt; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;FieldRef Name=”</span><span style="font-size: 10pt; color: #ff66cc; font-family: 'Book Antiqua',serif;">FieldEndDate</span><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">” /&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 180pt; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Value Type=”DateTime” IncludeTimeValue=”False”&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 216pt; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Today OffsetDays=”+10″ /&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 216pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Value&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 144pt; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Leq&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 144pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/And&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 72pt; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Or&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 72pt; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;And&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 108pt; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Leq&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 144pt; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;FieldRef Name=”</span><span style="font-size: 10pt; color: #ff66cc; font-family: 'Book Antiqua',serif;">FieldStartDate</span><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">” /&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 144pt; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Value Type=”DateTime” IncludeTimeValue=”False”&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 180pt; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Today /&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 180pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Value&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 108pt; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Leq&gt;</span></p>
<div></div>
<p><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;"></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 108pt; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Geq&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 144pt; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;FieldRef Name=”</span><span style="font-size: 10pt; color: #ff66cc; font-family: 'Book Antiqua',serif;">FieldEndDate</span><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">” /&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 144pt; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Value Type=”DateTime” IncludeTimeValue=”False”&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 180pt; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;Today OffsetDays=”+10″ /&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 180pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Value&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 108pt; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Geq&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 108pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/And&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 36pt; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Or&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px 0px 0px 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/And&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Where&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;OrderBy&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px; text-indent: 36pt;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;FieldRef Name=”</span><span style="font-size: 10pt; color: #ff66cc; font-family: 'Book Antiqua',serif;">FieldStartDate</span><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">” Ascending=”True” /&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/OrderBy&gt;</span></p>
<p class="MsoNoSpacing" style="margin: 0px;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;">&lt;/Query&gt;</span></p>
<p> </p>
<p> </p>
<p></span></p>
<p class="MsoNoSpacing" style="margin: 0px;"><span style="font-size: 10pt; color: #6699ff; font-family: 'Book Antiqua',serif;"><span style="color: #000000; font-family: Book Antiqua;">Found out that there is a CAML Builder tool, you can check that out from <a title="Caml Builder" href="http://www.u2u.be/res/Tools/SharePointCamlQueryBuilder.aspx" target="_blank"><span style="color: #4779ac;">this site</span></a>…</span></span></p>
<p> </p>
<p> </p>
<p></span> </p>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.limcera.com/weblog/?feed=rss2&amp;p=3</wfw:commentRss>
		</item>
	</channel>
</rss>
