<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4120206344866327482</id><updated>2026-05-20T14:52:05.059-04:00</updated><category term="SharePoint 2010"/><category term="Java Script"/><category term="Layouts Pages"/><category term="List Provisioning"/><category term="Page Layouts"/><category term="Query Filter"/><category term="SPSiteDataQuery"/><category term="Taxonomy"/><category term="Alerts"/><category term="ECMA Script"/><category term="Lookup Field"/><category term="Site Navigation"/><category term="Assembly"/><category term="Browser"/><category term="CAML"/><category term="Content Type Forms"/><category term="Content Types"/><category term="Custom Alerts"/><category term="Custom Content Type"/><category term="Custom List View"/><category term="Discussion Groups"/><category term="Event Receivers"/><category term="FBA"/><category term="GAC"/><category term="List Fields"/><category term="Modal Popup"/><category term="Role Provider"/><category term="SPContext.Current"/><category term="SPException"/><category term="SPField"/><category term="SPList"/><category term="SPListItem Publishing"/><category term="Schema Definition"/><category term="Schema.xml"/><category term="ScriptManager"/><category term="SharePoint Package"/><category term="User Profile"/><category term="User filter"/><category term="Versioning"/><category term="Web Parts"/><category term="onet.xml"/><title type='text'>Sharepoint 2010</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>31</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-3650273089892702435</id><published>2013-10-22T11:56:00.000-04:00</published><updated>2013-10-22T11:57:56.738-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Page Layouts"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="Taxonomy"/><title type='text'>TaxonomyWebTaggingControl is not rendering properly (WebTaggingUI.css not added)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Recently, I faced a small issue with rendering the TaxonomyWebTaggingControl. It works but the display was really weird. I figured that it would be a css not being added properly to the page. I found the respective css file to be added to the page (WebTaggingUI.css). But I was not sure what control needs to be added to include that css file to the page.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
After a little bit of research and playing with my master page and page layouts, I found that the CssLink control is responsible for including required css files to the pages. I have added a new CssLink &amp;nbsp;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;(Microsoft.SharePoint.WebControls.CssLink)&lt;/span&gt;&lt;/span&gt; (shown below) control to the master page and everything magically looks to work fine.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
CssLink control added to master page:&lt;br /&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;SharePoint&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;CssLink&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;CssLink1&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Version&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;4&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
TaxonomyWebTaggingControl before the css link added:&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZx_SoTf5Gxa8UMjKOsSYNfstj9bOXwCB9-7_5PUhkYdA4ZlYSFfyPAPd3ppFgzd-8ShnozOt0ZRrlhPyIXDW-hFqviDK8h7ok_vYwYmjq1FxwXzpvLzyKo8uE2Fu-uHLYgBg_xkwqAY5h/s1600/TaxControlB4Css.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;50&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZx_SoTf5Gxa8UMjKOsSYNfstj9bOXwCB9-7_5PUhkYdA4ZlYSFfyPAPd3ppFgzd-8ShnozOt0ZRrlhPyIXDW-hFqviDK8h7ok_vYwYmjq1FxwXzpvLzyKo8uE2Fu-uHLYgBg_xkwqAY5h/s400/TaxControlB4Css.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
After adding css link control:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtTwPRfAFueBFVg6MDnr1tGS5z2uV-dWMulxL39g5GQBOtbRvV5Lxiz0GBg4Kxx3EeOgUHWde8x8FN0CnTg-7t-uPDbZFPM9tvzWyCMxzD_Aoq4MDjlDLnCFskBaNrSxEu89jt_ZY7Uz5_/s1600/TaxControlAfterCss.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtTwPRfAFueBFVg6MDnr1tGS5z2uV-dWMulxL39g5GQBOtbRvV5Lxiz0GBg4Kxx3EeOgUHWde8x8FN0CnTg-7t-uPDbZFPM9tvzWyCMxzD_Aoq4MDjlDLnCFskBaNrSxEu89jt_ZY7Uz5_/s1600/TaxControlAfterCss.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Happy Coding.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Senthil S&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/3650273089892702435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2013/10/taxonomywebtaggingcontrol-is-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/3650273089892702435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/3650273089892702435'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2013/10/taxonomywebtaggingcontrol-is-not.html' title='TaxonomyWebTaggingControl is not rendering properly (WebTaggingUI.css not added)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZx_SoTf5Gxa8UMjKOsSYNfstj9bOXwCB9-7_5PUhkYdA4ZlYSFfyPAPd3ppFgzd-8ShnozOt0ZRrlhPyIXDW-hFqviDK8h7ok_vYwYmjq1FxwXzpvLzyKo8uE2Fu-uHLYgBg_xkwqAY5h/s72-c/TaxControlB4Css.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-4320043076588869897</id><published>2013-08-28T14:54:00.001-04:00</published><updated>2013-08-29T09:02:15.163-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java Script"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="Web Parts"/><title type='text'>Not able to add web parts to any page - page does nothing when clicking &quot;Add Web Parts&quot; is clicked</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I faced a weird issue where I was not able to add any web parts to any page in the site. What weird is that Chrome works fine. It happens only in IE (all versions) and FireFox. On inspecting the bug I got an error when the page tries to get the web parts data back from the server asynchronously (you can view it in the console window/network traffic)&lt;br /&gt;
&lt;br /&gt;
The error looked in FF console window some thing like this:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0pV523afTha8EDP0WDKN_H2f8gD5zDPpm954kA1MiRO72uBtdHe3SQRM1Annxr0X6ncYbgiPOhVk7erOfsjMKVEKC6bo3PptzHE6VTtds_26cxE96u_Z-Njtf5D9ZrrmWw_ZJr-qBPv6K/s1600/ServerError-01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;243&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0pV523afTha8EDP0WDKN_H2f8gD5zDPpm954kA1MiRO72uBtdHe3SQRM1Annxr0X6ncYbgiPOhVk7erOfsjMKVEKC6bo3PptzHE6VTtds_26cxE96u_Z-Njtf5D9ZrrmWw_ZJr-qBPv6K/s400/ServerError-01.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
And the detailed Exception message was some thing like this:&lt;br /&gt;
&lt;br /&gt;
&lt;pre role=&quot;list&quot;&gt;&lt;code class=&quot;wrappedText focusRow&quot; role=&quot;listitem&quot;&gt;[FormatException: Invalid character in a Base-64 string.]
&lt;/code&gt;&lt;code class=&quot;wrappedText focusRow&quot; role=&quot;listitem&quot;&gt;   System.Convert.FromBase64String(String s) +0
&lt;/code&gt;&lt;code class=&quot;wrappedText focusRow&quot; role=&quot;listitem&quot;&gt;   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +98
&lt;/code&gt;&lt;code class=&quot;wrappedText focusRow&quot; role=&quot;listitem&quot;&gt;   System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter,&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre role=&quot;list&quot;&gt;&lt;code class=&quot;wrappedText focusRow&quot; role=&quot;listitem&quot;&gt;String serializedState) +59
&lt;/code&gt;&lt;code class=&quot;wrappedText focusRow&quot; role=&quot;listitem&quot;&gt;   System.Web.UI.HiddenFieldPageStatePersister.Load() +124
&lt;/code&gt;&lt;code class=&quot;wrappedText focusRow&quot; role=&quot;listitem&quot;&gt;
&lt;/code&gt;&lt;code class=&quot;wrappedText focusRow&quot; role=&quot;listitem&quot;&gt;[ViewStateException: Invalid viewstate. &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;pre role=&quot;list&quot;&gt;&lt;code class=&quot;wrappedText focusRow&quot; role=&quot;listitem&quot;&gt;...&lt;/code&gt;&lt;/pre&gt;
&lt;pre role=&quot;list&quot;&gt;&lt;code class=&quot;wrappedText focusRow&quot; role=&quot;listitem&quot;&gt;...&lt;/code&gt;&lt;/pre&gt;
&lt;pre role=&quot;list&quot;&gt;[HttpException (0x80004005): The state information is invalid for this&amp;nbsp;&lt;/pre&gt;
&lt;pre role=&quot;list&quot;&gt;page&amp;nbsp;&lt;/pre&gt;
&lt;pre role=&quot;list&quot;&gt;and might be corrupted.]
   System.Web.UI.ViewStateException.ThrowError(Exception inner, String&amp;nbsp;&lt;/pre&gt;
&lt;pre role=&quot;list&quot;&gt;persistedState, String errorPageMessage, Boolean macValidationError) +148
   System.Web.UI.HiddenFieldPageStatePersister.Load() +10989814
   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +11074728
   System.Web.UI.Page.LoadAllState() +46
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsy&lt;/pre&gt;
&lt;pre role=&quot;list&quot;&gt;ncPoint, Boolean includeStagesAfterAsyncPoint) +11070247
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPo&lt;/pre&gt;
&lt;pre role=&quot;list&quot;&gt;int, Boolean includeStagesAfterAsyncPoint) +11069786
   System.Web.UI.Page.ProcessRequest() +91
   System.Web.UI.Page.ProcessRequest(HttpContext context) +240
   ASP.LEFTRIGHTWIDEPAGELAYOUT_ASPX__745581150.ProcessRequest(HttpContext&amp;nbsp;&lt;/pre&gt;
&lt;pre role=&quot;list&quot;&gt;context) +9
   Microsoft.SharePoint.Publishing.TemplateRedirectionPage.ProcessRequest&lt;/pre&gt;
&lt;pre role=&quot;list&quot;&gt;(HttpContext context) +175

   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecu&lt;/pre&gt;
&lt;pre role=&quot;list&quot;&gt;tionStep.Execute() +599
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&lt;/pre&gt;
&lt;pre role=&quot;list&quot;&gt;&amp;amp; completedSynchronously)&lt;/pre&gt;
&lt;pre role=&quot;list&quot;&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;
Did some research for almost a day and it turned out to be an issue that I
 introduced when fixing an issue with Chrome browser which did not load 
the SP.js file for all the clients. I inserted the below java script in 
all the page layouts which triggered twice in IE and FF which caused the
 issue.&lt;br /&gt;
&lt;br /&gt;
The java script which introduced the bug is&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #93c47d;&quot;&gt;if (typeof (_spBodyOnLoadWrapper) != &#39;undefined&#39;) _spBodyOnLoadWrapper();&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
the js function _spBodyOnLoadWrapper() got called twice and made the web parts panel to stop working. &lt;br /&gt;
&lt;br /&gt;
I got this above javascript to fix some bugs in Chrome browser from the below site&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://developer.mintrus.com/2012/08/sharepoint-2010-improving-chrome-support/&quot;&gt;http://developer.mintrus.com/2012/08/sharepoint-2010-improving-chrome-support/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
But I made a mistake of just copying the the code to call just the function regardless of what browser it is. It made my day worse.&lt;br /&gt;
&lt;br /&gt;
Be
 cautious to not to mess with all the JavaScript function of SharePoint.
 If you do make sure twice you are doing the right thing. Track any java
 script errors occur in any page before moving forward.&lt;br /&gt;
