Archive for July, 2007

27
Jul

Sharepoint 2007 link love 07-27-2007

Managed paths for new site collections

Just saw a great demo on planning sites and found out how to use managed paths to create site collections in a web application that do not have to be the /sites/ path. I’m guessing this was the intended approach in SPS 2003, but having never seen it before it’s really alleviated a lot of the problems I’m used to running into.

Things to know about managed paths:

Opening documents from SharePoint crashes Internet Explorer

In some cases when opening a document from SharePoint Internet Explorer crashes. A few alternative solutions can be found in the following KB articles:

http://support.microsoft.com/kb/929360

http://support.microsoft.com/default.aspx?scid=kb;EN-US;840024

http://support.microsoft.com/default.aspx?scid=kb;EN-US;833714

Scaling to Extremely Large Lists and Performant Access Methods

The whitepaper for on understanding the best ways to access and work with extremly large lists is now available.  The paper titled “Working with Large Lists in Office SharePoint Server 2007” evaluates performance characteristics of large SharePoint lists under different loads and modes of operation. Although this whitepaper appears to be focused exclusively on SharePoint Server, you’ll find when it comes to list scalability and programmatic access to lists there is little difference between WSS 3.0 and Office SharePoint Server 2007, especially since they use the same base lists.

Web parts and extended portals

I made a custom search web part for SharePoint as described at: http://msdn2.microsoft.com/en-us/library/ms551453.aspx While developing, in number of occasions, I received an error: „Cannot import this web part”. The error seemed to appear randomly.As usual, the solution was simple. My SharePoint portal was extended to two sites.

Weird SPS Document Library issue

Found this while trying to get some code I wrote to work correctly and it is confirmed by MS. If you have a site structure like 

Company

                Directorates

                                IT

And create a document library called “GaryTest”  (my favorite document library name Wink )and then create the folder structure like Folder1

Updated Base Master Page for Collaboration Sites

I have updated my base master page for MOSS collaboration sites (although I don’t like to call them that now, alas that is for another post. For consistency sake, I will keep the name).

I cleaned it up and labeled more content placeholders, moved a lot of unneeded items to the hidden panel at the bottom of the page.

SharePoint Migration Tools, SharePoint Social Networking and TechReady 5

Another great day here at TechReady. Right now am in a great presentation on SAP/SharePoint integration. Earlier sat in a really good one that Lawrence Liu led on Social Networking tools and there are some great things coming down the pike in enhancements to SharePoint blogs, Wikis, etc as a part of the community work he leads.

Delete Files with Workflow Using Duration

Delete Files with Workflow Using Duration

This is just a quick little tidbit.  Out-of-Box workflows in MOSS, unless manually kicked off, require an event to be triggered.  I was trying to figure out a way to automatically delete files from a document library 3 days after they were uploaded.  The doc library was being used strictly as a transfer point and needed to be kept clean.  Thanks to Sean S. for the idea…

So as simple as it is:

1.       Start a new workflow using SharePoint Designer by going to File -> New -> Workflow.

2.       Give the Workflow a name and select the target doc library or list.

3.       Set the start event.  I set mine to automatically start when the item is created or changed.  Click Next. Migration Tools

Kimmo did a great presentation of his upgrade tools here at TechReady 5 an internal only event.  There isn’t anything in the release folder, but he has been checking in code on the workspace.

http://www.codeplex.com/SPMigration/SourceControl/ListDownloadableCommits.aspx

I know he’s looking for people to validate and help build out the tools which will help you migrate from WSS and SPS/MOSS in 1.0/2001 and 2.0/2003 to 3.0/2007.

Migration Workspace

Creating a New Document Template

When multiple content types are used, Document Templates are managed one per content type.  The following steps walk through uploading a new document template for a content type and assigning it to a document library. Go to Site Actions à Site Settings à Modify All Site Settings. Click on Site Content Types under Galleries. Click on the Content Type that is to be changed. Click on Advanced Settings under Settings.

