<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Mukesh&#039;s Blog</title>
	<atom:link href="http://kmukesh.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://kmukesh.wordpress.com</link>
	<description>SharePoint 2010 And MOSS 2007</description>
	<lastBuildDate>Sat, 28 Jan 2012 22:36:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='kmukesh.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Mukesh&#039;s Blog</title>
		<link>http://kmukesh.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://kmukesh.wordpress.com/osd.xml" title="Mukesh&#039;s Blog" />
	<atom:link rel='hub' href='http://kmukesh.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SharePoint 2010 FAST Search : Property doesn&#8217;t exist or is used in a manner inconsistent with schema settings</title>
		<link>http://kmukesh.wordpress.com/2012/01/28/property-doesnt-exist-or-is-used-in-a-manner-inconsistent-with-schema-settings/</link>
		<comments>http://kmukesh.wordpress.com/2012/01/28/property-doesnt-exist-or-is-used-in-a-manner-inconsistent-with-schema-settings/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 21:41:02 +0000</pubDate>
		<dc:creator>Mukesh Singh</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">http://kmukesh.wordpress.com/?p=423</guid>
		<description><![CDATA[In order to fix error &#8220;Property doesn&#8217;t exist or is used in a manner inconsistent with schema settings&#8220; , 1. Double check the data-type of any newly created Managed Property with respect to the crawled property. 2. Start full crawl the content source and verify if search started working properly. 3. In case search result [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=423&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In order to fix<em> error <strong><span style="color:#808080;">&#8220;<em>Property doesn&#8217;t exist or is used in a manner inconsistent with schema settings</em>&#8220;</span></strong> ,</em></p>
<p>1. Double check the data-type of any newly created Managed Property with respect to the crawled property.</p>
<p>2. Start full crawl the content source and verify if search started working properly.</p>
<p>3. In case search result still shows the same error, then run the following command in FAST Powershell ,  followed by full crawl, <a href="http://support.microsoft.com/kb/2468431" target="_blank">read</a>.</p>
<p><strong>                                        nctrl restart qrserver</strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />Filed under: <a href='http://kmukesh.wordpress.com/category/sharepoint-2010/powershell/'>PowerShell</a>, <a href='http://kmukesh.wordpress.com/category/sharepoint-2010/'>SharePoint 2010</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kmukesh.wordpress.com/423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kmukesh.wordpress.com/423/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kmukesh.wordpress.com/423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kmukesh.wordpress.com/423/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kmukesh.wordpress.com/423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kmukesh.wordpress.com/423/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kmukesh.wordpress.com/423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kmukesh.wordpress.com/423/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kmukesh.wordpress.com/423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kmukesh.wordpress.com/423/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kmukesh.wordpress.com/423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kmukesh.wordpress.com/423/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kmukesh.wordpress.com/423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kmukesh.wordpress.com/423/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=423&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kmukesh.wordpress.com/2012/01/28/property-doesnt-exist-or-is-used-in-a-manner-inconsistent-with-schema-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a011090fe30d5573b51509f186450e3e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">MUKESH</media:title>
		</media:content>
	</item>
		<item>
		<title>How to create a Lookup Field From Sub-Site List to Root-Site Collection List (Cross-Site Lookup)</title>
		<link>http://kmukesh.wordpress.com/2011/11/08/how-to-create-a-lookup-field-from-subsite-list-to-root-site-list-cross-site-lookup/</link>
		<comments>http://kmukesh.wordpress.com/2011/11/08/how-to-create-a-lookup-field-from-subsite-list-to-root-site-list-cross-site-lookup/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 20:34:41 +0000</pubDate>
		<dc:creator>Mukesh Singh</dc:creator>
				<category><![CDATA[Code Snippet]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">http://kmukesh.wordpress.com/?p=394</guid>
		<description><![CDATA[This solution is based on power shell script for creating cross site look up field. For example there is a sub site http://mksportal/site1 which contains a list &#8220;Product Name&#8221;  and there is another sub site http://mksportal/site2/site3. In order to make cross site look up field available to sub site through content type, this can be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=394&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>This solution is based on power shell script for creating cross site look up field.</strong></p>
<p>For example there is a sub site http://mksportal/site1 which contains a list &#8220;Product Name&#8221;  and<br />
there is another sub site http://mksportal/site2/site3.<br />
In order to make cross site look up field available to sub site through content type,<br />
this can be achieved by using power shell script.</p>
<p>There are couple of things mandatory, when cross site look up is created on that time both sub site and list must exist because it is dependent on list ID.<br />
This is basic script, one can customize further like add reference field for the same lookup field mapped to other field like ID etc.<br />
try<br />
{</p>
<p>$mksWebSite =  &#8220;http://mksPortal/Site1&#8243;</p>
<p>$spweb = Get-SPWeb $mksWebSite<br />
$webids=$spweb.ID</p>
<p>$lst = $spweb.Lists["Product Name"]</p>
<p>$fieldXML = &#8216;<br />
&lt;Field ID=&#8221;GUID&#8221;<br />
Name=&#8221;mksField&#8221;<br />
Group=&#8221;MKS<br />
Type=&#8221;Lookup&#8221;<br />
DisplayName=&#8221;mksField&#8221;<br />
StaticName=&#8221;mksField&#8221;<br />
List=&#8221;{&#8216; + $lst.ID +&#8217;}&#8221;<br />
ShowField=&#8221;Title&#8221;<br />
Overwrite=&#8221;TRUE&#8221;<br />
WebId=&#8221;&#8216; + $webids + &#8216;&#8221;  &gt;&lt;/Field&gt;&#8217;</p>
<p>$field = $spweb.Site.RootWeb.Fields.AddFieldAsXml($fieldXML)<br />
$fieldRef = $spweb.Site.RootWeb.Fields.AddFieldAsXml($mksFIELDRef)<br />
$spweb.Site.RootWeb.Update()<br />
$ctypeParent = $spweb.Site.RootWeb.availablecontenttypes["My Custo CType"]<br />
$newContentType = $spweb.Site.RootWeb.ContentTypes[$ctypeParent.ID];<br />
$fieldLink = new-object Microsoft.SharePoint.SPFieldLink($spweb.Site.RootWeb.Fields[ $fieldInternalName])<br />
$newContentType.FieldLinks.Add($fieldLink)<br />
$newContentType.Update()</p>
<p>$spweb.Dispose()</p>
<p>}</p>
<p>catch [System.SystemException]</p>
<p>{</p>
<p>write-host “Execution stopped due to: “+$_.Message -foregroundcolor Red</p>
<p>}</p>
<br />Filed under: <a href='http://kmukesh.wordpress.com/category/code-snippet/'>Code Snippet</a>, <a href='http://kmukesh.wordpress.com/category/sharepoint-2010/powershell/'>PowerShell</a>, <a href='http://kmukesh.wordpress.com/category/sharepoint-2010/'>SharePoint 2010</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kmukesh.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kmukesh.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kmukesh.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kmukesh.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kmukesh.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kmukesh.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kmukesh.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kmukesh.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kmukesh.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kmukesh.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kmukesh.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kmukesh.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kmukesh.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kmukesh.wordpress.com/394/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=394&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kmukesh.wordpress.com/2011/11/08/how-to-create-a-lookup-field-from-subsite-list-to-root-site-list-cross-site-lookup/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a011090fe30d5573b51509f186450e3e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">MUKESH</media:title>
		</media:content>
	</item>
		<item>
		<title>InfoPath Form Library doesn&#8217;t allow to save any changes</title>
		<link>http://kmukesh.wordpress.com/2011/08/18/infopath-form-library-does-not-save/</link>
		<comments>http://kmukesh.wordpress.com/2011/08/18/infopath-form-library-does-not-save/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 22:07:19 +0000</pubDate>
		<dc:creator>Mukesh Singh</dc:creator>
				<category><![CDATA[Infopath]]></category>
		<category><![CDATA[InfoPath 2007]]></category>
		<category><![CDATA[SharePoint Development , Deployment and Common Issues]]></category>

		<guid isPermaLink="false">http://kmukesh.wordpress.com/?p=366</guid>
		<description><![CDATA[Sometime InfoPath form library doesn&#8217;t allow to save the changes made to list item. It throws following error:- ExceptionType: &#8216;SPException&#8217; ExceptionMessage: &#8216;Changes could not be saved into the document. The property to change is read-only for the document&#8217;s content type, or the document is missing XML elements or attributes where the changes would be saved. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=366&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometime InfoPath form library doesn&#8217;t allow to save the changes made to list item.</p>
<p>It throws following error:-</p>
<p><span style="color:#999999;"><em>ExceptionType: &#8216;SPException&#8217; ExceptionMessage: </em></span><span style="color:#999999;"><em>&#8216;Changes could not be saved into the<br />
document.</em></span> <span style="color:#999999;"><em>The property to change is read-only for the document&#8217;s </em></span><span style="color:#999999;"><em>content type, or the<br />
document is missing XML elements </em></span><span style="color:#999999;"><em>or attributes where the changes would be saved. </em></span><br />
<span style="color:#999999;"><em>Try editing the document  in a Windows SharePoint </em></span><span style="color:#999999;"><em>Services-compatible XML editor<br />
such as Microsoft Office InfoPath.</em></span></p>
<p>This problem happens when the Form Library contains several property promoted fields<br />
and the form for which changes were made and supposed to save , doesn&#8217;t contains those<br />
fields and blows up when trying to save.</p>
<p>To fix this issue, double check content type definition and linked field associated with that.</p>
<p>Some time problematic field got created, doesn&#8217;t remove just by deactivating/Uninstall of<br />
feature because instance got created.<br />
This is important to find the instance and remove it then use feature to install/activate to work properly.</p>
<p>Action Item to resolve this issue:-</p>
<p>To fix the problematic filed which blows up,<br />
1. Create a unit test to identify the fields used in Infopath Form<br />
2. Now Remove the filed column mapping from the content type associated in a list<br />
3. Similarly remove the field mapping from content type in Site Collection<br />
4. Remove the content type from the Site Collection<br />
5. Redeploy the content Type so that the Push Down mechanism will update the child<br />
content type</p>
<p>And this solved the problem.</p>
<br />Filed under: <a href='http://kmukesh.wordpress.com/category/infopath-2/'>Infopath</a>, <a href='http://kmukesh.wordpress.com/category/infopath-2007/'>InfoPath 2007</a>, <a href='http://kmukesh.wordpress.com/category/sharepoint-development-deployment-and-common-issues/'>SharePoint Development , Deployment and Common Issues</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kmukesh.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kmukesh.wordpress.com/366/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kmukesh.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kmukesh.wordpress.com/366/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kmukesh.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kmukesh.wordpress.com/366/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kmukesh.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kmukesh.wordpress.com/366/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kmukesh.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kmukesh.wordpress.com/366/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kmukesh.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kmukesh.wordpress.com/366/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kmukesh.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kmukesh.wordpress.com/366/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=366&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kmukesh.wordpress.com/2011/08/18/infopath-form-library-does-not-save/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a011090fe30d5573b51509f186450e3e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">MUKESH</media:title>
		</media:content>
	</item>
		<item>
		<title>Problem with multiple Infopath forms Associated to a Forms library.</title>
		<link>http://kmukesh.wordpress.com/2011/08/18/problem-with-multiple-infopath-forms-associated-to-forms-library/</link>
		<comments>http://kmukesh.wordpress.com/2011/08/18/problem-with-multiple-infopath-forms-associated-to-forms-library/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 21:32:17 +0000</pubDate>
		<dc:creator>Mukesh Singh</dc:creator>
				<category><![CDATA[Infopath]]></category>
		<category><![CDATA[InfoPath 2007]]></category>
		<category><![CDATA[SharePoint Development , Deployment and Common Issues]]></category>

		<guid isPermaLink="false">http://kmukesh.wordpress.com/?p=360</guid>
		<description><![CDATA[In Forms Library some time field with type Note does not accepting long text  for some InfoPath form and on the same time it accepts long text for other InfoPath form. It will give following error ExceptionType: &#8216;SPException&#8217; ExceptionMessage: &#8216;Invalid text value A text field contains invalid data. Please check the value and try again.&#8217; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=360&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Forms Library some time field with type Note does not accepting<br />
long text  for some InfoPath form and on the same time it accepts<br />
long text for other InfoPath form.</p>
<p>It will give following error</p>
<p><span style="color:#808080;"><em>ExceptionType: &#8216;SPException&#8217; ExceptionMessage: &#8216;Invalid text value </em></span><br />
<span style="color:#808080;"><em>A text field contains invalid data. Please check the value and try again.&#8217;</em></span></p>
<p>This types of problem occurs to those forms whose Field definition was<br />
not properly associated to Infopath form content type.</p>
<p>To fix this strange behaviour check field definition in infopath form content type.</p>
<p>If the Form Template created using contentype definition then link<br />
the field with that. If was created without content type definition then<br />
go to content type definition gallery and find the content type for the<br />
legacy deployed infopath form which got created when published.</p>
<p>After getting the name of the content type link the Field<br />
and then it will start working  correctly.</p>
<br />Filed under: <a href='http://kmukesh.wordpress.com/category/infopath-2/'>Infopath</a>, <a href='http://kmukesh.wordpress.com/category/infopath-2007/'>InfoPath 2007</a>, <a href='http://kmukesh.wordpress.com/category/sharepoint-development-deployment-and-common-issues/'>SharePoint Development , Deployment and Common Issues</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kmukesh.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kmukesh.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kmukesh.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kmukesh.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kmukesh.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kmukesh.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kmukesh.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kmukesh.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kmukesh.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kmukesh.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kmukesh.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kmukesh.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kmukesh.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kmukesh.wordpress.com/360/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=360&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kmukesh.wordpress.com/2011/08/18/problem-with-multiple-infopath-forms-associated-to-forms-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a011090fe30d5573b51509f186450e3e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">MUKESH</media:title>
		</media:content>
	</item>
		<item>
		<title>How to revert  library items to its previous working condition.</title>
		<link>http://kmukesh.wordpress.com/2011/06/10/how-to-revert-back-library-items-to-its-previous-working-condition/</link>
		<comments>http://kmukesh.wordpress.com/2011/06/10/how-to-revert-back-library-items-to-its-previous-working-condition/#comments</comments>
		<pubDate>Fri, 10 Jun 2011 12:38:48 +0000</pubDate>
		<dc:creator>Mukesh Singh</dc:creator>
				<category><![CDATA[Backup and Recovery]]></category>
		<category><![CDATA[Code Snippet]]></category>
		<category><![CDATA[Sharepoint Code Snippet]]></category>

		<guid isPermaLink="false">http://kmukesh.wordpress.com/?p=337</guid>
		<description><![CDATA[There are some scenarios in day to day development, where current changes need to revert to  its previous working condition. This can be achieved by finding the correct Version from Version-History of the item and restore it accordingly. The below code snippet is just for information, for files in document library and has the same approach [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=337&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#0000ff;">There are some scenarios in day to day development, where current changes need to revert to  its previous</span> <span style="color:#0000ff;">working condition.</span> <span style="color:#0000ff;"><br />
This can be achieved by finding the correct Version from Version-History of the item</span> <span style="color:#0000ff;">and restore it accordingly.</span><br />
<span style="color:#0000ff;">The below code snippet is just for information, for files in document library and has the same approach for List Item as well.</span></p>
<p><span style="color:#008000;">Sample code Snippet&#8230;..<br />
</span></p>
<p>using (SPSite mksSite = new SPSite(&#8220;http://devsp:9900/&#8221;))<br />
{<br />
using (SPWeb mksWeb = mksSite.OpenWeb())<br />
{<br />
mksWeb.AllowUnsafeUpdates = true;<br />
SPList lst = mksWeb.Lists["helloListName"];<br />
IEnumerable&lt;SPListItem&gt; demoLib = lst.Items.OfType&lt;SPListItem&gt;();<br />
SPListItemCollection demoFormCollection = lst.Items;<br />
XmlDocument itemVersionDoc = new XmlDocument();<br />
using (WebClient client = new WebClient())<br />
{<br />
for (int i = 0; i &lt; demoFormCollection.Count; i++)<br />
{<br />
SPListItem item = demoFormCollection[i];<br />
byte[] fileByte = item.File.OpenBinary(SPOpenBinaryOptions.None);</p>
<p><span style="color:#008000;">// Validate your output if this is the correct one. THEN no further action required//</span></p>
<p><span style="color:#ff0000;">if (THE OUTPUT AFTER VALIDATION IS INCORRECT THEN)</span><br />
{</p>
<p>IEnumerable&lt;SPFileVersion&gt; listItems = item.File.Versions.OfType&lt;SPFileVersion&gt;();</p>
<p>var allResults = listItems.OrderByDescending(prod =&gt; prod.ID);</p>
<p>foreach (var vitem in allResults)<br />
{</p>
<p>bool needToFindOtherVersion = true;<br />
{<br />
if (needToFindOtherVersion)<br />
{<br />
<span style="color:#008000;">//&lt;MOST IMPORTANT&gt; &#8220;_vti_history&#8221; IS THE PLACE FOR ALL THE VERSIONS//</span></p>
<p>client.Credentials = CredentialCache.DefaultCredentials;<br />
fileByte = client.DownloadData(mksWeb.Url.TrimEnd(&#8216;/&#8217;)<br />
+ &#8220;/_vti_history/&#8221; + vitem.ID.ToString() + &#8220;/helloListName/&#8221; + item.Title);</p>
<p><span style="color:#008000;">//NOTE: fileByte is the OUTPUT from  VERSION HISTORY//</span></p>
<p><span style="color:#008000;">//CHECK IF THE OUTPUT IS THE CORRECT ONE AS PER REQUIREMENT//</span><br />
<span style="color:#ff0000;">if (THE OUTPUT AFTER VALIDATION IS INCORRECT THEN)</span><br />
{<br />
needToFindOtherVersion = true;<br />
}<br />
else<br />
{<br />
needToFindOtherVersion = false;</p>
<p><span style="color:#0000ff;">item.File.Versions.RestoreByLabel(vitem.VersionLabel);</span><br />
Console.WriteLine(&#8220;<span style="color:#008000;">Correct Version Restored Successfully.</span>&#8220;);<br />
break;<br />
}<br />
}</p>
<p>}<br />
}</p>
<p>}<br />
mksWeb.AllowUnsafeUpdates = false;<br />
}</p>
<br />Filed under: <a href='http://kmukesh.wordpress.com/category/sharepoint-administration/backup-and-recovery/'>Backup and Recovery</a>, <a href='http://kmukesh.wordpress.com/category/code-snippet/'>Code Snippet</a>, <a href='http://kmukesh.wordpress.com/category/sharepoint-code-snippet/'>Sharepoint Code Snippet</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kmukesh.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kmukesh.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kmukesh.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kmukesh.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kmukesh.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kmukesh.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kmukesh.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kmukesh.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kmukesh.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kmukesh.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kmukesh.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kmukesh.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kmukesh.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kmukesh.wordpress.com/337/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=337&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kmukesh.wordpress.com/2011/06/10/how-to-revert-back-library-items-to-its-previous-working-condition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a011090fe30d5573b51509f186450e3e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">MUKESH</media:title>
		</media:content>
	</item>
		<item>
		<title>How to create Infopath Property Promotion Field using Feature</title>
		<link>http://kmukesh.wordpress.com/2011/05/29/how-to-create-infopath-property-promotion-using-feature/</link>
		<comments>http://kmukesh.wordpress.com/2011/05/29/how-to-create-infopath-property-promotion-using-feature/#comments</comments>
		<pubDate>Sun, 29 May 2011 08:57:17 +0000</pubDate>
		<dc:creator>Mukesh Singh</dc:creator>
				<category><![CDATA[Infopath]]></category>

		<guid isPermaLink="false">http://kmukesh.wordpress.com/?p=326</guid>
		<description><![CDATA[Steps to create Property Promotion field in Infopath form and map it to library :- 1. Open InfoPath form in design mode. 2. Create Property Promotion field from Form Option 3. Save InfoPath form as source. 4. Note down XPath of property promoted field 5. Open XSF file notedown the Guid or Change the Guid [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=326&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Steps to create Property Promotion field in Infopath form and map it to library :-</p>
<p>1. Open InfoPath form in design mode.<br />
2. Create Property Promotion field from Form Option<br />
3. Save InfoPath form as source.<br />
4. Note down XPath of property promoted field<br />
5. Open XSF file notedown the Guid or Change the Guid based on field    GUID<br />
6. Create Field with node value of as of XPath<br />
7. Deploy  Field in Site<br />
8. Deploy Infopath Form using Custom Content Type and bind field to the Content Type</p>
<p>Now go to the Form Library all the Fileds will be available.   <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />Filed under: <a href='http://kmukesh.wordpress.com/category/infopath-2/'>Infopath</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kmukesh.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kmukesh.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kmukesh.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kmukesh.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kmukesh.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kmukesh.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kmukesh.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kmukesh.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kmukesh.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kmukesh.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kmukesh.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kmukesh.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kmukesh.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kmukesh.wordpress.com/326/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=326&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kmukesh.wordpress.com/2011/05/29/how-to-create-infopath-property-promotion-using-feature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a011090fe30d5573b51509f186450e3e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">MUKESH</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Create Custom Site Ribbon Tab with buttons</title>
		<link>http://kmukesh.wordpress.com/2011/05/18/how-to-create-custom-site-ribbon-tab-with-buttons/</link>
		<comments>http://kmukesh.wordpress.com/2011/05/18/how-to-create-custom-site-ribbon-tab-with-buttons/#comments</comments>
		<pubDate>Wed, 18 May 2011 22:30:02 +0000</pubDate>
		<dc:creator>Mukesh Singh</dc:creator>
				<category><![CDATA[Ribbon Control]]></category>

		<guid isPermaLink="false">http://kmukesh.wordpress.com/?p=310</guid>
		<description><![CDATA[In this post I have demonstrated how to create custom Site scope Ribbon Tab , how to deployed and  enable in custom page and control buttons inside the Tab i.e., enable/disable based on business requirement. using ECMA Script. 1. When no item is selected, two button inside the custom Tab is disabled and the third [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=310&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this post I have demonstrated how to create custom Site scope Ribbon Tab , how to deployed and  enable in custom page and<br />
control buttons inside the Tab i.e., enable/disable based on business requirement.<br />
using ECMA Script.</p>
<p>1. When no item is selected, two button inside the custom Tab is disabled and the third one is always enable.<br />
<a href="http://kmukesh.files.wordpress.com/2011/05/s11.jpg"><img class="aligncenter size-full wp-image-322" title="s11" src="http://kmukesh.files.wordpress.com/2011/05/s11.jpg?w=570" alt=""   /></a></p>
<p>2. When first item is selected, then first button is enabled and the second button is disabled.</p>
<p><a href="http://kmukesh.files.wordpress.com/2011/05/s21.jpg"><img class="aligncenter size-full wp-image-323" title="s21" src="http://kmukesh.files.wordpress.com/2011/05/s21.jpg?w=570" alt=""   /></a><a href="http://kmukesh.files.wordpress.com/2011/05/s2.jpg"><br />
</a></p>
<p>3. When both item are selected, then second button inside Tab is enabled and first is disabled and third Button remains enable</p>
<p><a href="http://kmukesh.files.wordpress.com/2011/05/s31.jpg"><img class="aligncenter size-full wp-image-324" title="s31" src="http://kmukesh.files.wordpress.com/2011/05/s31.jpg?w=570" alt=""   /></a></p>
<p><strong>Create Ribbon definition :-</strong></p>
<p>ustom Action<br />
&lt;CustomAction<br />
Id=&#8221;IDEMO.MKSRibbon.CustomTabDeployment&#8221;<br />
Location=&#8221;CommandUI.Ribbon&#8221;<br />
Title=&#8221;Add custom tab to page&#8221;&gt;</p>
<p>2. Tab Definition<br />
&lt;Tab Id=&#8221;HiMKSDemoIRibbon.CustomTabs&#8221;<br />
Title=&#8221;Mukesh&#8221; Description=&#8221;Mukesh Menu&#8221;<br />
Sequence=&#8221;102&#8243; &gt;</p>
<p>3. Define Scaling<br />
&lt;Scaling Id=&#8221;HiMKSDemoIRibbon.CustomTabs.Scaling&#8221;&gt;<br />
&lt;MaxSize  Id=&#8221;HiMKSDemoIRibbon.CustomTabs.Scaling.NewGroup.MaxSize&#8221;<br />
GroupId=&#8221;HiMKSDemoIRibbon.CustomTabs.MyGroup&#8221;<br />
Size=&#8221;MukeshLarge&#8221;<br />
Sequence=&#8221;2&#8243;/&gt;<br />
&lt;Scale    Id=&#8221;HiMKSDemoIRibbon.CustomTabs.Scaling.NewGroup.Large&#8221;<br />
GroupId=&#8221;HiMKSDemoIRibbon.CustomTabs.MyGroup&#8221;<br />
Size=&#8221;MukeshLarge&#8221; Sequence=&#8221;3&#8243;/&gt;</p>
<p>4. Define Group<br />
&lt;Group Id=&#8221;HiMKSDemoIRibbon.CustomTabs.MyGroup&#8221;<br />
Sequence=&#8221;2&#8243;<br />
Description=&#8221;"<br />
Title=&#8221;My Group&#8221;<br />
Template=&#8221;HiMKSDemoIRibbon.CustomTabs.MyTemplate&#8221;&gt;</p>
<p>5. Control definition<br />
&lt;Button<br />
Id=&#8221;HiMKSDemoIRibbon.CustomTabs.MyGroup.HelloWorld&#8221;<br />
Command=&#8221;CustomTab.ButtonServerCommand&#8221;<br />
Sequence=&#8221;3&#8243;<br />
Image32by32=&#8221;/_LAYOUTS/INC/MKSRibbon/Img/network32_32r.png&#8221;<br />
LabelText=&#8221;My Control !!!&#8221;<br />
TemplateAlias=&#8221;RowI&#8221; ToolTipTitle=&#8221;Welcome Ribbon&#8221;<br />
ToolTipDescription=&#8221;This is Button -1&#8243;/&gt;</p>
<p>6. Template Defnition<br />
&lt;GroupTemplate Id=&#8221;HiMKSDemoIRibbon.CustomTabs.MyTemplate&#8221;&gt;<br />
&lt;Layout Title=&#8221;MukeshLarge&#8221;   LayoutTitle=&#8221;MukeshLarge&#8221;&gt;<br />
&lt;Section Alignment =&#8221;Top&#8221; Type=&#8221;OneRow&#8221;&gt;<br />
&lt;Row&gt;<br />
&lt;ControlRef DisplayMode =&#8221;Large&#8221; TemplateAlias=&#8221;RowI&#8221;/&gt;</p>
<p><strong>Deploy using Feature.</strong></p>
<p><strong>To make custom tab enable on custom site page this can be instantiated using webpart or usercontrol.</strong></p>
<p>In this case custom webpart and pagecomponent ECMA Script is used</p>
<p>In page load register commands for the button click used Tab definition.</p>
<p>string initialTabId = &#8220;HiMKSDemoIRibbon.CustomTabs&#8221;;// &#8220;DemoRibbon.CustomTabs&#8221;;// &#8220;MKSRibbon.CustomTabaA&#8221;;</p>
<p>if (Page.Request.QueryString["id"] != null)<br />
{<br />
initialTabId = Page.Request.QueryString["id"].ToString();<br />
}</p>
<p>if (!ribbon.IsTabAvailable(initialTabId))<br />
{<br />
ribbon.MakeTabAvailable(initialTabId);<br />
ribbon.Minimized = false;<br />
}<br />
ribbon.InitialTabId = initialTabId;</p>
<p>var commands = new List&lt;IRibbonCommand&gt;();</p>
<p>commands.Add(new SPRibbonCommand(&#8220;CustomTab.ButtonServerCommand2&#8243;, &#8220;alert(&#8217;2&#8242;);&#8221;, &#8220;true&#8221;));<br />
commands.Add(new SPRibbonCommand(&#8220;CustomTab.ButtonServerCommand&#8221;, &#8220;alert(&#8217;1&#8242;);&#8221;, &#8220;true&#8221;));</p>
<p>ScriptLink.RegisterScriptAfterUI(Page, &#8220;SP.Runtime.js&#8221;, false, true);<br />
ScriptLink.RegisterScriptAfterUI(Page, &#8220;SP.js&#8221;, false, true);</p>
<p>//Initialize function<br />
var manager = new SPRibbonScriptManager();<br />
var methodInfo = typeof(SPRibbonScriptManager).GetMethod(<br />
&#8220;RegisterInitializeFunction&#8221;,<br />
BindingFlags.Instance | BindingFlags.NonPublic);<br />
methodInfo.Invoke(<br />
manager,<br />
new object[]<br />
{<br />
Page,<br />
&#8220;InitPageComponent&#8221;,<br />
&#8220;/_layouts/INC/MKSRibbon/PageComponent.js&#8221;,<br />
false,<br />
&#8220;MKSRibbon.PageComponent.initialize()&#8221;<br />
});</p>
<p>manager.RegisterGetCommandsFunction(Page, &#8220;getGlobalCommands&#8221;, commands);<br />
manager.RegisterCommandEnabledFunction(Page, &#8220;commandEnabled&#8221;, commands);<br />
manager.RegisterHandleCommandFunction(Page, &#8220;handleCommand&#8221;, commands);</p>
<br />Filed under: <a href='http://kmukesh.wordpress.com/category/sharepoint-2010/ribbon-control/'>Ribbon Control</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kmukesh.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kmukesh.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kmukesh.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kmukesh.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kmukesh.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kmukesh.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kmukesh.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kmukesh.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kmukesh.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kmukesh.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kmukesh.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kmukesh.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kmukesh.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kmukesh.wordpress.com/310/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=310&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kmukesh.wordpress.com/2011/05/18/how-to-create-custom-site-ribbon-tab-with-buttons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a011090fe30d5573b51509f186450e3e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">MUKESH</media:title>
		</media:content>

		<media:content url="http://kmukesh.files.wordpress.com/2011/05/s11.jpg" medium="image">
			<media:title type="html">s11</media:title>
		</media:content>

		<media:content url="http://kmukesh.files.wordpress.com/2011/05/s21.jpg" medium="image">
			<media:title type="html">s21</media:title>
		</media:content>

		<media:content url="http://kmukesh.files.wordpress.com/2011/05/s31.jpg" medium="image">
			<media:title type="html">s31</media:title>
		</media:content>
	</item>
		<item>
		<title>How to open both Old and New Infopath Template Version in Form Library</title>
		<link>http://kmukesh.wordpress.com/2011/05/01/how-to-open-old-and-new-infopath-together-in-form-library/</link>
		<comments>http://kmukesh.wordpress.com/2011/05/01/how-to-open-old-and-new-infopath-together-in-form-library/#comments</comments>
		<pubDate>Sun, 01 May 2011 15:07:41 +0000</pubDate>
		<dc:creator>Mukesh Singh</dc:creator>
				<category><![CDATA[Infopath]]></category>

		<guid isPermaLink="false">http://kmukesh.wordpress.com/?p=299</guid>
		<description><![CDATA[In a situation when you want InfoPath XML form containing data required to load in the same version  of the InfoPath form template it was created with. After googling I didn&#8217;t find any  proper solution, one way I got by publishing using Infopath designer But this approach is not the smart way to deploy in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=299&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In a situation when you want InfoPath XML form containing data required to load in the same version  of the InfoPath form template<br />
it was created with.</p>
<p>After googling I didn&#8217;t find any  proper solution, one way I got by publishing using Infopath designer But this approach is not the<br />
smart way to deploy in production environment.</p>
<p>Finally I am able to resolve this issue. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>To solve this problem we need to understand, Infopath form template will not work just by saving inside the SharePoint environment. In order to work it should be properly registered. <a href="http://office.microsoft.com/en-us/infopath-help/move-a-published-form-template-to-a-new-sharepoint-library-HP010102446.aspx" target="_blank">Read more</a></p>
<p>To open infopath form in the same version when it was created , change the<span style="color:#0000ff;"> process instruction</span><strong><span style="color:#ff0000;"> &#8220;HREF&#8221;</span></strong> value pointing  to old version of Infopath form template. In this way whenever infopath form will load it will always take the old Infopath form template<br />
and on click of new it will open latest infopath form template .</p>
<p>The most important part is the deployment strategy, which should be capable enough to maintain both old and new version together.</p>
<br />Filed under: <a href='http://kmukesh.wordpress.com/category/infopath-2/'>Infopath</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kmukesh.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kmukesh.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kmukesh.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kmukesh.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kmukesh.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kmukesh.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kmukesh.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kmukesh.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kmukesh.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kmukesh.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kmukesh.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kmukesh.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kmukesh.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kmukesh.wordpress.com/299/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=299&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kmukesh.wordpress.com/2011/05/01/how-to-open-old-and-new-infopath-together-in-form-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a011090fe30d5573b51509f186450e3e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">MUKESH</media:title>
		</media:content>
	</item>
		<item>
		<title>PowerShell Command for SharePoint 2010</title>
		<link>http://kmukesh.wordpress.com/2011/04/11/powershell-command-for-sharepoint-2010/</link>
		<comments>http://kmukesh.wordpress.com/2011/04/11/powershell-command-for-sharepoint-2010/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 21:35:11 +0000</pubDate>
		<dc:creator>Mukesh Singh</dc:creator>
				<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://kmukesh.wordpress.com/?p=294</guid>
		<description><![CDATA[1.  Install / Uninstall and Activate/Deactivate Feature $Hive14=&#8217;C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\&#8217; $Url=&#8217;http://devsp:9901&#8242; $Feature=&#8217;MKS.Services.ProdDev.Images&#8217; $Path=&#8217;E:\WorkArea\MasterPage\&#8217; + $Feature $DestPath=$Hive14 + $Feature Remove-Item $DestPath -recurse Copy-Item $Path  $DestPath  -recurse Disable-SPFeature $Feature -Url $Url Uninstall-SPFeature $Feature Install-SPFeature $Feature Enable-SPFeature $Feature -Url $Url 2. Configuring MasterPage and CSS $newLogoUrl=&#8217;http://devsp:9901/PublishingImages/_t/MukeshMainLogo_jpg.jpg&#8217; $web = Get-SPWeb http://devsp:9901 $web.MasterUrl = &#8220;/_catalogs/masterpage/MKSProductDefaultMasterPage.master&#8221; $web.CustomMasterUrl= &#8220;/_catalogs/masterpage/MKSProductDefaultMasterPage.master&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=294&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>1.  Install / Uninstall and Activate/Deactivate Feature</strong></p>
<p>$Hive14=&#8217;C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\&#8217;</p>
<p>$Url=&#8217;http://devsp:9901&#8242;<br />
$Feature=&#8217;MKS.Services.ProdDev.Images&#8217;<br />
$Path=&#8217;E:\WorkArea\MasterPage\&#8217; + $Feature<br />
$DestPath=$Hive14 + $Feature</p>
<p>Remove-Item $DestPath -recurse</p>
<p>Copy-Item $Path  $DestPath  -recurse<br />
Disable-SPFeature $Feature -Url $Url<br />
Uninstall-SPFeature $Feature<br />
Install-SPFeature $Feature<br />
Enable-SPFeature $Feature -Url $Url</p>
<p><strong>2. Configuring MasterPage and CSS</strong><br />
$newLogoUrl=&#8217;http://devsp:9901/PublishingImages/_t/MukeshMainLogo_jpg.jpg&#8217;<br />
$web = Get-SPWeb <a href="http://devsp:9901">http://devsp:9901</a><br />
$web.MasterUrl = &#8220;/_catalogs/masterpage/MKSProductDefaultMasterPage.master&#8221;<br />
$web.CustomMasterUrl= &#8220;/_catalogs/masterpage/MKSProductDefaultMasterPage.master&#8221;<br />
$web.AlternateCssUrl=&#8221;/_LAYOUTS/1033/STYLES/CUI.css&#8221;<br />
$web.SiteLogoUrl = $newLogoUrl<br />
$web.Update()<br />
$web.Dispose()</p>
<br />Filed under: <a href='http://kmukesh.wordpress.com/category/sharepoint-2010/powershell/'>PowerShell</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kmukesh.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kmukesh.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kmukesh.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kmukesh.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kmukesh.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kmukesh.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kmukesh.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kmukesh.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kmukesh.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kmukesh.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kmukesh.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kmukesh.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kmukesh.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kmukesh.wordpress.com/294/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=294&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kmukesh.wordpress.com/2011/04/11/powershell-command-for-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a011090fe30d5573b51509f186450e3e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">MUKESH</media:title>
		</media:content>
	</item>
		<item>
		<title>How to handle limitations in SharePoint 2010 BCS when working with large data</title>
		<link>http://kmukesh.wordpress.com/2011/02/08/how-to-handle-limitations-in-sharepoint-2010-bcs-when-working-with-large-data/</link>
		<comments>http://kmukesh.wordpress.com/2011/02/08/how-to-handle-limitations-in-sharepoint-2010-bcs-when-working-with-large-data/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 22:50:56 +0000</pubDate>
		<dc:creator>Mukesh Singh</dc:creator>
				<category><![CDATA[BDC]]></category>

		<guid isPermaLink="false">http://kmukesh.wordpress.com/?p=289</guid>
		<description><![CDATA[In SharePoint 2010 when connecting with large data, it will give you error because throttling limit is set and default is 2000, however this is also configurable using Powershell, but this is also not the solution and also not going to fit in all scenario, when someone want to display 20 records in a web [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=289&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In SharePoint 2010 when connecting with large data, it will give you error because throttling limit is set and default is 2000,<br />
however this is also configurable using Powershell, but this is also not the solution and also not going to fit in all<br />
scenario, when someone want to display 20 records in a web part and BCS is  fetching all the record.</p>
<p>This can be handled using object model by invoking BDC Metadata Method Instance and by passing input parameter<br />
and this input parameter can be used to filter the number of record to display.</p>
<p>By using this approach it become quiet handy to full control over the method to execute and input parameter can<br />
be set dynamically which can passed to Stored Procedure /or Custom method where these input<br />
parameter can be used to limit the number of records to display &#8230;.</p>
<br />Filed under: <a href='http://kmukesh.wordpress.com/category/sharepoint-development-deployment-and-common-issues/bdc/'>BDC</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kmukesh.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kmukesh.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kmukesh.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kmukesh.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kmukesh.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kmukesh.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kmukesh.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kmukesh.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kmukesh.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kmukesh.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kmukesh.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kmukesh.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kmukesh.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kmukesh.wordpress.com/289/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kmukesh.wordpress.com&amp;blog=4807253&amp;post=289&amp;subd=kmukesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kmukesh.wordpress.com/2011/02/08/how-to-handle-limitations-in-sharepoint-2010-bcs-when-working-with-large-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a011090fe30d5573b51509f186450e3e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">MUKESH</media:title>
		</media:content>
	</item>
	</channel>
</rss>
