Saturday, June 14, 2008

Explorer View is too slow

The explorer view feature is one that is VERY popular with end users AND it provides perhaps this simplest way to "Bulk Load" content into SharePoint, when it works, it works really well, however when it doesn't, getting to the bottom of why can be a real pain.

I had IE7 and office 2007 installed. When I opened a document straight from SharePoint it took too much time, even when I opened a document library in Explorer view it also took too much time. I also tried by right clicking on an Explorer view also took too much time to give me the menu.

There are a few causes and solutions for this:


  • Ports 137, 138, 139 and 445 are blocked, and ICMP is not.

  • The server is being accessed using a name other than its configured NetBIOS or Fully Qualified Domain Name. This occurs most often in load balancing and extranet scenarios.

  • WebDAV is trying to use a proxy to access a server on the local network.

  • Running any antivirus like OfficeScan or Trend Micro or Panda Antivirus.

I went as far a reinstalling office 2007 and even installed IE8 RC1 and the problems persisted. I then ran a registry an file trace on my PC to try and figure out what was happening and noticed a lot of TCPIP related info, but no luck.


The lack of performance seems to be related to a setting in Internet Explorer: under Tools, Internet Options, Connections, LAN Settings, you need to uncheck automatically detect settings. This magically increases the speed of your Explorer View, but what is even better: drastically decreases the load time of Office documents when opening them from SharePoint.

See this article to Troubleshooting the SharePoint Explorer View:

http://www.microsoft.com/downloads/details.aspx?familyid=c523ac7a-5724-48be-b973-641e805588f4&displaylang=en

Monday, June 9, 2008

"is Greater than or equal to" option is missing in the filter criteria in Sarepoint Designer

Most of the users face some problems with not having the right operators in the Filter Criteria dialog of a DataForm Web Part speciall when they are trying to filter by was a date.


 After doing lots of R & D I found out two reasons for not able to see this option. Here is the resolution

Resolution 1
One of my sharepoint there was a Lookup column which referred to a list that no longer existed. Note the lack of List name for where it’s getting information:


After deleting this column, I am able to see my all the missing options


After deleting this column, I am able to see my all the missing options

Resolution 2

I also got another solution from http://geekswithblogs.net/naijacoder/archive/2007/10/15/116060.aspx

Once of my end user have same problem and using option 2, his problem was resolved.

Tuesday, May 20, 2008

How to Shrink SharePoint content database size?

Run following SQL command to free up space of sharepoint content database

dbcc shrinkdatabase(WSSContentDatabaseName)

Saturday, May 3, 2008

How to Hide Fields in SharePoint List Form Pages using jQuery

Yesterday, one of friend ask me can we show/hide fields in Newform.aspx and Editform.aspx by clicking on checkbox. It can be done thru sharepoint designer with some rules. But I used jQuery with few lines of code in Task List. I added 1 more field i.e. ShowFields as choice field.


























Then I added a content editor webpart on newform.aspx. MOSS wont allow to edit newform.aspx and editform.aspx. To add webpart on newforn.aspx / editform.aspx, add in &ToolPaneView=2 on the end of the url. So your url for newform.aspx will be http://portal/Lists/Tasks/NewForm.aspx?RootFolder=%2FLists%2FTasks&Source=http%3A%2F%2Fportal%2FLists%2FTasks%2FAllItems%2Easpx&ToolPaneView=2

In source editor of content editor web part, I have added following script

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>

<script>
$(document).ready(function()
{
$("input[title$='ShowFields']").click(function()
{
$("input[title$='Title']").parent('span').parent('td').parent('tr').toggle();
$("nobr:contains('Start Date')").parent('h3').parent('td').parent('tr').toggle();
$("nobr:contains('Due Date')").parent('h3').parent('td').parent('tr').toggle();
});
});
</script>

and close the webpart page. Then open newform.aspx, now whenever I click on Showfields Checkbox then Title/Start Date/Due Date fields are hidden, once I uncheck this it shows the fields again.

Saturday, April 19, 2008

How to set permission and restrict view to particular user

Using following tool you can set permissions to views and restrict views to particular users. This feature is not available in MOSS 2007.

http://www.codeplex.com/SPViewPermission