tag:blogger.com,1999:blog-41554992628361954642024-02-20T16:11:14.643+05:30Dhawal MehtaConnecting People, Process & Information by Sharing Knowledge, Ideas & InnovationDhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.comBlogger155125tag:blogger.com,1999:blog-4155499262836195464.post-24609313071520784242016-06-21T01:40:00.002+05:302016-06-21T01:40:25.328+05:30InfoPath Form is not displaying for SharePoint 2013<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif;">I have decided few times to write something every week or at least every month couple of my learning. But from the busy schedule it is becoming a item of prioritization. But this one is a very interesting post and we almost spent > 150 man hours [And $$$] to figure this out. So I thought to share with the world and SharePoint Geeks out there. And again it is not 100% necessary that it will help you but we were not able to find any article referring to this solution out there so decided to have it on my blog.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Problem: I have created multiple SharePoint 2013 Farms by the time I am writing this blog along with my team but this one is the unique we started facing it. Where SharePoint 2013 is not displaying the InfoPath form. We had tested couple of scenarios where it was failing as below.</span><br />
<span style="font-family: Verdana, sans-serif;">1) While User was trying to publish InfoPath, it was failing.</span><br />
<span style="font-family: Verdana, sans-serif;">2) We have created a SharePoint 2010 Approval Workflow and while workflow initiate while user goes for approving the item he/she was not able to get the form as it was not displaying the InfoPath Form.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Now surprisingly out of our 5 environment we were only seeing this behavior on most critical environment. :(</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">We tried all the ways whatever we can and blogs available out there to solve the problem, but at the last we end up reaching out to Microsoft for their help.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Solution: And after hours of long calls and troubleshooting it turned out to be a security patch issue mentioned here @ <span style="background-color: white; border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 1pt none windowtext; color: #005999; font-size: 11.5pt; line-height: 14.65pt; padding: 0in; text-decoration: none;"><a href="https://support.microsoft.com/en-us/kb/3118750" style="background-color: white; font-size: 11.5pt; line-height: 14.65pt;" target="_blank">https://support.microsoft.com/en-us/kb/3118750</a></span></span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Which actually talks about uninstalling <span style="font-size: 11pt;">KB3098779 & </span><span style="font-size: 11pt;">KB3097997.</span></span><br />
<span style="font-family: Verdana, sans-serif;"><span style="font-size: 11pt;"><br /></span></span>
<span style="font-family: Verdana, sans-serif;"><span style="font-size: 11pt;">We uninstall both the KBs from our Windows 2012 R2 servers rebooted the system and we are done long hours and sleep paid off. :P</span></span><br />
<div style="background: white; line-height: 14.65pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #242729; font-size: 11.5pt;"><o:p></o:p></span></div>
</div>
Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-18506861455927682362016-03-18T01:58:00.000+05:302016-03-18T01:58:12.428+05:30Setup is Unable to Proceed due to following error, requires .Net Framework 4.5<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif;">I can not start this blog without giving credit to <span style="color: #241f1f; font-size: 16px; line-height: 30px;">Jon Bryan for his amazing article which helped to resolve the error. @ <a href="https://fim.oholics.net/sharepoint-foundation-2013-setup-is-unable-to-proceed-due-to-following-error-requires-net-framework-4-5/" target="_blank">here.</a></span></span><br />
<br />
<span style="font-family: Verdana, sans-serif;">I did lot of setup of the SP2013 environment in last 2 years. But current error has blew my mind away. And i blame the error message which SharePoint give for this. I am using Windows Server 2012 R2 which comes default with .NET Framework 4.5 and I am keep getting the error message that pre-req .net framework 4.5 is missing.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Finally after reading the blog from Jon Bryan, I have realised that it has 4.5 and complete version is </span><span style="color: #241f1f; font-family: 'Open Sans', sans-serif; font-size: 16px; line-height: 30px;">4.6.01055. That means it is 4.6 while SharePoint 2013 keep looking for </span><span style="color: #241f1f; font-family: 'Open Sans', sans-serif; font-size: 16px; line-height: 30px;">4.5.50501. </span><br />
<span style="color: #241f1f; font-family: 'Open Sans', sans-serif; font-size: 16px; line-height: 30px;"><br /></span>
<span style="color: #241f1f; font-family: Open Sans, sans-serif;"><span style="line-height: 30px;">So, as an It Pro, what you need to do which we called as Register Hack by changing the value only in registry and not uninstalling or installing anything on the server.</span></span><br />
<span style="color: #241f1f; font-family: Open Sans, sans-serif;"><span style="line-height: 30px;">Change the Value @ </span></span><span style="color: #241f1f; font-family: 'Open Sans', sans-serif; font-size: 16px; line-height: 30px;">HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client</span><br />
<span style="color: #241f1f; font-family: Open Sans, sans-serif;"><span style="line-height: 30px;">Key ==> Version = 4.5.50501</span></span><br />
<br />
<span style="color: #241f1f; font-family: Open Sans, sans-serif;"><span style="line-height: 30px;">And start your installation. <b>Keep in mind that after the installation change the same value back to 4.6.01055.</b></span></span><br />
<span style="color: #241f1f; font-family: Open Sans, sans-serif;"><span style="line-height: 30px;"><br /></span></span>
<span style="color: #241f1f; font-family: Open Sans, sans-serif;"><span style="line-height: 30px;">Now, when you go for making the changes to Registry you are going to face another challenge of "Access Denied". Please Use <a href="http://www.groovypost.com/howto/take-full-permissions-control-edit-protected-registry-keys/" target="_blank">this blog</a> from Austin Ruthruff on how to over come with that issue.</span></span><br />
<span style="color: #241f1f; font-family: Open Sans, sans-serif;"><span style="line-height: 30px;"><br /></span></span>
<span style="color: #241f1f; font-family: Open Sans, sans-serif;"><span style="line-height: 30px;">Thanks Joy Bryan and Austin Ruthruff to make the life easier for the people out there.</span></span></div>
Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com6tag:blogger.com,1999:blog-4155499262836195464.post-18212008598206983182013-11-23T00:43:00.001+05:302013-11-23T00:58:39.286+05:30Special Characters handling for filename in SP List<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: left;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">I was working with one of our client where we have developed some custom forms [Visual Web Part] which were saving the data in the SP List.</span></div>
<div style="text-align: left;">
<span style="font-family: Verdana;"></span><span style="font-size: x-small;"> </span></div>
<div style="text-align: left;">
<span style="font-family: Verdana;"><span style="font-size: x-small;"><strong><em>Problem:</em></strong> After go-live on the support business has reported that for some of the items they were seeing the duplicate entries for the items. After long analysis i have figured out that it is happening because business were trying to attached the files with special characters. when they tried SP was giving the error message but was not sufficient for some of the users and they were creating those items again instead of editing the already created item to only attach the file without special characters.</span></span></div>
<div style="text-align: left;">
<span style="font-family: Verdana;"></span><span style="font-size: x-small;"> </span></div>
<div style="text-align: left;">
<span style="font-family: Verdana; font-size: x-small;">After a long discussion we agreed to prevent the user on the same form itself instead of saving it and ask user to edit it later.</span></div>
<div style="text-align: left;">
<span style="font-family: Verdana;"></span><span style="font-size: x-small;"> </span></div>
<div style="text-align: left;">
<span style="font-family: Verdana; font-size: x-small;"><strong>NOTE: This is the case in OOTB SP List as well.</strong></span></div>
<div style="text-align: left;">
<span style="font-family: Verdana;"></span><span style="font-size: x-small;"> </span></div>
<div style="text-align: left;">
<span style="font-family: Verdana; font-size: x-small;"><strong>Solution:</strong></span></div>
<div style="text-align: left;">
<strong><span style="font-family: Verdana; font-size: x-small;">Insert below script on your form</span></strong></div>
<div style="text-align: left;">
<br /></div>
<span style="font-size: x-small;"></span><br />
<span style="font-size: x-small;"></span><span style="background-color: #dddddd; font-size: x-small;"> function PreSaveAction() {<br /> var fileNames = document.getElementById('<%=hfExtensions.ClientID %>').value;<br /> var isInvalidFile = "";<br /> var attachment;<br /> var invalid = "no";<br /> var filename = "";<br /> var fileNameSpecialCharacters = new RegExp("[~#%&*{}<>;?/+|\"]");<br /> var attachmentID = document.getElementById("idAttachmentsTable");<br /> for (var k = 0; k < attachmentID.getElementsByTagName("span").length; k++) {</span><br />
<div style="text-align: left;">
<span style="background-color: #dddddd; font-size: x-small;"> try {<br /> attachment = attachmentID.getElementsByTagName("span")[k].firstChild;<br /> filename = attachment.data;</span></div>
<div style="text-align: left;">
<span style="background-color: #dddddd; font-size: x-small;"> for (var h = 0; h < fileNames.split(',').length; h++) {<br /> if (filename.split('.')[filename.split('.').length - 1] == fileNames.split(',')[h]) {<br /> isInvalidFile = "invalid";<br /> break;<br /> }<br /> }<br /> if (isInvalidFile == "invalid") {<br /> break;<br /> }<br /> }<br /> catch (e) {<br /> }<br /> if (fileNameSpecialCharacters.test(filename.split('\\')[filename.split('\\').length - 1])) {<br /> invalid = "yes";<br /> break;<br /> }<br /> else {<br /> invalid = "no";<br /> }<br /> }<br /> if (isInvalidFile == "invalid") {<br /> alert('The file you are attempting to save or retrieve has been blocked from this Web site by the server administrators');<br /> return false;<br /> }<br /> else {<br /> if (invalid == "no") {<br /> return true;<br /> }<br /> else {<br /> alert('A file name cannot contain any of the following characters: \\ / : * ? \" < > | # { } % ~ &.Please remove the character and try again.');<br /> return false;<br /> }<br /> }<br /> }</span></div>
</div>
Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-2778432315343208622013-04-16T01:53:00.001+05:302013-04-16T01:53:47.501+05:30Content Type Hub for your Enterprise<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Content Type Hub is the new verbage or term you might here a lot while talking about SharePoint 2010 as a enterprise level solution for document or record managment.</span><br />
<br />
<span style="font-family: Verdana; font-size: x-small;">In my last assignment we have used Content Type Hub as it was an enterprise level Record Management System implementation. We have heard or known SharePoint as a Content Management System (CMS) since MOSS, but to me it actually comes with SharePoint 2010.</span><br />
<br />
<span style="font-family: Verdana; font-size: x-small;">So when we started our implementation in early 2011, it was very tough for me as well to understand what it Content Type Hub and how it works. But thanks to <a href="http://www.sharepoint4developers.net/" target="_blank">SharePoint 4 Developer</a> I found the answer in very easy language <a href="http://www.sharepoint4developers.net/en-nz/post/sharepoint-2010-content-type-hub.aspx" target="_blank">here</a>.</span><br />
<br />
<span style="font-family: Verdana; font-size: x-small;">Now, each new feature comes with their pros and cons. So, <a href="http://blogs.msdn.com/b/chaks/archive/2011/02/09/content-type-hub-limitations.aspx" target="_blank">here</a> are the cons or limitations for using the Content Type Hub.</span></div>
Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-41362784556463999722013-04-16T01:45:00.000+05:302013-04-16T01:45:05.543+05:30Search with SharePoint 2010<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Below are some of the best blogs for configuring and customizing Search and understand how search works with SharePoint 2010.</span><br />
<br />
<span style="font-family: Verdana; font-size: x-small;"><a href="http://www.blogger.com/"><span id="goog_1316639250"></span>How to build a good enterprise level Search Center?<span id="goog_1316639251"></span></a></span><br />
<br />
<span style="font-family: Verdana; font-size: x-small;"><a href="http://sharepoint.mindsharpblogs.com/Timothy/archive/2012/03/31/Finding-and-Targeting-Content.aspx" target="_blank">Usage of Content Source</a></span><br />
<br />
<span style="font-family: Verdana; font-size: x-small;"><a href="http://sharepoint.mindsharpblogs.com/Timothy/archive/2012/04/30/Limiting-a-Search-by-Scope.aspx" target="_blank">How to restrict your user search experiance?</a></span><br />
<br />
<span style="font-family: Verdana; font-size: x-small;"><a href="http://sharepoint.mindsharpblogs.com/Timothy/archive/2012/05/31/Customizing-the-User-Search-Experience.aspx" target="_blank">How to customize your user search experiance?</a></span><br />
<br /></div>
Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-56623822122008848542013-04-16T01:32:00.002+05:302013-04-16T01:56:45.967+05:30Managed Metadata Services (MMS) Limitations in SharePoint 2010<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">I am blogging back after a long long time. Since last 2 years i was very busy in one of the largest migration assignment from DCTM to SharePoint 2010.</span><br />
<br />
<span style="font-family: Verdana, sans-serif; font-size: x-small;">We have build one of the largest Record Managment System in SharePoint 2010 history.</span><br />
<br />
<span style="font-family: Verdana, sans-serif; font-size: x-small;">So I just wanted to share some of my learnings and findings from some other blogs here.</span><br />
<br />
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Managed MetaData is one of the biggest term from SharePoint 2010 for their Record/Document Management system, though there are some limitations associated with the same while using it effectively.</span><br />
<br />
<span style="font-family: Verdana, sans-serif; font-size: x-small;">I have found those limitations </span><a href="http://www.sharepointanalysthq.com/2011/06/managed-metadata-column-limitations/" target="_blank"><span style="font-family: Verdana, sans-serif; font-size: x-small;">here</span></a>.<br />
<br />
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Do visit </span><a href="http://www.cleverworkarounds.com/2011/01/09/sp2010-migrating-managed-metadata-term-sets-to-another-farm-on-another-domain/" target="_blank"><span style="font-family: Verdana, sans-serif; font-size: x-small;">this</span></a><span style="font-family: Verdana, sans-serif; font-size: x-small;">, to know the biggest issue with MMS while deploying the site backup from one environment to another. Or you can write me to know more on my experience.</span></div>
Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-63698630026779821892011-05-21T14:46:00.000+05:302011-05-21T14:46:23.639+05:30WebApplication Permission Policy in SharePoint 2010<div dir="ltr" style="text-align: left;" trbidi="on"><span style="font-family: Verdana, sans-serif;">After long time I found some time today to share my new experience in my new organisation. </span><span style="font-family: Verdana, sans-serif;">Since last 10 weeks I was working on my 1st ever SharePoint implementations assessment assignment. And ad on to that it was for SharePoint 2010. </span><br />
<br />
<span style="font-family: Verdana;">My Assignment included to set up or to be precise suggest the Architecture for implementation of SharePoint 2010.</span><br />
<br />
<span style="font-family: Verdana;">One of the requirement from the client is real time. They were planning to make their intranet portal available on extranet users as well. But they want the restriction on some of the confidential documents when same user accessing the portal from extranet.</span><br />
<br />
<span style="font-family: Verdana;"><strong>Requirement:</strong> User A is a exist as a Store Manager in AD. He should be able to access the document on portal only when he is accessing it from store or say from Intranet. At the same time when User A is trying to access the same document on portal from Home through extranet the document should not be accessible to him. </span><br />
<br />
<span style="font-family: Verdana;"><strong>Myth:</strong>It can be achieved by using (1) Audiance Target (2) Creating different group for Intranet and Extranet.</span><br />
<br />
<span style="font-family: Verdana;"><strong>Solution: </strong>I would say option (2) is half true. But My Document library is having a permission only for Intranet Group. Now when user A who is a part of both Intranet & Extranet Group how SharePoint will know when User A is accessing the portal from Extranet or Intranet?</span><br />
<br />
<span style="font-family: Verdana;">Answer to this is Web Application Permission Policy in SharePoint 2010.</span><br />
<br />
<span style="font-family: Verdana;">Step1: Create portal <a href="http://myportal/">http://myportal</a> for "Intranet Zone"</span><br />
<span style="font-family: Verdana;">Step2: Go to Central Admin and Extend "<a href="http://myportal/">http://myportal</a>" for "Extranet Zone"</span><br />
<span style="font-family: Verdana;">Step3: Select the created "<a href="http://myportal/">http://myportal</a>" and select Permission Policy from the "Ribbon" on the top.</span><br />
<span style="font-family: Verdana;">Step4: Create new policy for "Deny" and add Intranet AD group to that, which will prevent the site to be accessed for the defined group in the Deny Policy.</span><br />
<br />
<span style="font-family: Verdana;">Now when User A is accessing the portal from extranet and entered the site, SharePoint knows that User A is accessing the portal as a part of Extranet AD Group and not allowed him to access the Document Library which is only having an access to Intranet Group users.</span><br />
<br />
<span style="font-family: Verdana;">Feel free to write to me for any help on this...and click <a href="http://technet.microsoft.com/en-us/library/ff608071.aspx">here</a> and <a href="http://www.sharemuch.com/2010/11/09/special-permission-management-with-sharepoint-2010-permission-policies-on-web-applications/">here</a> to know more on how to set up site permission policy.</span><br />
</div>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-38036911042602999392011-02-01T21:49:00.000+05:302011-02-01T21:49:30.896+05:30SharePoint 2010 Videos on MSDN<div dir="ltr" style="text-align: left;" trbidi="on">SharePoint Developer Videos <a href="http://msdn.microsoft.com/en-us/library/af1e9a1a-b9ec-41fd-a37e-bdf4c1832245?cid=sdc&VideoID=e3ead67c-f8f1-4b16-9441-fb5199fa68fd">live on MSDN</a></div>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-61896940412382548222010-10-21T16:47:00.000+05:302010-10-21T16:47:34.679+05:30My Column in Search Result<span style="font-family: Verdana, sans-serif;">We have a requirement in our project where we have to fetch the search result from a given list. </span><span style="font-family: Verdana, sans-serif;">Additionaly we have to display some columns from the list in serch result display.</span><br />
<br />
<span style="font-family: Verdana, sans-serif;">We found a good article from </span><a href="http://www.novolocus.com/2008/05/13/what-columns-can-i-use-in-my-search-results/"><span style="font-family: Verdana, sans-serif;">Andy Burn's blog</span></a><span style="font-family: Verdana, sans-serif;"> for how to do this.</span>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-9936465273563755072010-10-20T16:00:00.000+05:302010-10-20T16:00:44.455+05:30Multiple Document Upload with jQuery<span style="font-family: Verdana, sans-serif;">Here is the article with jQuery code from Marc for uploading multiple documents in SharePoint library and at the same time you can name, add description and check-in all together. </span><a href="http://www.endusersharepoint.com/2010/10/18/a-jquery-library-for-sharepoint-web-services-wss-3-0-and-moss-real-world-example-part-4/"><span style="font-family: Verdana, sans-serif;">Click here</span></a><span style="font-family: Verdana, sans-serif;"> to see the article.</span><br />
<br />
<span style="font-family: Verdana, sans-serif;">Thanks Marc :)</span>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-4688410724540978802010-10-20T09:28:00.000+05:302010-10-20T09:28:18.984+05:30Graph in Sharepoint<span style="font-family: Verdana, sans-serif;">It is amazing, you can now have your own Graphs in SharePoint and that is without much programming efforts. We can now use </span><a href="http://spgraphviz.codeplex.com/"><span style="font-family: Verdana, sans-serif;">SPGraphviz</span></a><span style="font-family: Verdana, sans-serif;">.</span><br />
<br />
<span style="font-family: Verdana, sans-serif;">It is one of the amazing tool which is freely available for create your own graphs.</span>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-4080846513294979832010-09-01T16:29:00.002+05:302010-09-03T16:16:56.376+05:30Windows Live ID Authentication for SharePoint<span style="font-family: Verdana, sans-serif;">This is a SharePoint feature that allows you to enable your site with Windows Live ID authentication and take advantage of the huge number of already registered Windows Live ID users.</span><span style="font-family: Verdana, sans-serif;"><br />
</span><br />
<span style="font-family: Verdana, sans-serif;">A great feature available on </span><a href="http://spwla.codeplex.com/"><span style="font-family: Verdana, sans-serif;">CodePlex</span></a>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-44324116110335497852010-09-01T16:23:00.002+05:302010-09-03T16:19:56.787+05:30SharePoint Error Reporting<span style="font-family: Verdana, sans-serif;">SharePoint Error Reporting set up a custom error page to provides error and debug information to the site administrator.</span><br />
<br />
<span style="font-family: Verdana, sans-serif;">No longer an Unexpected Error Has Occurred, or Unknown Error message.</span><br />
<span style="font-family: Verdana, sans-serif;">A very good tool on <a href="http://ser.codeplex.com/">CodePlex</a></span>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-68961912232744756072010-08-31T12:36:00.002+05:302010-09-03T16:21:11.044+05:30Filtering with Web Part Connections<span style="font-family: Verdana, sans-serif;">SharePoint connected filter WebPart help is nicely available with example on </span><a href="http://www.endusersharepoint.com/2010/08/25/sharepoint-filtering-with-web-part-connections/"><span style="font-family: Verdana, sans-serif;">EndUserSharePoint</span></a>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-3885669091865907712010-08-29T13:50:00.003+05:302010-09-03T16:21:40.187+05:30Title column Compulsory in Document Library<span style="font-family: Verdana, sans-serif;">We had a requirement for one of the project where we were migrating existing portal to SharePoint with almost 11 years of documents.</span><br />
<br />
<span style="font-family: Verdana, sans-serif;">We had created a document libraries as per requirement, so users where uploading documents in bulk or say multiple documents in once. Now as they were uploading the documents in bulk they wants to make Title field compulsory so it will look better at the view time.</span><br />
<br />
<a href="http://www.hishamqaddomi.ca/spg/index.php?option=com_content&view=article&id=48:making-the-title-column-required-in-document-picture-libraries&catid=30:tips-and-tutorials&Itemid=68"><span style="font-family: Verdana, sans-serif;">Click here</span></a><span style="font-family: Verdana, sans-serif;"> to find the way.</span>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-62116458182903932972010-07-13T20:51:00.002+05:302010-09-03T16:22:17.683+05:30Modify the message that appears on an empty document library<span style="font-family: Verdana, sans-serif;">We came across a very simple problem, and solution is more simpler. :)</span><br />
<br />
<span style="font-family: Verdana, sans-serif;">We wanted to change the message appearing when there is no document in the document library.</span><br />
<br />
<span style="font-family: Verdana, sans-serif;">Solution:The text comes from the core.resx resource file, located in 12\RESOURCES. It's divided up into four resources; just open the resource file in any text editor and search for "noitemsinview_doclibrary", and you'll find the strings. </span><br />
<br />
<span style="font-family: Verdana, sans-serif;">NOTE: This will change globallly... and you shouldn't rely on changes to the system resource files directly - hotfixes or service packs might overwrite your changes. </span>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-174720859265810492010-05-16T18:40:00.002+05:302010-11-03T16:26:11.805+05:30Search Crawling Stops or The parameter is incorrect in sharepoint search<span style="font-family: Verdana, sans-serif;">This is one of the worst problem I came across. :(</span><br />
<br />
<span style="font-family: Verdana;">I don't blame Microsoft for this, but I can say a wrong governance model is the reason for this.</span><br />
<br />
<span style="font-family: Verdana;"><strong>Problem: </strong>My client complaint that a new item added on the site is not comes under a search result since last few days. I spent lot of a time to find out the real cause. When I have gone through the Search Crawling log an error is found saying "The parameter is incorrect in sharepoint search". When I checked for all the other sites on the farm all are working fine with search and none of the site has given such error at the time of crawling. That has increased my curiosity.</span><br />
<br />
<span style="font-family: Verdana;">After spending a full day at last I found a reason and its a cause for small party ;), thanks to <a href="http://blogs.msdn.com/mattlind/archive/2007/11/02/sharepoint-indexing-limited-by-64-kb-acl-limit.aspx">Mattias Lindberg</a></span><br />
<br />
<span style="font-family: Verdana;"><strong>Solution:</strong> The reason which stops the crawling for the site is the user we have added in the site are more than 5000 in a particular group <strong>instead of adding an AD Group. </strong></span><br />
<br />
<span style="font-family: Verdana;">I am just copying the workaroung given by Mattias below.</span><br />
<br />
<span style="font-family: Verdana, sans-serif;">Our solution was to require sites with over 1500 members to use an AD group for keeping track of membership, as recommended by the KB for SPS 2003. One disadvantage with this approach is that you must maintain membership by updating the AD group so you can no longer request membership using SharePoint standard dialogs.</span><br />
<br />
<span style="font-family: Verdana;">Probably an article is wriiten for SPS 2003 but infect it is applied to MOSS 2007 as well.</span>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-61288067049947082592010-05-16T18:21:00.003+05:302010-09-03T16:24:24.313+05:30Set Domains for People Picker in SharePoint<span style="font-family: Verdana, sans-serif;">I am currently working with one of the retail client where we have one requirement as below.</span><br />
<br />
<span style="font-family: Verdana;">Client is having 4 different domains set for their different group of companies.</span><br />
<span style="font-family: Verdana;">1) abc, </span><span style="font-family: Verdana;">2) def, </span><span style="font-family: Verdana;">3) uvw and </span><span style="font-family: Verdana;">4) xyz.</span><br />
<span style="font-family: Verdana;">Now client doesn't want a users from domain "uvw" to search by anyone (including site admin) in people picker.</span><br />
<br />
<span style="font-family: Verdana;">Solution:</span><br />
<span style="font-family: Verdana;">I have found a very good article by Joel Oleson @ <a href="http://blogs.msdn.com/joelo/archive/2007/01/18/multi-forest-cross-forest-people-picker-peoplepicker-searchadcustomquery.aspx">set propery for people picker</a></span><br />
<br />
<span style="font-family: Verdana;">you can use a command as <span style="color: #660000;">"stsadm.exe -o setproperty -url http://server:port -pn "peoplepicker-searchadforests" -pv "forest:foo.corp.com;domain:bar.foo.corp.com", LoginName, Password"</span></span>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-89280794713150304032010-05-13T21:02:00.001+05:302010-09-03T16:25:04.006+05:30Charting in SharePoint using Google APIs<span style="font-family: Verdana, sans-serif;"><a href="http://www.endusersharepoint.com/2010/05/07/sharepoint-interactive-charts-using-google-visualization-api/">Charts in SharePoint using Google APIs</a>, very good article from Alexander Bautz on EndUserSharePoint.</span>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-64902754801957306722010-05-13T20:51:00.001+05:302010-09-03T16:25:36.077+05:30Preview Image on Link Mouse Hover<span style="font-family: Verdana, sans-serif;">One of the very common requirement. And I found a very good article on EndUserSharePoint one of my favorite site for learning something new on SharePoint.</span><br />
<br />
<span style="font-family: Verdana;">Click here to learn how implement a <a href="http://www.endusersharepoint.com/2010/05/05/sharepoint-image-preview-on-hover-over-a-hyperlink-field/">MouseHover on Link for Image Preview</a>.</span>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-75365401587169360302010-05-13T20:41:00.002+05:302010-09-03T16:26:21.127+05:30SharePoint Approval workflow restart on Edit Item<span style="font-family: Verdana, sans-serif;">This is a very old and very common requirement. But after working on SharePoint since last 3 years this is the first time I came around with such problem and it is very surprising for me as well that why I never came across such problme in past.</span><br />
<br />
<span style="font-family: Verdana, sans-serif;">1. I never came across such requirement</span><br />
<span style="font-family: Verdana, sans-serif;">2. HotFix is already installed on the servers.</span><br />
<br />
<strong><span style="font-family: Verdana, sans-serif;">Problem Statement</span></strong><br />
<br />
<span style="font-family: Verdana, sans-serif;">I have one Document Library called : Company News, I have attached a sequential workflow with Approval and Publisher group with On Add and Edit items. Now whenever a new item is created in document library it starts the workflow and approver approves it.</span><br />
<br />
<span style="font-family: Verdana, sans-serif;">Once approver approve the item, it goes to publisher being asequential workflow for their approver. But since publisher is also approving the item, it is still showing an item as InProgress.</span><br />
<br />
<strong><span style="font-family: Verdana, sans-serif;">Solution</span></strong><br />
<br />
<span style="font-family: Verdana, sans-serif;">Download the HotFix from </span><a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;955586"><span style="font-family: Verdana, sans-serif;">http://support.microsoft.com/default.aspx?scid=kb;en-us;955586</span></a>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-79976400266564453702010-05-07T08:44:00.001+05:302010-05-07T08:45:57.441+05:30Session Timeout in SharePointSince long I have a question that how can I implement a session time out in SharePoint sites. But i never explore as there is no such requirement in any of my project till now.<br />
<br />
Suddenly the requirement came and we have to suggest a way to do that with the minimal efforts. And after searching on google i found <a href="http://vspug.com/erickraus/2007/12/09/enable-session-state-in-sharepoint-2007/">this</a> and <a href="http://slightlybehindthecurve.wordpress.com/2008/02/29/how-to-force-timeouts-in-a-sharepoint-intranet-site-when-using-windows-authentication/">this</a>..., though still we haven't implemented it :(<br />
<br />
I am giving you the easiest way directly here to implement that, edit your master page and add the below script in javascript block.<br />
<br />
<strong>function MySiteTimeOut()</strong><br />
<strong>{setTimeout("SessionTimeOut()", 300000);}</strong><br />
<br />
<strong>function SessionTimeOut()</strong><br />
<strong>{document.execCommand("ClearAuthenticationCache");} </strong><br />
<br />
This is the same function called when you click on Sign-out in SharePoint site.<br />
<br />
<br />
<br />
<script type="text/javascript">
</P><p>
function MySiteTimeOut()</P><p>
{setTimeout("SessionTimeOut()", 300000);}</P><p>
function SessionTimeOut()</P><p>
{document.execCommand("ClearAuthenticationCache");} </P><p>
</script>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-26902261885796683432010-01-09T16:38:00.004+05:302010-09-03T16:27:03.649+05:30Hide WebPart at run time<span style="font-family: Verdana, sans-serif;">In one of my project we had a requirement to hide the WebPart based on the logged in user's department-id. We are not able to use Audiance Targeting to achieve this cuase we were getting user's department id using webservice from 3rd party system only.</span><br />
<span style="font-family: Verdana, sans-serif;">What I did, I wrote my custom RSS Viwer WebPart with custom field. And Thanks to </span><a href="http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/02a006f3-c4d6-4799-aa5c-a2f4fd8f6171"><span style="font-family: Verdana, sans-serif;">SharePoint Developer Center</span></a><span style="font-family: Verdana, sans-serif;">, I found a solution to hide the webpart at runtime very easily.</span><br />
<span style="font-family: Verdana, sans-serif;">See the Code Snippet below.</span><br />
<em><span style="color: #993300;"><span style="font-family: Verdana, sans-serif;">protected override void OnPreRender(EventArgs e)<br />
{<br />
if(<span style="color: red;">your condition</span>)<br />
HideWebParts();<br />
}<br />
<br />
private void HideWebParts()<br />
{<br />
if (this.WebPartManager.DisplayMode != System.Web.UI.WebControls.WebParts.WebPartManager.EditDisplayMode<br />
&& this.WebPartManager.DisplayMode != System.Web.UI.WebControls.WebParts.WebPartManager.DesignDisplayMode)<br />
{<br />
for (int i = 0; i <></span></span><br />
<span style="font-family: Verdana, sans-serif;"><em><span style="color: #993300;">{ </span></em><br />
<em><span style="color: #993300;">if (WebPartManager.WebParts[i].Title == this.<span style="color: red;">YourCustomWebPartName</span>.Title) </span></em><br />
<em><span style="color: #993300;">{ </span></em><br />
<em><span style="color: #993300;">WebPartManager.WebParts[i].AllowHide = true; </span></em><br />
<em><span style="color: #993300;">WebPartManager.WebParts[i].Hidden = true; </span></em><br />
<em><span style="color: #993300;">} } } } </span></em></span></em>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-46249667885584185912009-12-25T12:57:00.002+05:302009-12-25T13:02:31.930+05:30Guide to Code Access Security in SharePoint Server 2007<span style="font-family:verdana;font-size:85%;">Andrew Connell has published an article on CAS for SharPoint.<br />It will be very helpful for Developers. </span><a href="http://msdn.microsoft.com/en-us/library/ee909485.aspx"><span style="font-family:verdana;font-size:85%;">Click here</span></a><span style="font-family:verdana;font-size:85%;"> to read more.</span>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0tag:blogger.com,1999:blog-4155499262836195464.post-24106450928575939332009-12-17T10:41:00.003+05:302009-12-25T12:49:04.924+05:30Developing on SharePoint 2010<span style="font-family:verdana;font-size:85%;"><a href="http://msdn.microsoft.com/en-us/sharepoint/ee513147.aspx">Getting Started</a></span><br /><a id="ctl00_mainContentContainer_ctl06" onclick="javascript:Track('ctl00_mainContentContainer_ctl00ctl00_mainContentContainer_ctl06',this);" href="http://msdn.microsoft.com/sharepoint/ee513148.aspx"><span style="font-family:verdana;font-size:85%;">Module 1: Getting Started: Building Web Parts in SharePoint 2010</span></a><br /><a id="ctl00_mainContentContainer_ctl07" onclick="javascript:Track('ctl00_mainContentContainer_ctl00ctl00_mainContentContainer_ctl07',this);" href="http://msdn.microsoft.com/sharepoint/ee513149.aspx"><span style="font-family:verdana;font-size:85%;">Module 2: What Developers Need to Know About SharePoint 2010</span></a><br /><a id="ctl00_mainContentContainer_ctl08" onclick="javascript:Track('ctl00_mainContentContainer_ctl00ctl00_mainContentContainer_ctl08',this);" href="http://msdn.microsoft.com/sharepoint/ee513150.aspx"><span style="font-family:verdana;font-size:85%;">Module 3: Building Blocks for Web Part Development in SharePoint 2010</span></a><br /><a id="ctl00_mainContentContainer_ctl09" onclick="javascript:Track('ctl00_mainContentContainer_ctl00ctl00_mainContentContainer_ctl09',this);" href="http://msdn.microsoft.com/sharepoint/ee513151.aspx"><span style="font-family:verdana;font-size:85%;">Module 4: Accessing SharePoint 2010 Data and Objects with Server-Side APIs</span></a><br /><a id="ctl00_mainContentContainer_ctl10" onclick="javascript:Track('ctl00_mainContentContainer_ctl00ctl00_mainContentContainer_ctl10',this);" href="http://msdn.microsoft.com/sharepoint/ee513152.aspx"><span style="font-family:verdana;font-size:85%;">Module 5: Accessing SharePoint 2010 Data and Objects with Client-Side APIs</span></a><br /><a id="ctl00_mainContentContainer_ctl11" onclick="javascript:Track('ctl00_mainContentContainer_ctl00ctl00_mainContentContainer_ctl11',this);" href="http://msdn.microsoft.com/sharepoint/ee513153.aspx"><span style="font-family:verdana;font-size:85%;">Module 6: Accessing External Data with Business Connectivity Services in SharePoint 2010</span></a><br /><a id="ctl00_mainContentContainer_ctl12" onclick="javascript:Track('ctl00_mainContentContainer_ctl00ctl00_mainContentContainer_ctl12',this);" href="http://msdn.microsoft.com/sharepoint/ee513154.aspx"><span style="font-family:verdana;font-size:85%;">Module 7: Developing Business Processes with SharePoint 2010 Workflows</span></a><br /><a id="ctl00_mainContentContainer_ctl13" onclick="javascript:Track('ctl00_mainContentContainer_ctl00ctl00_mainContentContainer_ctl13',this);" href="http://msdn.microsoft.com/sharepoint/ee513155.aspx"><span style="font-family:verdana;font-size:85%;">Module 8: Creating Silverlight User Interfaces for SharePoint 2010 Solutions</span></a><br /><a id="ctl00_mainContentContainer_ctl14" onclick="javascript:Track('ctl00_mainContentContainer_ctl00ctl00_mainContentContainer_ctl14',this);" href="http://msdn.microsoft.com/sharepoint/ee513156.aspx"><span style="font-family:verdana;font-size:85%;">Module 9: Sandboxed Solutions for Web Parts in SharePoint 2010</span></a><br /><a id="ctl00_mainContentContainer_ctl15" onclick="javascript:Track('ctl00_mainContentContainer_ctl00ctl00_mainContentContainer_ctl15',this);" href="http://msdn.microsoft.com/sharepoint/ee513157.aspx"><span style="font-family:verdana;font-size:85%;">Module 10: Creating Dialog Boxes and Ribbon Controls for SharePoint 2010</span></a>Dhawal Mehtahttp://www.blogger.com/profile/02813686673005360985noreply@blogger.com0