Display CSS Classes within SharePoint

I’m posting this just because I’m getting tired of losing the script… This is a great script written by Microsoft to reveal CSS classes within SharePoint.

Taken from: (http://msdn2.microsoft.com/en-us/library/ms438349.aspx)

<script language=”jscript”>
function ClassInfo()
{
if (window.event.srcElement.className != null)
{
stsclass.innerText = window.event.srcElement.className;
}
elseSharePoint VHD available again at Microsoft.com

If you read my post the other day entitled SharePoint VHD may be getting fixed you probably noted that the download page for the SharePoint VPC was taken down on Saturday.  Looks like the download page is back up now with a publish date of 7/24/2007:

Get SPUser object for someone who’s never browsed a site before

My friend Mark is working on a MOSS project where all authenticated users have access to the web application, but because they might not have browsed the site yet, he wasn’t able to get an SPUser object for them because they weren’t yet in the content database. I’m big fan of the Contact object in the Microsoft.Office.Workflow.Tasks.dll, so we started down the path using this object, and figured out the code to make it happen:

How to Add a Task in a SharePoint 2007 (MOSS/WSS) Site Programmatically

Here is a piece of code (a function) to add a task. You can use it as a Web Method in a custom Web Service. This method can be used from Applications outside of SharePoint, provided the user using this application has sufficient privilege to update Tasks Lists.

public string CreateTask(string SitePath, string TaskName, string AssgnTo, DateTime DueDate)

    {

        string ReturnVal = “”;

        try

        {

TechReady 5 Update and SharePoint Resources

It’s been a while since I posted. I am out in Seattle all week for TechReady 5, an internal training event for the field. For me it is a great chance to meet with the product teams, get some training, and get to hang out with some of the “Big Boys” in the SharePoint field (I keep hoping if I rub shoulders enough some of those smarts will rub off by osmosis). I have attended some great sessions and will be posting much of what I have learned here after I return. In the meantime though I did want to call your attention to a few nuggets I have seen here.

ASP.Net Ajax Collapsible Panel Style Bug with Absolute Positioning

I’ve been working extensively with ASP.Net Ajax, and the Ajax Control Toolkit in SharePoint/MOSS, which I’ll try to document more later, but I wanted to toss a note up here about a problem I lost alot of time to with the CollapsiblePanel extender in the Ajax Control Toolkit. The javascript for the Collapsible Panel does some trickery during a collapse/expand, involving creating a new child div, and moving all the children into that div

Solution Providers for MOSS

A while ago I found a list on the net with solution providers that have some sort of integration with SharePoint technology. I would like to share that with you: 

“Microsoft Office SharePoint Server 2007 delivers a complete set of functions and tools for interfacing with data and application logic provided by line of business systems, including many features that work right out of the box. Our partner community is also engaged in building connectors, protocol handles, and interoperability solutions using the BDC and .NET technologies. Below is a short list of partners with solutions for Enterprise Search, data integration or data migration for specific Business Applications. This list will expand and change as new solutions are released.”

How to create your own custom wiki site definition

So, a good start with a posting today about one of the chalanges we’ve been dealing with the last couple of weeks. For our customer we want to create a customized wiki definition, with some additional fields and layout. Normally you would think to copy the wiki site definition and change the onet.xml and the list dinition for the additional fields. So this is what we did, and it turns out to work ok. But changing the layout of the wiki page itself is something different…

List views in SharePoint are not as prominent as in the previous version

Even I sometimes forget that I have a predefined view on a list to support a process. In the older versions of SharePoint the views were display as actions on the left of the list. Now they are hidden in a drop-down which is often scrolled off the screen if there are a lot of columns in the default view.

This happened to me today when I was talking to someone who said they had web page listing all the SharePoint related KB articles and hot fixes. That reminded me that I also had these KB’s listed in my resource list but you would not see the pre-defined view unless you found a page on my site that had the tool bar visible (not often the case).

Microsoft Webcast: Creating a Global Human Resources System Foundation with SharePoint Server 2007 (Level 100)

In this webcast, we describe how migration of the Microsoft Human Resources Web content platform to Microsoft Office SharePoint Server 2007 enables: Faster future development. Reduction of 50% custom code, resulting in business and IT agility. Lower sustenance costs. Essential capabilities for future state architecture.

SharePoint and Search Engine Optimization (SEO)

There are quite a few factors that go into Search Engine Optimization. At the end of the day, content is king. Implementing SEO practices into SharePoint is no different. Focus on the following: Title tag has the biggest importance H1, H2, H3, etc. have the 2nd biggest importance in declining order H1 should have the page header or possibly the page title H2 should separate your content into sections… META tags are important and should be part of each single page Link between your sites and to other sites Include a sitemap

 

ANZ MOSS sites in the Wild

Steve Iatropoulos has started compiling a list of Australian/New Zealand websites that are being delivered by MOSS 2007.  Please help make this list grow by emailing steve with the Urls of websites that you know are being delivered by MOSS 2007.

Site Column to Crawled Property to Managed Property

Apparently the lifecycle of a site column (or other property for that matter) to become a crawled and then managed property isn’t easy to remember as I’ve had to “discover” it more than once. Let’s get it in writing this time… When a site column is first created, you can do all the search crawling you want. Full, incremental, doesn’t matter. It won’t show up as a Crawled Property until it’s actually used and there’s data associated with it.

Debugging tips for SharePoint

Debugging on SharePoint is much the same as debugging any other ASP.Net application…you can use the same techniques. Here are some of my tips for diagnosing & solving your problems… Debugging starts with your first line of code As you start writing some code you need to bear in mind that

Incorporating Telerik’s RadMenu in a MOSS 2007 Publishing Site

You have heard people say how easy it is to incorporate new navigation controls, either those you roll on your own or commercial ones you purchase, into a MOSS 2007 Publishing site… or any WSS v3 based site for that matter. Well, now you can see how

 

Using calculated field on Yes/No fields

When you are creating columns in a list you can opt for a calculated field. With this field you can do calculations depending on other fields. You can multiply, add, divide … fields with each other.

If you have a monthly wage field, you can automatically calculate the yearly wage by multiplying with 12.

You can use a calculated field on a Yes/no (checkbox) as well. For example if the checkbox is checked you can display “checked”, otherwise you can display “unchecked”.

This is the formula that you need to use:

SharePoint Designer 2007 Backup: Totally Broken for Sites Greater than 24MB in size

Did you know what SharePoint Designer 2007 backup (Site->Admin->Backup) is totally broken for sites greater than 24MB in size? …even though SPD tells you it succeeded and you’ve carefully burnt months and months of your CMP backup files onto a growing stack of DVDs?

It’s true. Validated by the SPD product group and PSS. …and to “add insult to injury”, MS isn’t sure this will be fixed in time for SP1. :-)

Here’s a workaround:

MOSS Metadata Propperty Mapping Wierdness

I am noticing some wierdness with the MOSS’s metadata propperty mappings.

The scenario I tried was, went to a document library and added a new number column, did an incremental crawl, came back to search settings and went to add a new metadata propperty. If declare the metadata propperty as Integer it does not pick up my new column, but if I declare the metadata propperty as text it does.

26
Jul

Off to China and the last news about Microsoft

25
Jul

Guerrilla Marketing Guru Al Lautenslager Provides Small-Business Owners With Tips on How to Market Their Business

25
Jul

Microsoft Recognizes Outstanding Microsoft Dynamics Partner Achievements

25
Jul

Microsoft and Digg Team Up in Advertising Syndication Agreement

25
Jul

VSTS Rosario CTP Release

25
Jul

OCS 2007 and relates apps updates

25
Jul

Synchronize Facebook With Outlook

25
Jul

Sharepoint 2007 link love 07-25-2007

25
Jul

OCS 2007, Communicator 2007, live meeting 2007 documentation