Annoyance: GUIDs for Views must be upper case

So, I have a list where I’m using one of the views for my own nefarious purposes; I don’t want users to be able to see it normally, so I set it to hidden in my List Schema. That was fine, and worked.

However, I do need administrators to be able to edit that view – so I gave them a link that would take the to the ViewEdit.aspx page. This worked, except that whenever you tried to save any changes to the view, all you got was an error:

This seemed spurious – “View does not exist” – we’d just looked at the view, so how can it not exist? I tried unhiding the view, and testing, and I found that if I went by my link then I couldn’t save changes, but if I went by the standard UI, everything worked.

Great.

In the end I started comparing differences between the pages you got by my link and the UI. What I found was that some of the GUIDs in the page were, like my link, in lower case.

And that was the problem – the GUIDs in the URL needed to be upper case.

I surmise that someone is comparing strings during the ViewEdit save, rather than the GUIDs that they actually are. #FAIL.

Advertisement
Annoyance: GUIDs for Views must be upper case

Calendar and Gantt views have nothing to do with Calendar or Project Lists

I know this sounds obvious, but I had a moment of understanding the other day – Calendar views and Gantt views have nothing to do with Calendar lists and Project lists!

They’re just views that happen to use date columns…

So you can configure the relationship between your list columns and the views…

That’s an interesting concept. We can use this with any list! For example, the start and end dates for help desk calls, or for displaying when things happened. Neat! I can’t think why I didn’t realise this before!

Calendar and Gantt views have nothing to do with Calendar or Project Lists

Adding a Custom View Style to MOSS 2007 or WSS3

Previously I’ve mentioned the intriguing idea of creating a custom view style for SharePoint 2007. Well, it turns out that instructions exist for how to do this in SharePoint 2003 – but I couldn’t find any for MOSS 2007 or WSS3. Well, it turns out that it’s not really that different, as far as I can see!

Continue reading “Adding a Custom View Style to MOSS 2007 or WSS3”

Adding a Custom View Style to MOSS 2007 or WSS3