Friday, December 12, 2008

Calculated Column to Write out the Month

I have many many lists that I want to group by month based on their creation date (or other date column). In order to do I thought I'd have to add a calculated column and then add a horrific formula of nested IF's.

Thankfully this formula does the trick: =TEXT([Article Date],"MMMM")

Thursday, December 11, 2008

Web Services on your dev machine

If you've ever tried to create a web service using a SharePoint development machine (using Visual Studio), you'll recognize this error:

"Visual Web Developer does not support creating Web sites on a SharePoint Web server."

Arrgh.. so annoying. Luckily there's an easy workaround:

First, create a new web application in your webroot folder (probably c:\Inetpub\wwwroot) by creating a folder with explorer, and then application-izing it using the IIS Administration snap-in.

Then, go back to Visual Studio and re-try to create the web service (File->New Web Site) using the name from the folder you just created.

Tadaaaa...