&lt;br /&gt;
This I learnt the hard way. I still enjoy coding.&lt;br /&gt;
&lt;br /&gt;
Happy Coding.&lt;br /&gt;
Senthil S&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/4320043076588869897/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2013/08/not-able-to-add-web-parts-to-any-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/4320043076588869897'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/4320043076588869897'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2013/08/not-able-to-add-web-parts-to-any-page.html' title='Not able to add web parts to any page - page does nothing when clicking &quot;Add Web Parts&quot; is clicked'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0pV523afTha8EDP0WDKN_H2f8gD5zDPpm954kA1MiRO72uBtdHe3SQRM1Annxr0X6ncYbgiPOhVk7erOfsjMKVEKC6bo3PptzHE6VTtds_26cxE96u_Z-Njtf5D9ZrrmWw_ZJr-qBPv6K/s72-c/ServerError-01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-3991376782846390417</id><published>2013-08-20T10:16:00.000-04:00</published><updated>2013-08-28T14:55:03.125-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Site Navigation"/><title type='text'>Site Navigation does not show the subsites</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Yes. It happened to us where one WFE shows all the sub sites in the &quot;Navigation&quot; options under &quot;Navigation Editing and Sorting&quot; whereas another WFE was showing all the sub sites correctly. Dues to this the navigation menu is different between the servers.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
On researching on this issue we did not hit any pages at all but one. We tried what is told in that post as well. Tried to reset the Global Navigation to same as Parent Site and came back to the page to find out nothing shows up still.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://social.technet.microsoft.com/Forums/sharepoint/en-US/eeffd225-066f-44a1-ac8d-bdae1f7a7406/navigation-settings-out-of-synchow-to-repair&quot; title=&quot;http://social.technet.microsoft.com/Forums/sharepoint/en-US/eeffd225-066f-44a1-ac8d-bdae1f7a7406/navigation-settings-out-of-synchow-to-repair&quot;&gt;http://social.technet.microsoft.com/Forums/sharepoint/en-US/eeffd225-066f-44a1-ac8d-bdae1f7a7406/navigation-settings-out-of-synchow-to-repair&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;
Since we did a recent migration to a new server we thought some clock might have got out of sync in one of our servers and it affected the navigation system and decided to re-deploy the package again.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;
Re-deploying the whole package must have cleared up any SP cache built up internally which made it to work. Until now we do not have any idea of what has happened or how it got fixed. We are good for now.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;
Please follow the steps mentioned in the above link if that does not work just do a re-deploy to the server.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;
Thanks&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;
Senthil S&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/3991376782846390417/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2013/08/site-navigation-does-not-show-subsites.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/3991376782846390417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/3991376782846390417'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2013/08/site-navigation-does-not-show-subsites.html' title='Site Navigation does not show the subsites'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-1480980680106251845</id><published>2013-08-07T14:19:00.002-04:00</published><updated>2013-08-07T14:19:13.523-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ECMA Script"/><category scheme="http://www.blogger.com/atom/ns#" term="ScriptManager"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>ExecuteOrDelayUntilScriptLoaded does not work in SharePoint 2010</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Hoi everyone.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
It has been a very long time since I wrote a post about SharePoint. I was working on another small jQuery, KO project. Since it is nearing completion, I am back on track in SharePoint 2010.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
We had a bug where all the script calls using&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #f1c232;&quot;&gt;ExecuteOrDelayUntilScriptLoaded&lt;/span&gt;&lt;span style=&quot;color: #ffd966;&quot;&gt; &lt;/span&gt;&lt;/b&gt;doesn&#39;t get executed and was throwing exception&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #f1c232;&quot;&gt;SCRIPT5009: &#39;Type&#39; is undefined&lt;/span&gt;&lt;/b&gt; which I had no idea of. After searching for some time, I came to know that for some reason MicrosoftAjax.js does not get loaded on all pages especially in Chrome browser. I came across this post and it seemed to be working for some time after &lt;b&gt;adding reference to &quot;/_layouts/MicrosoftAjax.js&quot;&lt;/b&gt;&amp;nbsp;on the master page.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;http://sharepoint.stackexchange.com/questions/50995/js-web-worker-and-sp-js-type-is-not-defined&quot;&gt;http://sharepoint.stackexchange.com/questions/50995/js-web-worker-and-sp-js-type-is-not-defined&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;i&gt;Make sure you add MicrosoftAjax.js reference before any instance of ScriptManager gets loaded in the page. Otherwise you will get a different error saying that Sys.WebForms.PageRequestManager is not defined.&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
There are other solutions as well like the one in the below link. you can give this also a try if it is applicable.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/microsoft-jscript-runtime-error-unable-to-get-value-of-the-property-pagerequestmanager-object-is-null-or-undefined.aspx&quot;&gt;http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/microsoft-jscript-runtime-error-unable-to-get-value-of-the-property-pagerequestmanager-object-is-null-or-undefined.aspx&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
But, unfortunately then I got a different error on some other java script functions. I got the below error&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #f1c232;&quot;&gt;Sys.ArgumentTypeException: Object of type &#39;Sys._Application&#39; cannot be converted to type &#39;Sys._Application&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Again did a search and found that it can be rectified by setting the ScriptManager&#39;s&amp;nbsp;ScriptMode to &quot;Release&quot;.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 13px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 13px;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 13px;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 13px;&quot;&gt;ScriptManager&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 13px;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 13px;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 13px;&quot;&gt;&quot;ScriptManager&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 13px;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 13px;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 13px;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 13px;&quot;&gt;EnablePageMethods&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 13px;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 13px;&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 13px;&quot;&gt;ScriptMode&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 13px;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 13px;&quot;&gt;&quot;Release&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 13px;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Changing all the ScriptManager references in all the pages fixed the whole issue for now at least.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
There are other solution that you can also&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Hope this helps someone else or may for me itself sometime later.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Happy coding.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Senthil S&lt;/div&gt;
&lt;pre style=&quot;background-color: white; font-family: Consolas; font-size: 13px; text-align: justify;&quot;&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/1480980680106251845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2013/08/executeordelayuntilscriptloaded-does.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/1480980680106251845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/1480980680106251845'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2013/08/executeordelayuntilscriptloaded-does.html' title='ExecuteOrDelayUntilScriptLoaded does not work in SharePoint 2010'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-725057344546782374</id><published>2013-04-25T10:20:00.001-04:00</published><updated>2013-04-25T10:21:20.363-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Browser"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Script"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Scrollbars not appearing in IE 7 with SharePoint 2010 sites</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Finally, I had an issue with scrolling in SharePoint 2010 site pages and IE version 7 or lower. The Scroll bar appears for all the browsers but these scroll bars does appear in IE browsers version 7 and lower.&lt;br /&gt;
&lt;br /&gt;
After a long research I found a great blog post talking about the same issue I was having. I implemented the changes and magically it started working for me.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://kyleschaeffer.com/sharepoint/sharepoint-2010-scrolling/&quot; target=&quot;_blank&quot;&gt;http://kyleschaeffer.com/sharepoint/sharepoint-2010-scrolling/&amp;nbsp;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Senthil S&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/725057344546782374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2013/04/scrollbars-not-appearing-in-ie-7-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/725057344546782374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/725057344546782374'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2013/04/scrollbars-not-appearing-in-ie-7-with.html' title='Scrollbars not appearing in IE 7 with SharePoint 2010 sites'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-4887330319039209834</id><published>2012-11-20T08:53:00.001-05:00</published><updated>2012-11-26T15:48:16.795-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java Script"/><category scheme="http://www.blogger.com/atom/ns#" term="Modal Popup"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Resize SP Modal Popup (SP.UI.ModalDialog)</title><content type='html'>It has been a very long time since I posted a new blog post. I was working temporarily on MVC which is very exciting, interesting and hell lot to learn .....&lt;br /&gt;
&lt;br /&gt;
Now coming to SP 2010, recently I had a requirement to re-size the modal popup dynamically based on the content on the page. As everyone know that we can set the width and height of the modal popup before opening the popup as below.&lt;br /&gt;
&lt;br /&gt;
var options = {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; url: &quot;/_layouts/useregistration.aspx&quot;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; title: &#39;Login/Register&#39;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; allowMaximize: true,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; showClose: true,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; autoSize: false,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; y: 50,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 400,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 600&lt;br /&gt;
};&lt;br /&gt;
var currentDialog = SP.UI.ModalDialog.showModalDialog(options);&lt;br /&gt;
&lt;br /&gt;
The width and height parameters will be applied when the autoSize option is set to false. But I could not find any methods or options to re-size an already opened up popup using any functions. If the autoSize option is set to true, it re-sizes the window if the page gets posted back.&lt;br /&gt;
&lt;br /&gt;
What happens when some dynamic content gets shown/hidden using css/jQuery? SP does not resize the popup based on this.&lt;br /&gt;
&lt;br /&gt;
So I had to write a java script function to do that. I added the below function to a common JS file that is references in every page of my application to make use of it. Below is the function to re-size the popup which was opened up already.&lt;br /&gt;
&lt;br /&gt;
this.Utility.resizeSPPopupWindow = function (width, height) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $(window.frameElement).parents(&#39;.ms-dlgContent&#39;).width(width);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $(window.frameElement).parents(&#39;.ms-dlgContent&#39;).find(&#39;.ms-dlgBorder, .ms-dlgTitle&#39;).width(width);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $(window.frameElement).width(width);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var _intHeight = parseInt(height);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height = _intHeight + 34; //34 is added to the height,the title bar&#39;s height adds up&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (ex) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $(window.frameElement).parents(&#39;.ms-dlgContent&#39;).height(height);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $(window.frameElement).parents(&#39;.ms-dlgContent&#39;).find(&#39;.ms-dlgBorder&#39;).height(height);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $(window.frameElement).height(height);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Of course it needs jQuery to work, it is one-way that I know of re-sizing already opened up modal popup.&lt;br /&gt;
&lt;br /&gt;
If anyone out there knows any other way to achieve the same, I would love to know about it. Hope this helps some one.&lt;br /&gt;
&lt;br /&gt;
UPDATE: If the popup modal is a new url, both the parent and the modal popup page should be from the same domain and should be using the same protocol (http or https).&lt;br /&gt;
&lt;br /&gt;
Happy Coding !!!&lt;br /&gt;
Senthil S</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/4887330319039209834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/11/resize-sp-modal-popup-spuimodaldialog.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/4887330319039209834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/4887330319039209834'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/11/resize-sp-modal-popup-spuimodaldialog.html' title='Resize SP Modal Popup (SP.UI.ModalDialog)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-8759968464606715102</id><published>2012-05-31T15:35:00.003-04:00</published><updated>2012-06-20T14:18:19.718-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assembly"/><category scheme="http://www.blogger.com/atom/ns#" term="GAC"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint Package"/><title type='text'>Copying additional dlls (assemblies) to GAC with SharePoint project deployment</title><content type='html'>Frequently, we reference some external assemblies in any project event SharePoint projects as well. The need in the SharePoint project is that we may need to copy those dependent assemblies to GAC with the SharePoint project assembly.&lt;br /&gt;
&lt;br /&gt;
We do not want to manually copy all the dependent assemblies to GAC by ourselves. How to copy the assemblies to the GAC with the deployment itself?&lt;br /&gt;
&lt;br /&gt;
The trick is to add the reference in thePackage.package file to tell the SharePoint to copy the assemblies also to the GAC. Just edit the Package.package file in a notepad or any xml editor and add the reference just like below.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7Vbazy5_997_cJCnwsFq_nr78kko6xKEu0Qo0so1xYZ4MxSDnMgdSqHTt4qZOfINzg4_KQV9-Xoq1V_l-roeXfZcK_xKczpaufrUNT0QlRg1QBzDYTRyPIcTuqXweMnWTRzk8rhoIEmxf/s1600/Package.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;220&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7Vbazy5_997_cJCnwsFq_nr78kko6xKEu0Qo0so1xYZ4MxSDnMgdSqHTt4qZOfINzg4_KQV9-Xoq1V_l-roeXfZcK_xKczpaufrUNT0QlRg1QBzDYTRyPIcTuqXweMnWTRzk8rhoIEmxf/s400/Package.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;background-color: #134f5c; font-size: 16px;&quot;&gt;Things to Note:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;All the assemblies to be copied to GAC needs to be signed with a strong key.&lt;/li&gt;
&lt;li&gt;The &quot;sourcepath&quot; value is the relative path of the location of the referenced assembly&lt;/li&gt;
&lt;li&gt;&quot;SafeControl&quot; entry may be needed based on how the control is being used. (mostly needed to be used as any UI control)&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/8759968464606715102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/05/copying-additional-dlls-assemblies-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/8759968464606715102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/8759968464606715102'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/05/copying-additional-dlls-assemblies-to.html' title='Copying additional dlls (assemblies) to GAC with SharePoint project deployment'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7Vbazy5_997_cJCnwsFq_nr78kko6xKEu0Qo0so1xYZ4MxSDnMgdSqHTt4qZOfINzg4_KQV9-Xoq1V_l-roeXfZcK_xKczpaufrUNT0QlRg1QBzDYTRyPIcTuqXweMnWTRzk8rhoIEmxf/s72-c/Package.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-8493284679876593078</id><published>2012-05-29T12:07:00.001-04:00</published><updated>2012-05-29T12:13:34.903-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Layouts Pages"/><category scheme="http://www.blogger.com/atom/ns#" term="SPList"/><category scheme="http://www.blogger.com/atom/ns#" term="SPListItem Publishing"/><category scheme="http://www.blogger.com/atom/ns#" term="Versioning"/><title type='text'>Manage SPListItem publishing programatically</title><content type='html'>Recently, I had to work on converting a regular SPList to have similar to a publishing feature. Like, have an item edited, review it and then publish the page for public.&lt;br /&gt;
&lt;br /&gt;
I made the below modifications to the list settings to enable versioning of list items.&lt;br /&gt;
Go to the List Setting page and select &quot;Versioning Settings&quot; and set the options to the same as below.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXxvVeoMusjrsaoeM1n3SQEkkMF2kx3J2cnMY7NPlqQI6_FdhQuIfwTxNZwcGxcYiSPzSKZrRgAbw_Evk4yo5sd4ByhCXCCyA9FgH9jlv73UnccvysROahimnmiChEAvG5ckgF3AvoMjWA/s1600/ListSettings.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;311&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXxvVeoMusjrsaoeM1n3SQEkkMF2kx3J2cnMY7NPlqQI6_FdhQuIfwTxNZwcGxcYiSPzSKZrRgAbw_Evk4yo5sd4ByhCXCCyA9FgH9jlv73UnccvysROahimnmiChEAvG5ckgF3AvoMjWA/s400/ListSettings.jpg&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt; &lt;/div&gt;
This enables the list items in the list to be version controlled. The author can save a version of the list item, review it and publish it at any point of time or revert to its previously published version.&lt;br /&gt;
&lt;br /&gt;
I wanted to do it programatically using a layouts page (application page) since we are using the application pages as the default display form of the particular content type.&lt;br /&gt;
&lt;br /&gt;
For saving a new SPListItem, the code should look similar to this. This will save the list item content and assign the status to &quot;Pending&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;var item =&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-size: x-small;&quot;&gt; SPContext&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;.Current.ListItem&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;item[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Title&quot;&lt;/span&gt;]&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPHttpUtility&lt;/span&gt;.ConvertSimpleHtmlToText(&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.txtTitle.Text,&amp;nbsp;255);
&lt;/span&gt;&lt;span style=&quot;color: green; font-size: x-small;&quot;&gt;//this&amp;nbsp;will&amp;nbsp;set&amp;nbsp;the&amp;nbsp;status&amp;nbsp;of&amp;nbsp;the&amp;nbsp;current&amp;nbsp;item&amp;nbsp;to&amp;nbsp;&quot;Pending&quot;&lt;/span&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;item.Update();
&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;To know how to get the CurrentListItem in an app page, please see my other post &lt;a href=&quot;http://sharepoint2010funfacts.blogspot.com/2011/10/get-spcontextcurrentlistitem-in.html&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;To publish the list item, the code would look like this.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #2b91af;&quot;&gt;SPContext&lt;/span&gt;.Current.ListItem.ModerationInformation&amp;nbsp;!=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&gt;)
{
    &lt;span style=&quot;color: #2b91af;&quot;&gt;SPContext&lt;/span&gt;.Current.ListItem.ModerationInformation.Status&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPModerationStatusType&lt;/span&gt;.Approved;
    &lt;span style=&quot;color: #2b91af;&quot;&gt;SPContext&lt;/span&gt;.Current.ListItem.ModerationInformation.Comment&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;String&lt;/span&gt;.Format(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Published&amp;nbsp;on&amp;nbsp;{0}&amp;nbsp;by&amp;nbsp;{1}&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2b91af;&quot;&gt;                                                   DateTime&lt;/span&gt;.Now.ToString(),&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPContext&lt;/span&gt;.Current.Web.CurrentUser.Email);
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;SPContext&lt;/span&gt;.Current.ListItem.Update();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;    //Added&amp;nbsp;to&amp;nbsp;refresh&amp;nbsp;the&amp;nbsp;page&amp;nbsp;content&amp;nbsp;and&amp;nbsp;hide&amp;nbsp;the&amp;nbsp;publishing&amp;nbsp;controls&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;    Response.Redirect(&lt;span style=&quot;color: #2b91af;&quot;&gt;SPContext&lt;/span&gt;.Current.ListItem.Url);
}&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
To revert a saved list item to it&#39;s previously published version, the code would look like below:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #2b91af;&quot;&gt;SPContext&lt;/span&gt;.Current.ListItem.ModerationInformation&amp;nbsp;!=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&gt;&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPContext&lt;/span&gt;.Current.ListItem.Level&amp;nbsp;!=&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPFileLevel&lt;/span&gt;.Published)
{
    &lt;span style=&quot;color: green;&quot;&gt;//Getting&amp;nbsp;the&amp;nbsp;last&amp;nbsp;published&amp;nbsp;version&amp;nbsp;of&amp;nbsp;the&amp;nbsp;current item&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;lastPublishedVersionInfo&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPContext&lt;/span&gt;.Current.ListItem.Versions.Cast&amp;lt;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPListItemVersion&lt;/span&gt;&amp;gt;()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.Where(v&amp;nbsp;=&amp;gt;&amp;nbsp;v.Level&amp;nbsp;==&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPFileLevel&lt;/span&gt;.Published)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.OrderByDescending(l&amp;nbsp;=&amp;gt;&amp;nbsp;l.Created).Take(1);
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;SPContext&lt;/span&gt;.Current.ListItem.Versions.RestoreByID(lastPublishedVersionInfo.First().VersionId);
 
    &lt;span style=&quot;color: #2b91af;&quot;&gt;SPContext&lt;/span&gt;.Current.ListItem.ModerationInformation.Status&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPModerationStatusType&lt;/span&gt;.Approved;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;SPContext&lt;/span&gt;.Current.ListItem.ModerationInformation.Comment&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;String&lt;/span&gt;.Format(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Reverted&amp;nbsp;on&amp;nbsp;{0}&amp;nbsp;by&amp;nbsp;{1}&quot;&lt;/span&gt;, 
                                                               &lt;span style=&quot;color: #2b91af;&quot;&gt;DateTime&lt;/span&gt;.Now.ToString(),&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPContext&lt;/span&gt;.Current.Web.CurrentUser.Email);
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;SPContext&lt;/span&gt;.Current.ListItem.Update();
 
&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Redirect(&lt;span style=&quot;color: #2b91af;&quot;&gt;BlogManager&lt;/span&gt;.GetBlogPostUrl(&lt;span style=&quot;color: #2b91af;&quot;&gt;SPContext&lt;/span&gt;.Current.Web,&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPContext&lt;/span&gt;.Current.List.ID,&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPContext&lt;/span&gt;.Current.ListItem.ID));
}&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
Hope this helps some one or even myself somewhere in the future.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Senthil S&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/8493284679876593078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/05/manage-splistitem-publishing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/8493284679876593078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/8493284679876593078'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/05/manage-splistitem-publishing.html' title='Manage SPListItem publishing programatically'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXxvVeoMusjrsaoeM1n3SQEkkMF2kx3J2cnMY7NPlqQI6_FdhQuIfwTxNZwcGxcYiSPzSKZrRgAbw_Evk4yo5sd4ByhCXCCyA9FgH9jlv73UnccvysROahimnmiChEAvG5ckgF3AvoMjWA/s72-c/ListSettings.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-991820915210214299</id><published>2012-05-08T10:45:00.000-04:00</published><updated>2012-05-08T10:46:28.263-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CAML"/><category scheme="http://www.blogger.com/atom/ns#" term="Query Filter"/><category scheme="http://www.blogger.com/atom/ns#" term="SPSiteDataQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="User filter"/><title type='text'>Filtering list items by user id using CAML in SPSiteDataQuery</title><content type='html'>I had some struggle finding out how to filter the list items by a particular user (SharePoint user). I am sure that this can be done but the filter does not seem to work for me if it is using the field value as &quot;Integer&quot;. It was working very fine if the filter is applied for current logged in user as below:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #cccccc; font-family: consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;Query&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;Where&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;Eq&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;FieldRef&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;Author&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;Integer&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;UserID&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;Integer&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;Eq&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;Where&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;Query&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/pre&gt;
Of course, this only works if the filtering is applied for the currently logged in user. so, what does need to happen when the query needs to filter based on another user?&lt;br /&gt;
&lt;br /&gt;
I tried the above CAML by replacing the&lt;span style=&quot;background-color: #cccccc; color: blue; font-size: x-small;&quot;&gt; &lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #cccccc; color: #a31515; font-family: inherit; font-size: x-small;&quot;&gt;UserID&lt;/span&gt;&lt;span style=&quot;background-color: #cccccc; color: blue; font-family: inherit; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #cccccc; color: red; font-family: inherit; font-size: x-small;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;background-color: #cccccc; color: blue; font-family: inherit; font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #cccccc; font-family: inherit; font-size: x-small;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #cccccc; color: blue; font-family: inherit; font-size: x-small;&quot;&gt;Integer&lt;/span&gt;&lt;span style=&quot;background-color: #cccccc; font-family: inherit; font-size: x-small;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #cccccc; color: blue; font-family: inherit; font-size: x-small;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #cccccc; color: blue;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;with the particular user&#39;s id value (SPUser.ID). This does not seem to work. Always it returns no items.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #cccccc; font-family: consolas;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;Query&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;Where&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;Eq&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;FieldRef&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;Author&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;Integer&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: black;&quot;&gt;75&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;Eq&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;Where&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: x-small;&quot;&gt;Query&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;/pre&gt;
&lt;br /&gt;
It turns out to be an attribute &quot;LookupId&quot; needs to be added to the &amp;lt;FieldRef&amp;gt; element as below.&lt;br /&gt;
&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #cccccc; font-family: consolas;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Query&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Where&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Eq&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;FieldRef&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;Author&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;LookupId&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;True&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;Integer&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;75
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Eq&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Where&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Query&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
Happy Coding.&lt;br /&gt;
Senthil S</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/991820915210214299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/05/filtering-list-items-by-user-id-using.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/991820915210214299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/991820915210214299'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/05/filtering-list-items-by-user-id-using.html' title='Filtering list items by user id using CAML in SPSiteDataQuery'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-2973176517919581536</id><published>2012-05-01T10:37:00.000-04:00</published><updated>2012-05-01T10:37:00.517-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Query Filter"/><category scheme="http://www.blogger.com/atom/ns#" term="SPSiteDataQuery"/><title type='text'>Get items from multiple webs using SPSiteDataQuery</title><content type='html'>I know there is no easy way to get list items from multiple webs using SPSiteDataQuery. But I had to work on a similar situation for one of my projects. Looking deep into the list items attributes I came to know that there is a possibility to do the filtering based on the web itself (given some other small conditions)&lt;br /&gt;
&lt;br /&gt;
Properties &quot;ServerUrl&quot; (server Relative Url) and &quot;EncodedAbsUrl&quot; (Encoded Absolute Url) cannot be used since the field values are of type &quot;Computed&quot; and SPSiteDataQuery does not filter based on &quot;Computed&quot; field values (there are some workarounds for some computed fields as well)&lt;br /&gt;
&lt;br /&gt;
So I started looking into &quot;FileRef&quot; (URL Path) and &quot;FileDirRef&quot; (Path) for filtering. It seems to be working for me.&lt;br /&gt;
&lt;br /&gt;
For a particular SPFile/SPListItem the above field values would give the exact location of the item.the values would look similar like below:&lt;br /&gt;
&lt;b style=&quot;background-color: #cccccc; color: #f3f3f3;&quot;&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #e69138;&quot;&gt;
&lt;b&gt;Publishing Content Types: &lt;/b&gt;&lt;/div&gt;
&lt;i&gt;FileDirRef:&lt;/i&gt; SubSite1/SubSite12/Pages&lt;br /&gt;
&lt;i&gt;FileRef:&lt;/i&gt; SubSite1/SubSite12/Pages/default.aspx&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #e69138;&quot;&gt;
&lt;b&gt;Non-Publishing Content Types: (normal SPListItems)&lt;/b&gt;&lt;/div&gt;
&lt;i&gt;FileDirRef:&lt;/i&gt; SubSite1/SubSite12/Lists/{ListRootFolderUrl}&lt;br /&gt;
&lt;i&gt;FileRef:&lt;/i&gt; SubSite1/SubSite12/Lists/{ListRootFolderUrl}/{ItemName}&lt;br /&gt;
&lt;br /&gt;
Using the above field values and with proper CAML filter xml, items can be filtered from multiple webs.&lt;br /&gt;
&lt;br /&gt;
In my case I was querying against non-publishing content types. So I was applying ContentTypeId filter primarily to filter based on content type. Above that, I was applying filters for &quot;&lt;i&gt;FileRef&lt;/i&gt;&quot; values to get the items from multiple webs.&lt;br /&gt;
&lt;br /&gt;
Sample CAML Query would look like this:&lt;br /&gt;
&lt;i&gt;(The first one with value &quot;Lists&quot; is to filter the items in the root web) &lt;/i&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Teywd0dFejQqF3L_9Bjf-TBjV-D6wzyZeaLDbjs4jw_d_ZbTr2UfpNb0TCfc18hN1klgmIx_Saf6d5o-WLWwPSyjw7EM7XaLkkgYBriiQRyp7IorsGKsNBqZhF0ZXWf0p0U20UNlY3Hx/s1600/CAMLQuery.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Teywd0dFejQqF3L_9Bjf-TBjV-D6wzyZeaLDbjs4jw_d_ZbTr2UfpNb0TCfc18hN1klgmIx_Saf6d5o-WLWwPSyjw7EM7XaLkkgYBriiQRyp7IorsGKsNBqZhF0ZXWf0p0U20UNlY3Hx/s1600/CAMLQuery.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
In addition to the above filters, I was also using the &quot;ContentTypeId&quot; filter to get list items of particular type.&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: #e69138;&quot;&gt;NOTE:&lt;/b&gt; If you are using just &quot;SubSite1/SubSite12&quot; to filter on the items, it would include the sub webs as well. Include the &quot;/Lists&quot; or &quot;/Pages&quot; at the end of web relative url to restrict to a single site.&lt;br /&gt;
&lt;br /&gt;
If you have any questions, please add a comment.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Senthil S</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/2973176517919581536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/05/get-items-from-multiple-webs-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/2973176517919581536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/2973176517919581536'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/05/get-items-from-multiple-webs-using.html' title='Get items from multiple webs using SPSiteDataQuery'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Teywd0dFejQqF3L_9Bjf-TBjV-D6wzyZeaLDbjs4jw_d_ZbTr2UfpNb0TCfc18hN1klgmIx_Saf6d5o-WLWwPSyjw7EM7XaLkkgYBriiQRyp7IorsGKsNBqZhF0ZXWf0p0U20UNlY3Hx/s72-c/CAMLQuery.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-119857764159664288</id><published>2012-04-26T13:16:00.007-04:00</published><updated>2012-05-01T10:39:00.892-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Content Types"/><category scheme="http://www.blogger.com/atom/ns#" term="List Fields"/><category scheme="http://www.blogger.com/atom/ns#" term="List Provisioning"/><category scheme="http://www.blogger.com/atom/ns#" term="SPField"/><title type='text'>Error while adding Site columns (fields) to list content types</title><content type='html'>&lt;div style=&quot;font-family: inherit;&quot;&gt;
Recently, I had a situation where I need to add site columns (available in root web) to a content type reference in a particular list under a particular web.&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
I wrote the code below&amp;nbsp;&lt;/div&gt;
&lt;pre style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt; field&amp;nbsp;=&amp;nbsp;web.Site.RootWeb.AvailableFields[&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Guid&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&amp;lt;&amp;lt;FieldID&amp;gt;&amp;gt;&quot;&lt;/span&gt;)];
&lt;span style=&quot;color: blue;&quot;&gt;foreach&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #2b91af;&quot;&gt;SPContentType&lt;/span&gt;&amp;nbsp;cType&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;in&lt;/span&gt;&amp;nbsp;web.Lists[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;ListName&quot;&lt;/span&gt;].ContentTypes)
{
    cType.Fields.Add(field);
&amp;nbsp;&amp;nbsp;&amp;nbsp; cType.Update();
}&lt;/pre&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
but it was not working as expected and throwing the below exception&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&quot;&lt;span style=&quot;color: #cc0000;&quot;&gt;This functionality is unavailable for field collections not associated with a list.&lt;/span&gt;&quot;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
After some research, I came to know that the field needs to be added as a SPFieldLink and not as SPField itself since the field already exists in the root web. The below modified code is working fine for me.&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt; field&amp;nbsp;=&amp;nbsp;web.Site.RootWeb.AvailableFields[&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Guid&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&amp;lt;&amp;lt;FieldID&amp;gt;&amp;gt;&quot;&lt;/span&gt;)];
&lt;span style=&quot;color: blue;&quot;&gt;foreach&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #2b91af;&quot;&gt;SPContentType&lt;/span&gt;&amp;nbsp;cType&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;in&lt;/span&gt;&amp;nbsp;web.Lists[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;ListName&quot;&lt;/span&gt;].ContentTypes)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;SPFieldLink&lt;/span&gt; fieldLink&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPFieldLink&lt;/span&gt;(field);
&amp;nbsp;&amp;nbsp;&amp;nbsp; cType.FieldLinks.Add(fieldLink);
&amp;nbsp;&amp;nbsp;&amp;nbsp; cType.Update();&lt;/pre&gt;
&lt;pre style=&quot;font-family: inherit;&quot;&gt;}&lt;/pre&gt;
&lt;pre style=&quot;font-family: inherit;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: inherit;&quot;&gt;Hopefully this helps some one or may be myself in the future when I struggle with the same issue.&lt;/pre&gt;
&lt;pre style=&quot;font-family: inherit;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: inherit;&quot;&gt;Thanks&lt;/pre&gt;
&lt;pre style=&quot;font-family: inherit;&quot;&gt;Senthil S&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/119857764159664288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/04/error-while-adding-site-columns-fields.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/119857764159664288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/119857764159664288'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/04/error-while-adding-site-columns-fields.html' title='Error while adding Site columns (fields) to list content types'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-1078269907546501708</id><published>2012-04-02T13:58:00.000-04:00</published><updated>2012-04-02T13:58:00.177-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java Script"/><category scheme="http://www.blogger.com/atom/ns#" term="Page Layouts"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Java script error when trying to change Page Layout</title><content type='html'>Recently, I faced a weird issue with SharePoint publishing pages and changing the layout of the page. I was able to add a new publishing page with different layouts in a pages library. But when I try to change the page layout of an existing page, I got a java script error in cui.debug.js. Just like the one below, I was not even be able to get the drop down with different page layouts to change&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiK5gvUa1iH_g5dqikDWFxdw_R8S5WWe41Toxu4_CFOhF-rKK_JdToh52ggrB4hnQaH31TJcjtNGtC_KhFeadzNWyXoLuJfWEbLUqxnGbtPq_tjBW4tAfJC9fq2-JcSDPaHSp4h_H6U-Iwg/s1600/CUI.Debug.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;210&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiK5gvUa1iH_g5dqikDWFxdw_R8S5WWe41Toxu4_CFOhF-rKK_JdToh52ggrB4hnQaH31TJcjtNGtC_KhFeadzNWyXoLuJfWEbLUqxnGbtPq_tjBW4tAfJC9fq2-JcSDPaHSp4h_H6U-Iwg/s320/CUI.Debug.JPG&quot; width=&quot;320&quot; /&gt;&amp;nbsp;&lt;/a&gt; &lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;To fix this issue I had to debug the java script (CUI.debug.js) file in IE 8 or greater using the Developer tools. Once the exception occurred in the java script, traced the function calls using the &quot;Call Stack&quot; option and found a variable &quot;$v_0.PopulationXML&quot; and inspected the XML in VS and found the malformed XML.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8Z6qlWu5hqI0OsW4qC3oH5d1N4rs8LVSobbvBEFf-GQOxj4rINj6q5etKhXJLIxBiQxaqC9xZBCW_MKu6sTET3M7pQLG0ZS9mVBV68Kcmr-W6RzEwu94Q6MGfzd-lUleK-lrlmPXuYP5V/s1600/CUI.Debug.variable.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;52&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8Z6qlWu5hqI0OsW4qC3oH5d1N4rs8LVSobbvBEFf-GQOxj4rINj6q5etKhXJLIxBiQxaqC9xZBCW_MKu6sTET3M7pQLG0ZS9mVBV68Kcmr-W6RzEwu94Q6MGfzd-lUleK-lrlmPXuYP5V/s640/CUI.Debug.variable.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;After some research, I came to know that there was a orphaned page layout in the &quot;Master Pages and Page Layouts&quot; gallery. I was testing something else with page layout and content type relationships and left it there. But I removed the content type associated with the page layout.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;After I deleted the particular page layout from the gallery, everything started to work fine.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Thanks&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Senthil S&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/1078269907546501708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/04/java-script-error-when-trying-to-change.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/1078269907546501708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/1078269907546501708'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/04/java-script-error-when-trying-to-change.html' title='Java script error when trying to change Page Layout'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiK5gvUa1iH_g5dqikDWFxdw_R8S5WWe41Toxu4_CFOhF-rKK_JdToh52ggrB4hnQaH31TJcjtNGtC_KhFeadzNWyXoLuJfWEbLUqxnGbtPq_tjBW4tAfJC9fq2-JcSDPaHSp4h_H6U-Iwg/s72-c/CUI.Debug.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-5720967053791682717</id><published>2012-03-12T13:55:00.000-04:00</published><updated>2012-03-12T13:55:35.002-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FBA"/><category scheme="http://www.blogger.com/atom/ns#" term="Role Provider"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Refreshing user roles using custom role provider without logging out</title><content type='html'>Recently, I had a situation where the user&#39;s roles needed to refresh to allow the user to gain access into some site&#39;s resources. We were using a custom role provider and custom membership provider to manage our users. We were able to assign roles to user when they click on a button control. But, the problem we faced with this is that the user has to log out and log back in to get the role he/she just got assigned. Obviously, no one liked it and it should be seamless to the end user.&lt;br /&gt;
&lt;br /&gt;
After a long research it turns out to be that the SP 2010 somehow caches or stores the user&#39;s roles in memory until the user logs off or the session ends. so I was searching for a way to force SharePoint to refresh the role assignments for the current user. I came across this great post&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://blogs.msdn.com/b/scicoria/archive/2011/06/15/hack-forcing-fba-token-refresh-against-spclaimprovider-with-no-credential-challenge.aspx&quot;&gt;Force FBA Token Refresh&amp;nbsp;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
You do need to have your own global.asax file to the webroot (where your web.config lives for the front-end servers).&lt;br /&gt;
&lt;br /&gt;
After implementing the above method everything worked perfectly. I found that this particular event handler code is getting called for every web request to the server. so if you are planning on doing any costly operation, do it with caution.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Senthil S</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/5720967053791682717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/03/refreshing-user-roles-using-custom-role.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/5720967053791682717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/5720967053791682717'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/03/refreshing-user-roles-using-custom-role.html' title='Refreshing user roles using custom role provider without logging out'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-3649124388406990471</id><published>2012-01-19T08:50:00.000-05:00</published><updated>2012-01-19T08:50:35.495-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Content Type Forms"/><category scheme="http://www.blogger.com/atom/ns#" term="Custom Content Type"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Custom FormUrl s (Display, Edit &amp; New) does not work for a custom content type</title><content type='html'>I was developing a custom list template with a custom content type. I had to implement our own custom forms for our custom content type (MyContentType). You can get how to add custom FormUrls for a content type from this MSDN documentation (&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa544142.aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/aa544142.aspx&lt;/a&gt;). &lt;br /&gt;
&lt;br /&gt;
I did change the &amp;lt;FormUrls&amp;gt; in the custom content type definition as below. Even after I tried deploying quite a few times, it did not seems to take effect.&lt;br /&gt;
&lt;br /&gt;
I was totally confused. After some struggle, I changed the inheriting content type to &quot;Item&quot; (0x0100) instead of &quot;Post&quot; (0x0110) content type, then the custom forms took the effect.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh71j2YgMjjYiLmTdsS9TdC6TDXdiAYgKAefnyljirKSegppvqF8xx0V19uAWF47f1TfHEAW4QPNQNStrej0RUF5BUJJLU_F69uGzjK4WXF6TTAhRdsJiBgLo5rdiiwmbcgD3QAQrENRx1I/s1600/PostCtInherit.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;171&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh71j2YgMjjYiLmTdsS9TdC6TDXdiAYgKAefnyljirKSegppvqF8xx0V19uAWF47f1TfHEAW4QPNQNStrej0RUF5BUJJLU_F69uGzjK4WXF6TTAhRdsJiBgLo5rdiiwmbcgD3QAQrENRx1I/s400/PostCtInherit.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
So, somehow it seems to me that some OOTB content types have display forms defined and it is not allowed to be overridden by our custom forms urls.&lt;br /&gt;
&lt;br /&gt;
Happy coding&lt;br /&gt;
Senthil S</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/3649124388406990471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/01/custom-formurl-s-display-edit-new-does.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/3649124388406990471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/3649124388406990471'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/01/custom-formurl-s-display-edit-new-does.html' title='Custom FormUrl s (Display, Edit &amp; New) does not work for a custom content type'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh71j2YgMjjYiLmTdsS9TdC6TDXdiAYgKAefnyljirKSegppvqF8xx0V19uAWF47f1TfHEAW4QPNQNStrej0RUF5BUJJLU_F69uGzjK4WXF6TTAhRdsJiBgLo5rdiiwmbcgD3QAQrENRx1I/s72-c/PostCtInherit.JPG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-8598194663393200196</id><published>2012-01-18T10:48:00.000-05:00</published><updated>2012-01-18T10:48:31.321-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Query Filter"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="SPSiteDataQuery"/><title type='text'>SPSiteDataQuery not returning all results when using ContentType filter</title><content type='html'>Recently, I was working on a case where all the SPListItems using a specific content type needs to be listed from the whole site collection. As you all know, SPSiteDataQuery is the way to go.&lt;br /&gt;
&lt;br /&gt;
As I was getting to the end I noticed it was not returning all the items from the whole site collection. Instead it is returning only a few items, more like list items only from one particular list (weird!!! right) and no errors as well. If the same web part is added in some specific inner webs and tried to get all teh items from current web and all the sub webs the query works perfectly well. I was totally confused ...&lt;br /&gt;
&lt;br /&gt;
After some researches, I came across this thread (&lt;a href=&quot;http://social.technet.microsoft.com/Forums/en/sharepoint2010programming/thread/1294669a-546d-44f1-8b7d-6972bc11bc34&quot;&gt;http://social.technet.microsoft.com/Forums/en/sharepoint2010programming/thread/1294669a-546d-44f1-8b7d-6972bc11bc34&lt;/a&gt;) where it said the SPSiteDataQuery has some issues with filtering with &quot;Computed&quot; fields such as &quot;ContentType&quot; field. So I changed the filter from &quot;ContentType&quot; to &quot;ContentTypeID&quot; which f type &quot;ContentTypeId&quot; which seems to be working perfectly fine.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b style=&quot;color: orange;&quot;&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;ContentType Filter:&lt;/span&gt; &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Where&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Eq&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;FieldRef Name=&quot;ContentType&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Value Type=&quot;Computed&quot;&amp;gt;My Content Type&amp;lt;/Value&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Eq&amp;gt;&lt;br /&gt;
&amp;lt;/Where&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #b45f06; font-size: large;&quot;&gt;&lt;b&gt;ConteTypeId Filter:&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #b45f06; font-size: large;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Where&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;BeginsWith&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;FieldRef Name=&quot;ContentTypeId&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Value Type=&quot;ContentTypeId&quot;&amp;gt;My Content Type&amp;lt;/Value&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/BeginsWith&amp;gt;&lt;br /&gt;
&amp;lt;/Where&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Above filter goes for the &quot;.Query&quot; attribute of the SPSiteDataQuery to filter by ContentType name and ContentTypeID respectively.&lt;br /&gt;
&lt;br /&gt;
Hope this helps someone facing the same issue.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Senthil S</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/8598194663393200196/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/01/spsitedataquery-not-returning-all.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/8598194663393200196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/8598194663393200196'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/01/spsitedataquery-not-returning-all.html' title='SPSiteDataQuery not returning all results when using ContentType filter'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-1305703030172660676</id><published>2012-01-09T15:09:00.000-05:00</published><updated>2012-01-09T15:09:33.774-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="List Provisioning"/><category scheme="http://www.blogger.com/atom/ns#" term="Lookup Field"/><category scheme="http://www.blogger.com/atom/ns#" term="Schema Definition"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="Taxonomy"/><title type='text'>Adding Metadata fields as View fields in Schema.xml does not capture values</title><content type='html'>Recently, I worked on creating a custom list definition from a custom content type. That was not a big deal with the awesome VS 2010. BUT, I faced an issue with one field (Enterprise Keywords) with capturing data selected in it.&lt;br /&gt;
&lt;br /&gt;
I was using custom forms for the content type&#39;s Display, Edit and Delete forms. First I was thinking that I was doing something wrong with my custom forms. I changed the forms to default OOTB default list forms for that content type and deployed. But, even with the default forms also it was failing.&lt;br /&gt;
&lt;br /&gt;
Then i found out if I remove the &quot;Enterprise Keywords&quot; column from the list fields (not the content type fields) and re-add the same, it was working fine.&lt;br /&gt;
&lt;br /&gt;
After a long research, I found this blog (&lt;a href=&quot;http://www.sharepointconfig.com/2011/03/the-complete-guide-to-provisioning-sharepoint-2010-managed-metadata-fields&quot;&gt;http://www.sharepointconfig.com/2011/03/the-complete-guide-to-provisioning-sharepoint-2010-managed-metadata-fields&lt;/a&gt;) which explained me about the list event receivers get added for capturing the Taxonomy Lookup fields.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh95s3ENKzZvJyws2RxPnv49p1wXFW2rKFlhqZSwcWOqy0BveuFb_HNUaCh1bXs5EvatP-z_DsRN51Yw_LP7SWbdJKhk4WgjAQjc2qE7JHasjf4XSCUWx5j6xfkyJ7fc_KnLCoH1zJEKa0Q/s1600/Keywords-ListReceivers.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh95s3ENKzZvJyws2RxPnv49p1wXFW2rKFlhqZSwcWOqy0BveuFb_HNUaCh1bXs5EvatP-z_DsRN51Yw_LP7SWbdJKhk4WgjAQjc2qE7JHasjf4XSCUWx5j6xfkyJ7fc_KnLCoH1zJEKa0Q/s1600/Keywords-ListReceivers.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
After adding the above mentioned Item Event receivers based on the list template everything seemed to be working fine. Use the below elements.xml to add the above mentioned item event receivers.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Elements&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;http://schemas.microsoft.com/sharepoint/&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Receivers&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;ListTemplateId&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;10002&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Receiver&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;TaxonomyItemSynchronousAddedEventReceiver&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;ItemAdding&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Assembly&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Microsoft.SharePoint.Taxonomy,&amp;nbsp;Version=14.0.0.0,&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&amp;nbsp;Culture=neutral,&amp;nbsp;PublicKeyToken=71e9bce111e9429c&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Assembly&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Microsoft.SharePoint.Taxonomy.TaxonomyItemEventReceiver&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;SequenceNumber&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;10000&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;SequenceNumber&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Receiver&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Receiver&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;TaxonomyItemUpdatingEventReceiver&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;ItemUpdating&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Assembly&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Microsoft.SharePoint.Taxonomy,&amp;nbsp;Version=14.0.0.0,&amp;nbsp;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;Culture=neutral,&amp;nbsp;PublicKeyToken=71e9bce111e9429c&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Assembly&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Microsoft.SharePoint.Taxonomy.TaxonomyItemEventReceiver&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;SequenceNumber&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;10000&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;SequenceNumber&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Receiver&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Receivers&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Elements&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
Just make sure the &quot;ListTemplateId&quot; matches with the &quot;Type&quot; attribute defined in the List Template definition .&lt;br /&gt;
&lt;br /&gt;
Happy coding.&lt;br /&gt;
Senthil S</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/1305703030172660676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/01/adding-metadata-fields-as-view-fields.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/1305703030172660676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/1305703030172660676'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/01/adding-metadata-fields-as-view-fields.html' title='Adding Metadata fields as View fields in Schema.xml does not capture values'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh95s3ENKzZvJyws2RxPnv49p1wXFW2rKFlhqZSwcWOqy0BveuFb_HNUaCh1bXs5EvatP-z_DsRN51Yw_LP7SWbdJKhk4WgjAQjc2qE7JHasjf4XSCUWx5j6xfkyJ7fc_KnLCoH1zJEKa0Q/s72-c/Keywords-ListReceivers.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-1444240530148215158</id><published>2012-01-04T11:26:00.000-05:00</published><updated>2012-01-04T11:26:20.029-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Custom List View"/><category scheme="http://www.blogger.com/atom/ns#" term="Layouts Pages"/><category scheme="http://www.blogger.com/atom/ns#" term="Schema.xml"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Using master page and layouts page in custom list view</title><content type='html'>I was struggling for couple of days now on how to make use of any master page in a layouts page which is used for a view of a custom list created using custom list schema.xml.&lt;br /&gt;
&lt;br /&gt;
How to create a custom list definition is explained here (&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ff728096.aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/ff728096.aspx&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;
I was able to create a custom list definition and added a custom list view page also in the schema.xml file itself. Here is how to add a custom list view using a layouts page (application page)&lt;br /&gt;
&lt;br /&gt;
After adding a custom list schema, find the node &quot;&amp;lt;Views&amp;gt;&quot; and add a new &quot;&amp;lt;View&amp;gt;&quot; tag. You can just copy and paste the already existing &quot;&amp;lt;View&amp;gt;&quot; tag which has the BaseViewID=&quot;1&quot; (this is the one which constitutes for the web page view. &lt;b style=&quot;color: #b45f06;&quot;&gt;It is important that you should be copying the whole &quot;&amp;lt;View&amp;gt;&quot; node with all the internal elements&lt;/b&gt; like below.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHoGcBm__oouXIpmELrK3gi-aeKITXZdkpIoJmwUgRvgYhMGrzGjO081Fl1WZIPXgBTRa2IHqEcFVlVfbg3no-d2MqETTOZgxidEG4Npki7MjqC0VGZe2MC6q5YUTuOgWArCwx4iRPuoFE/s1600/CustomListView.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;183&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHoGcBm__oouXIpmELrK3gi-aeKITXZdkpIoJmwUgRvgYhMGrzGjO081Fl1WZIPXgBTRa2IHqEcFVlVfbg3no-d2MqETTOZgxidEG4Npki7MjqC0VGZe2MC6q5YUTuOgWArCwx4iRPuoFE/s400/CustomListView.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
To make use of the layouts page for the view, just change the &quot;SetupPath&quot; parameter to point to the corresponding layouts page without the &quot;/&quot; in front of the &quot;layouts&quot; folder (i.e., should be starting as &quot;layouts/setup/settings.aspx&quot;) and change &quot;Url&quot; parameter to the name you want to see in the URL.&lt;br /&gt;
&lt;br /&gt;
When I changed the &quot;MasterPageFile&quot; parameter to an application master page like below,&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; font-family: consolas;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;@&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;Page&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Language&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;C#&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;AutoEventWireup&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;true&quot;&lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;background-color: #f3f3f3; color: red;&quot;&gt;                           MasterPageFile&lt;/span&gt;&lt;span style=&quot;background-color: #f3f3f3; color: blue;&quot;&gt;=&quot;~/_layouts/AppMasterPages/Simple.master&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #f3f3f3;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% rgb(243, 243, 243);&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/pre&gt;&amp;nbsp; &lt;br /&gt;
the custom view gave me the below error&lt;br /&gt;
&lt;br /&gt;
&quot;&lt;b style=&quot;color: #e69138;&quot;&gt;The referenced file &#39;/_layouts/AppMasterPages/Simple.master&#39; is not allowed on this page&lt;/b&gt;&quot;&lt;br /&gt;
&lt;br /&gt;
If the &quot;MasterPageFile&quot; is change to &quot;~masterurl/default.master&quot;, everything works well. If you are using a custom master page for the site you may make use of that by setting the &quot;MasterPageFile&quot; to &quot;~masterurl/custom.master&quot;.&lt;br /&gt;
&lt;br /&gt;
Happy coding.&lt;br /&gt;
Senthil S</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/1444240530148215158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/01/using-master-page-and-layouts-page-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/1444240530148215158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/1444240530148215158'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2012/01/using-master-page-and-layouts-page-in.html' title='Using master page and layouts page in custom list view'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHoGcBm__oouXIpmELrK3gi-aeKITXZdkpIoJmwUgRvgYhMGrzGjO081Fl1WZIPXgBTRa2IHqEcFVlVfbg3no-d2MqETTOZgxidEG4Npki7MjqC0VGZe2MC6q5YUTuOgWArCwx4iRPuoFE/s72-c/CustomListView.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-48170572726529067</id><published>2011-10-18T09:33:00.000-04:00</published><updated>2011-10-18T09:33:22.128-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Layouts Pages"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="SPContext.Current"/><title type='text'>Get SPContext.Current.ListItem in SharePoint layouts page</title><content type='html'>I was developing a layouts page to view a list item for anonymous users with custom styles. So I was doing a little research on how to get the reference to the current list item (SPContext.Current.ListItem) so that the field values can be easily bound using SharePoint web controls itself.&lt;br /&gt;
&lt;br /&gt;
It turns out to be, if a layouts page is being referenced relative to a proper web, and the List id and Item id are passed in as parameters, then I can get the SPContext.Current.ListItem referencing to the particular item being viewed and I can make use of the SharePoint Web Controls to display the field values.&lt;br /&gt;
&lt;br /&gt;
http://localweb/{web url}/_layouts/ViewItem.aspx?List={list guid}&amp;amp;ID={itemid}&lt;br /&gt;
&lt;br /&gt;
Example: http://localweb/home/_layouts/ViewItem.aspx?List={E2E0527C-EFB1-42D4-8FFE-20A6AC364845}&amp;amp;ID=1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the ViewItem.aspx, I can make use of SharePoint web controls in the layouts page to display the field values as:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #cccccc; font-family: consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;SharePoint&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;FieldValue&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;FieldName&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;Title&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;Hope this helps some one else.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Happy Coding&lt;br /&gt;
Senthil S</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/48170572726529067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2011/10/get-spcontextcurrentlistitem-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/48170572726529067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/48170572726529067'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2011/10/get-spcontextcurrentlistitem-in.html' title='Get SPContext.Current.ListItem in SharePoint layouts page'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-7383946551170212866</id><published>2011-10-17T14:41:00.000-04:00</published><updated>2011-10-17T14:41:19.658-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Alerts"/><category scheme="http://www.blogger.com/atom/ns#" term="Custom Alerts"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Custom Alerts in Sharepoint 2010</title><content type='html'>&lt;div style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Alerts are automated emails generated by Sharepoint when something changes (a list item for example) and if any user has created an alert for that particular change in the list item.&lt;br /&gt;
&lt;br /&gt;
In some scenarios, we may want to customize the alert email generated by the Sharepoint 2010. This can be done in two ways&lt;br /&gt;
&lt;br /&gt;
1. Altering the OOTB alert template xml to use whatever the text you would like to have in the alert email&lt;br /&gt;
2. Adding a custom alert handler in the dll deployed to GAC and alter the alert template xml to make use of that&lt;br /&gt;
&lt;br /&gt;
I personally prefer the second method since we (programmers) have more control over the email subject and body and I find it little complex to achieve my particular situation (altering the default url to link the edited/changed item).&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: #6fa8dc;&quot;&gt;Option 1:&lt;/b&gt;&lt;br /&gt;
To briefly describe the first option, the OOTB alert template files need to be modified. The template file can be found under {root}\TEMPLATE\XML\alerttemplate.xml. In this file you can find AlertTemplate for different list types. For my purpose I had to modify for the discussion lists (Name=&quot;SPAlertTemplateType.DiscussionBoard). Inside an AlertTemplate XML item, you will find two elements &quot;Digest&quot; and &quot;Immediate&quot; one for each type of alert. To retrieve additional fields when generating the alert message, modify &quot;ImmediateNotificationExcludedFields&quot; and &quot;DigestNotificationExcludedFields&quot; respectively and make use of those fields in the xml itself.&lt;br /&gt;
&lt;br /&gt;
With that said, I have done only a basic research on the above method.&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: #3d85c6;&quot;&gt;Option 2:&lt;/b&gt;&lt;br /&gt;
To have the modification done using the Second option, the above template file needs to be modified to tell the SharePoint to use a custom handler when generating alert emails.&lt;br /&gt;
&lt;br /&gt;
Please COPY the original alerttemplate.xml file and work on the copy. DO NOT CHANGE THE ORIGINAL.&lt;br /&gt;
In the file add the reference to the custom handler that you created and deployed to GAC (I&#39;ll explain how to create the alert handler later)&lt;br /&gt;
&lt;br /&gt;
Find the &quot;Properties&quot; node under the AlertTemplateType and add the reference like this&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArcAAADGCAIAAABHHj9tAAAdf0lEQVR4nO2dLXTcuhZGDQMDCwMLCwMHFgYWBhYWlg0MDCwsLAwsLHhr3cLCwMKCBwIf9AOT6zo6Pzr6sceT2Xtp3SvLR+d8kjySrCTTYQQAAADQGI4tAAAAADYKuwQAAADQyewShuFF2j4nIRIAAOAk0BfV+Vpr5Y/Fohq20EAAAICNkK6K8sxA3SVMZvKYQT17SOxlRN8+iauebVgHHll7KzQAAMCZ82I9VFdH51xBXZKduvPFvsg+KzIiIBg3EgUAAOAceF4MnRdo511cNbYunTMJ653e0uPgHxhkzzxkXQAAgLOl7Cyh1DiySzCVddolROAsAQAAQFL2ewnZ8pV3CUU/8ojrZIsAAAAwZv/GIfIrgZHfRgyWR35L0VIV+clC1j/7AwAAgIn1VkUWYAAAgNNipaXb/z1BAAAA2CCs2wAAAKDDLgEAAAB02CUAAACADrsEAAAA0HneJfzzn3+OqwMAAAC2BmcJAAAAoMNZAgAAAOhwlgAAAAA6/c8S/C9X7oj15c0LBcp+a3Wpz0isrH0v2pvTcdzrPJTWcr6xu7H/fSUt/TMIZGGpn6LQqpPSVhRF9FunljuWy4n0JcWrj7ZUqx8qmtY+dr6Y9nI/YpfR7OjKcl4tqTFur3F5zlereekxX7IELVFa5v1I3bp1bjnW3Ge0x6rzUFrL0ry0/qz/XHXzIx2fYkrnI9V4oRnW8q/GCmpYTuq8Jytm+WPpb3H4YglZIF8at70J1X4i/tepOC42Fq1nCdaLUTLnHi7nr25O+byW9D8vVO1VhXKZz/qXy0ZcZ8S/FdRyZbVrCT2+n1Ebd6kkMXPapUZv9FPx/FhK4v1j6Q/qVLtac57OI9nZM/3Yv1zV5oXzcnlL9SPLk1uysELn9N9IExwx3XU6/ZaVFNE/aPjOS+OqWLFUzX3zviS1IfLS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vknnVviuxdJa6RXOQG9ykaRlkg8KqTTTXz3ImnxZL0VkUjnkHj+SSedOEsgkUgkEomkJ84SSCQSiUQi6YmzBBKJRCKRSHp63iWMAAAAABrsEgAAAECHXQIAAADosEsAAAAAnYJdwsCOAgAA4Jyo3CUk3/S5fU5CJAAAwKbQF0+5pvolW1iDF9WwhQYCAACsTLr6WWcDwV3CVF0eM6hnD4m9VOLbJ3HVsw3rwCNrb4UGAAA4E16se9YqmN03ZFdTuRKr9jIT9G+JjAgIxo1EAQAAeE08L3r+i7K1Klvv4lkPzg5DOpfv9HGRjgD/zMDpEA4VAADgTMifJZSuyr12CRa9dgkROEsAAIBzJv97Cae4Syj6kUdcJ1sEAAA4KzJ/4+Cfuvu/Ehj5bcRgufWTiIiqyE8Wsv7ZHwAAwBmSWf1WWB1ZgAEAALbJkZdo//cEAQAA4IiwPgMAAIAOuwQAAADQYZcAAAAAOuwSAAAAQIddAgAAAOj8H8xKboHzQGzTAAAAAElFTkSuQmCC&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;182&quot; src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArcAAADGCAIAAABHHj9tAAAdf0lEQVR4nO2dLXTcuhZGDQMDCwMLCwMHFgYWBhYWlg0MDCwsLAwsLHhr3cLCwMKCBwIf9AOT6zo6Pzr6sceT2Xtp3SvLR+d8kjySrCTTYQQAAADQGI4tAAAAADYKuwQAAADQyewShuFF2j4nIRIAAOAk0BfV+Vpr5Y/Fohq20EAAAICNkK6K8sxA3SVMZvKYQT17SOxlRN8+iauebVgHHll7KzQAAMCZ82I9VFdH51xBXZKduvPFvsg+KzIiIBg3EgUAAOAceF4MnRdo511cNbYunTMJ653e0uPgHxhkzzxkXQAAgLOl7Cyh1DiySzCVddolROAsAQAAQFL2ewnZ8pV3CUU/8ojrZIsAAAAwZv/GIfIrgZHfRg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8xKboHzQGzTAAAAAElFTkSuQmCC&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;After updating, a powershell script needs to be run to update SharePoint to make use of the handler. Like this below.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjB7VkS8XHjMl4-h-fKvn0fl12nVmdSi-ukkGql7viwEQ0m-GfZuCJjJyNMGRIsTe6YvXhf-BkOx3p3V7SJIJVuGswW3HnYSSHflvRA1MY4jfntUi8JJol4kWHdgCdEsd8-EzkqML5HaPuy/s1600/AlertHandlerupdatePS.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjB7VkS8XHjMl4-h-fKvn0fl12nVmdSi-ukkGql7viwEQ0m-GfZuCJjJyNMGRIsTe6YvXhf-BkOx3p3V7SJIJVuGswW3HnYSSHflvRA1MY4jfntUi8JJol4kWHdgCdEsd8-EzkqML5HaPuy/s1600/AlertHandlerupdatePS.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;After doing the update statement, the SharePoint services need to be restarted. To restart them, you can use the below PowerShell script&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAmoAAAAUCAIAAACyB4awAAAD/ElEQVR4nO2cyW7kMAxE/e1B/+0c8gmaQwaOm0uxKMlGD1APfbC1UBS1lOXu5BhjfP/5HkIIIYSgOX60UwoqhBBC8BxD2imEEEI00elTCCGEaKPTpxBCCNFGp08hhBCijT19vo63z//I1fn7uvA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E25bN0dgimej0uK4JxHmeV5R/o1HAj1fXHDAfoFzZeZv2WGfqfCWKMsfvp8r41JoQQn4D+65AYo3VeedCUEEJ8LDp9CiGEEG10+hRCCCHa6PQphBBCtNHpUwghhGjzFxM7zO8+bylXAAAAAElFTkSuQmCC&quot; /&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Thats it. After this the custom handler must be called whenever an aler email is generated based on all discussion boards&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b style=&quot;color: #3d85c6;&quot;&gt;Custom Handler Creation:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Now. How to create the custom alert handler for SharePoint 2010. Below is a sample code for a simple alert handler&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbwAAAEBCAIAAACMhocjAAAS7klEQVR4nO3dW3LrthJGYU4n00ztEWQeZ4w6D64wNPuCbgCEAHB9tSslQyBuFH9DlmMen5g/f//hX/u/4GoDmNbx7QEAwEoITQBIeCQ0D63Vs1B9trrZJ/z1z//W6mXMgK0e//rnf8MGcHY0fspyDF/p8W2rPaEvhGbfZqv9vPjOfz2bfpgccGr8zhXot6M+W+y6ZahOa0+cMvXFwGq3t7OZV4em8+XMuIzb2ym2fy1htRe6OgZI5NBx/PfvWigf+zVvhbdqao/BA9VOrfbVy0M+JXcftxLrMsgeaFW2LoNUv7cGzwrX//rtWAfKQmecLbPOrt5Z/hEO+9svq62Wt6z2fnKhKR9XFPrVnO6yPy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FZjB01G3pR9seyt3irY5awR+n3H6q21I5EqdZAKtYOzRlfSdbKypkx+AUEprAHpYPTeet9HdDU25prWYBLGTt0Dy/rMvEMTvNYrMAFjJXaH60QJTlTiS1h2Z2DLw9B15lutD82L/uE/mc5yy0KsSD0h9DsTIfBAFbmjE0t7T9BIGXIDQH2X6CwEtMFJrb//v2GgPoYJbQBIAlEJoAkEBofo7j49xlgxtwALhaLBK6R1ixQUITwNVikUBoAviuiSLhJ56ub5Z/Hssvz5q3Y2Ujt0Nkj1YXsmXrWdk499QENjbR5e2nlVN4q1Csc+vUGozTdWkwE60qgL4murzFfk3fCar1rWjLhqbTo7ajLOxkAexnomvdyTu1sHtoBht09p4AtjfRdR/Ju6+HZmwwE60qgL4murzVeLLeFN8qDHt7btX/XTjRqgLoi8u7P0IT2BiXd2ckJrA3rnAASCA0ASCB0ASAhAdD8zgOfsAHYDOPhxq5CWAnhCYAJBCaAJBAaAJAwohE4xMhANtgpwkACYQmACQQmgCQQGgCQAL/RxAAJBBqAJBAaAJAAqEJAAmJ0ORnlACQDkFyE8CbEZoAkEBoAkACoQkACTUJyCdCAF6LnSYAJBCaAJBAaAJAAqEJAAn8H0EAkEAIAkACoQkACYQmACQQmgCQ8H+c1zGGqOLr3QAAAABJRU5ErkJggg==&quot; /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Hope this helps some one else.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Thanks&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Senthil S&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/7383946551170212866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2011/10/custom-alerts-in-sharepoint-2010.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/7383946551170212866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/7383946551170212866'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2011/10/custom-alerts-in-sharepoint-2010.html' title='Custom Alerts in Sharepoint 2010'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjB7VkS8XHjMl4-h-fKvn0fl12nVmdSi-ukkGql7viwEQ0m-GfZuCJjJyNMGRIsTe6YvXhf-BkOx3p3V7SJIJVuGswW3HnYSSHflvRA1MY4jfntUi8JJol4kWHdgCdEsd8-EzkqML5HaPuy/s72-c/AlertHandlerupdatePS.JPG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-241469125096960857</id><published>2011-10-14T13:21:00.001-04:00</published><updated>2011-10-14T13:22:38.169-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="List Provisioning"/><category scheme="http://www.blogger.com/atom/ns#" term="onet.xml"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Provisioning custom list when creating a site through onet.xml</title><content type='html'>Recently, I had a situation where I need to provision a custom list which has the list template defined in the project itself. We know how to provision an OOTB list using onet.xml as explained in this msdn document&lt;br /&gt;
&lt;br /&gt;
http://msdn.microsoft.com/en-us/library/ms474369.aspx&lt;br /&gt;
&lt;br /&gt;
But, I was facing an error when I was trying to provision a custom list using a custom list definition. I added a new list definition like below.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8QwWcrumgKBr-EH_JZZO_CJ5KGW_0zdrB4IVDxeiATh7Q89SRdbSBsAxLky2xlFFA1hsh0sHkQuVuMTo_-iRK82Mr5BvXmnEksPEHAMyYTJxMI_nlSxgGuJRpZgPgtADPg6JV6ItIC7n-/s1600/ListTemplate.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8QwWcrumgKBr-EH_JZZO_CJ5KGW_0zdrB4IVDxeiATh7Q89SRdbSBsAxLky2xlFFA1hsh0sHkQuVuMTo_-iRK82Mr5BvXmnEksPEHAMyYTJxMI_nlSxgGuJRpZgPgtADPg6JV6ItIC7n-/s1600/ListTemplate.JPG&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;In the onet.xml, I had to add the below statement to provision a list instance based on the above list template.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglpsGvZQgY_SHjvpsOFXS-Hd7iRuQQ95X7HUP1AjGaXPSthfv4HT0Wy393CUnNo19W7Tju3InHjkGXmNpXJowA86e2tNKDTjoriTMRANa0rdKIqBVbIHumozcSE2LNJYZuTNqarm8Sy39s/s1600/ListInstance.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;40&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglpsGvZQgY_SHjvpsOFXS-Hd7iRuQQ95X7HUP1AjGaXPSthfv4HT0Wy393CUnNo19W7Tju3InHjkGXmNpXJowA86e2tNKDTjoriTMRANa0rdKIqBVbIHumozcSE2LNJYZuTNqarm8Sy39s/s400/ListInstance.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;The FeatureId is the feature id attribute of the feature in which the ListTemplate is added.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Hope this helps someone else too.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Thanks&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Senthil S&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/241469125096960857/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2011/10/provisioning-custom-list-when-creating.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/241469125096960857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/241469125096960857'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2011/10/provisioning-custom-list-when-creating.html' title='Provisioning custom list when creating a site through onet.xml'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8QwWcrumgKBr-EH_JZZO_CJ5KGW_0zdrB4IVDxeiATh7Q89SRdbSBsAxLky2xlFFA1hsh0sHkQuVuMTo_-iRK82Mr5BvXmnEksPEHAMyYTJxMI_nlSxgGuJRpZgPgtADPg6JV6ItIC7n-/s72-c/ListTemplate.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-305545383572093627</id><published>2011-09-27T08:28:00.002-04:00</published><updated>2011-09-27T08:31:32.243-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Lookup Field"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Adding a lookup field to a list programatically</title><content type='html'>Alright, I had a requirement where a lookup field needs to be added to list referencing another list&#39;s ID column. I managed to do this using the below code. You can understand without explaining all the inner details, I think.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: consolas;&quot;&gt;//Adding&amp;nbsp;a&amp;nbsp;lookup&amp;nbsp;column&amp;nbsp;to&amp;nbsp;link&amp;nbsp;the&amp;nbsp;item&amp;nbsp;to&amp;nbsp;the&amp;nbsp;related item&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;font-family: consolas;&quot;&gt;var list = web.Lists[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;LookupListName&quot;&lt;/span&gt;];&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;thisList.Fields.AddLookup(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;LookupFieldName&quot;&lt;/span&gt;, list.ID , web.ID,&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;);
&lt;span style=&quot;color: #2b91af;&quot;&gt;SPFieldLookup&lt;/span&gt;&amp;nbsp;lookupField&amp;nbsp;=&amp;nbsp;reportThisList.Fields.GetField(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;LookupFieldName&quot;&lt;/span&gt;)&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;                                 as&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPFieldLookup&lt;/span&gt;;
lookupField.LookupField&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;ID&quot;&lt;/span&gt;;
&lt;span style=&quot;color: green;&quot;&gt;//Adding&amp;nbsp;indexing&amp;nbsp;to&amp;nbsp;enable&amp;nbsp;&quot;CACADE&quot;&amp;nbsp;delete&amp;nbsp;of&amp;nbsp;this&amp;nbsp;list&amp;nbsp;items&lt;/span&gt;
lookupField.Indexed&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;;
&lt;span style=&quot;color: green;&quot;&gt;//CASCADE&amp;nbsp;-&amp;nbsp;deletes&amp;nbsp;all&amp;nbsp;the&amp;nbsp;related&amp;nbsp;items&amp;nbsp;in&amp;nbsp;this&amp;nbsp;list when&amp;nbsp;an item&amp;nbsp;is&amp;nbsp;deleted.&lt;/span&gt;
lookupField.RelationshipDeleteBehavior&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPRelationshipDeleteBehavior&lt;/span&gt;.Cascade;
lookupField.Update(&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;);&lt;/pre&gt;&lt;br /&gt;
After doing this above code, you will see a new column in the list (&lt;span style=&quot;font-family: consolas;&quot;&gt;thisList&lt;/span&gt;). Here is a preview&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxgWXfYntIWVw9GIt3jmhPhzq5VjXdMYEULT2wTM37UGkP3tDCvUvBFBboZhV-7WZiUNLqc_tu3vMaorO9VFQngnELL91R5-5utkft6VnyrRvomZ8KglN94dbWpoJRvR0lQawhkC3yTv4H/s1600/LookupField.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;142&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxgWXfYntIWVw9GIt3jmhPhzq5VjXdMYEULT2wTM37UGkP3tDCvUvBFBboZhV-7WZiUNLqc_tu3vMaorO9VFQngnELL91R5-5utkft6VnyrRvomZ8KglN94dbWpoJRvR0lQawhkC3yTv4H/s640/LookupField.jpg&quot; width=&quot;100%&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If an item is deleted from the related list(&lt;span style=&quot;color: #a31515; font-family: consolas;&quot;&gt;&quot;LookupListName&quot;&lt;/span&gt;), all the related items in &lt;span style=&quot;font-family: consolas;&quot;&gt;thisList&lt;/span&gt; would get deleted automatically.&lt;br /&gt;
&lt;br /&gt;
I know this might not give you a clear explanation. If you need more details, just add a comment, I will try to explain it in more detail.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Senthil S</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/305545383572093627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2011/09/adding-lookup-field-to-list.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/305545383572093627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/305545383572093627'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2011/09/adding-lookup-field-to-list.html' title='Adding a lookup field to a list programatically'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxgWXfYntIWVw9GIt3jmhPhzq5VjXdMYEULT2wTM37UGkP3tDCvUvBFBboZhV-7WZiUNLqc_tu3vMaorO9VFQngnELL91R5-5utkft6VnyrRvomZ8KglN94dbWpoJRvR0lQawhkC3yTv4H/s72-c/LookupField.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-914106640110865275</id><published>2011-09-27T08:07:00.000-04:00</published><updated>2011-09-27T08:07:04.034-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Event Receivers"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Adding list event receivers programatically</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Recently, I was in a situation where event receivers needs to be attached to a SPList. Here is how it can be added dynamically using the api.&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglYJsqlUtxWdiM9VmwMt62HTIUiV9DefBi_YFik-zaLffZOAb0N_cNQfNGnMlu8-KFILWNOxAsRDkyHBaa6XnBOpMlni4GCgqk7aLyEEifEvvEs3R3BCj_zMa9RKWn8SEziPCFzWPuiDED/s1600/ItemEventReceiver.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglYJsqlUtxWdiM9VmwMt62HTIUiV9DefBi_YFik-zaLffZOAb0N_cNQfNGnMlu8-KFILWNOxAsRDkyHBaa6XnBOpMlni4GCgqk7aLyEEifEvvEs3R3BCj_zMa9RKWn8SEziPCFzWPuiDED/s1600/ItemEventReceiver.jpg&quot; style=&quot;width:100%;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Like the above code, we can add the event receivers for any list event.&lt;br /&gt;
&lt;br /&gt;
I have not tried the same for any other event receivers, but I am guessing it should be working the same way.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Senthil S</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/914106640110865275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2011/09/adding-list-event-receivers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/914106640110865275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/914106640110865275'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2011/09/adding-list-event-receivers.html' title='Adding list event receivers programatically'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglYJsqlUtxWdiM9VmwMt62HTIUiV9DefBi_YFik-zaLffZOAb0N_cNQfNGnMlu8-KFILWNOxAsRDkyHBaa6XnBOpMlni4GCgqk7aLyEEifEvvEs3R3BCj_zMa9RKWn8SEziPCFzWPuiDED/s72-c/ItemEventReceiver.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-6384266539391604438</id><published>2011-09-10T11:34:00.000-04:00</published><updated>2012-05-29T12:14:24.184-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Alerts"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Check whether alerts are turned on for a Web Application</title><content type='html'>Even, if a user has an alert created for a list or list item or any other kind of alert, the alerts need to be turned on for the particular web application from the Central Admin.&lt;br /&gt;
&lt;br /&gt;
How do we check whether it is turned on or not?&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Go to Central Admin -&amp;gt; Application Management -&amp;gt; Manage Web Applications&lt;/li&gt;
&lt;li&gt;Select the Web Application and select General Settings option from the tool bar&lt;/li&gt;
&lt;li&gt;Make sure &quot;Alerts on this server are &quot;Tuned On&quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Hope this helps someone&lt;br /&gt;
&lt;br /&gt;
Senthil</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/6384266539391604438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2011/09/check-whether-alers-are-turned-on-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/6384266539391604438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/6384266539391604438'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2011/09/check-whether-alers-are-turned-on-for.html' title='Check whether alerts are turned on for a Web Application'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-5021612436413002139</id><published>2011-08-25T11:11:00.000-04:00</published><updated>2011-08-25T11:11:58.064-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="User Profile"/><title type='text'>Allowing anonymous users access to SharePoint user&#39;s profile pictures</title><content type='html'>I was developing discussion groups using web parts where I needed to show the discussion posting authors&#39; profile images with the posting detail.&lt;br /&gt;
&lt;br /&gt;
First problem I faced was, how to get the profile image url of the user. I was able to find the details about the User Information List living in the RootSite of the site collection. I was able to get the related user info by getting the list item as below and get the &quot;Picture&quot; property value&lt;br /&gt;
and properly formatting it.&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;userPictureUrl = &lt;span style=&quot;color: #2b91af;&quot;&gt;SPContext&lt;/span&gt;.Current.Site.RootWeb.SiteUserInfoList.GetItemById(itemCreator.ID)[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Picture&quot;&lt;/span&gt;].ToString();&lt;span style=&quot;color: #2b91af;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPFieldUrlValue&lt;/span&gt;&amp;nbsp;userProfileImage&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SPFieldUrlValue&lt;/span&gt;(userPictureUrl);&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;authorProfileImageUrl&amp;nbsp;=&amp;nbsp;(&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Uri&lt;/span&gt;(userProfileImage.Url)).AbsolutePath;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;But, then I faced the next issue of viewing user&#39;s profile image as an anonymous user. To achieve that I had to go through the below process of granting anonymous users access to List and libraries in the mys site site collection and granting &quot;View Items&quot; access to user profile pictures library.&lt;br /&gt;
&lt;br /&gt;
STEP 1:&lt;br /&gt;
Go to http://&amp;lt;&amp;lt;MysiteSitecollection web url&amp;gt;&amp;gt;/_layouts/settings.aspx&lt;br /&gt;
Go to &quot;Site Permissions&quot; and click Anonymous Access from the ribbon&lt;br /&gt;
Select &quot;Lists and libraries&quot; and click &quot;OK&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU19yCFB0-q1WuMvjhzB4tjCA6mxoPVKGr_O7JLSuXKuj7GN09__ksflP6wjEP86PtSLubiz1gymAobmOtRJBWZH7bsQ2jQZTHo6Kz2-UFcdlNIwlmnWNXyFIKwqGjipPL9JIS4NXdpQhw/s1600/MySiteUserAccess.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;156&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU19yCFB0-q1WuMvjhzB4tjCA6mxoPVKGr_O7JLSuXKuj7GN09__ksflP6wjEP86PtSLubiz1gymAobmOtRJBWZH7bsQ2jQZTHo6Kz2-UFcdlNIwlmnWNXyFIKwqGjipPL9JIS4NXdpQhw/s200/MySiteUserAccess.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
STEP 2:&lt;br /&gt;
Go to View All Site Content -&amp;gt; User Photos -&amp;gt; Settings (Picture Library Settings)&lt;br /&gt;
Go to &quot;Permissions for this picture library&quot;&lt;br /&gt;
Click &quot;Stop Inheriting Permissions&quot;&lt;br /&gt;
Click &quot;Anonymous Access&quot; from the ribbon&lt;br /&gt;
Check off &quot;View Items&quot; and click &quot;OK&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1voY1Gkye2d6l8AjlKl3ZSt4pdJo7SEmgUZDmwng2o45IQhsSx6yG5RvKCbtTbqB9CWNfcEl4erVaIBUv35LCpik0eB4QHUTkoXuTv4MxKjzlqVv9kGvAdr4ur51S_qZnuGi92cxlD-99/s1600/MySiteUserPhotoAccess.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;111&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1voY1Gkye2d6l8AjlKl3ZSt4pdJo7SEmgUZDmwng2o45IQhsSx6yG5RvKCbtTbqB9CWNfcEl4erVaIBUv35LCpik0eB4QHUTkoXuTv4MxKjzlqVv9kGvAdr4ur51S_qZnuGi92cxlD-99/s200/MySiteUserPhotoAccess.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
After performing the above steps anonymous users were able to get access to profile pictures of other users.&lt;br /&gt;
&lt;br /&gt;
Senthil S</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/5021612436413002139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2011/08/allowing-anonymous-users-access-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/5021612436413002139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/5021612436413002139'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2011/08/allowing-anonymous-users-access-to.html' title='Allowing anonymous users access to SharePoint user&#39;s profile pictures'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU19yCFB0-q1WuMvjhzB4tjCA6mxoPVKGr_O7JLSuXKuj7GN09__ksflP6wjEP86PtSLubiz1gymAobmOtRJBWZH7bsQ2jQZTHo6Kz2-UFcdlNIwlmnWNXyFIKwqGjipPL9JIS4NXdpQhw/s72-c/MySiteUserAccess.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4120206344866327482.post-3712568436925606705</id><published>2011-08-18T09:00:00.000-04:00</published><updated>2011-08-18T09:21:22.204-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="SPException"/><title type='text'>Security validation exception when updating list items</title><content type='html'>Recently, I faced an exception when trying to update an existing list item programatically. When trying to update the list item i.e., when trying to do SPListItem.Update(), I was getting the below exception message&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;Microsoft.SharePoint.SPException: The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.&quot;&lt;br /&gt;
&lt;br /&gt;
After some time, I found that I need to set the &quot;AllowUnsafeUpdates&quot; property of the parent web of the list item to true before doing an update.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; targetWeb.AllowUnsafeUpdates = true;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; listItem[&quot;Title&quot;] = newTitle;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; listItem.Update();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; targetWeb.AllowUnsafeUpdates = false;&lt;br /&gt;
&lt;br /&gt;
This should work if the current user has proper privileges, otherwise the above code needs to be ran under an impersonated context.&lt;br /&gt;
&lt;br /&gt;
Probably, the same will happen when creating, deleting a list item too.&amp;nbsp; Happy coding ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Senthil</content><link rel='replies' type='application/atom+xml' href='http://sharepoint2010funfacts.blogspot.com/feeds/3712568436925606705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2011/08/security-validation-exception-when.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/3712568436925606705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4120206344866327482/posts/default/3712568436925606705'/><link rel='alternate' type='text/html' href='http://sharepoint2010funfacts.blogspot.com/2011/08/security-validation-exception-when.html' title='Security validation exception when updating list items'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15128626007524000297</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>