30
May
07

Sharepoint link love 05-30-2007

Problems with licensing MOSS

So today had someone who had used the 180 day trial key of MOSS to its end. Apparently their key expired while we were all grilling out this weekend whoops.

Well, no problem. Just use my blog article How do I find out when my MOSS trial expires? And it has a section on “How to update from MOSS trial to MOSS Standard or Enterprise”. Crisis averted.

Not so fast. She was now getting the error message:

Parsing multi-value fields - MultiChoice, Lookup, User, URL. Rules for the “;#” delimiter.

For certain types of columns (aka fields), SharePoint stores several values in one field, using a delimiter to separate the different values.

Compiling SharePoint 2007 audiences using the SharePoint object model (C# code sample)

A while ago I was looking for a way to start audience compilation using code. While I was looking in the SDK I stumbled upon this little phrase which was quite annoying - “Compiling audiences is not supported in the object model. ” on
http://msdn2.microsoft.com/en-us/library/microsoft.office.server.audience.audiencemanager.aspx .

Fortunately, it does seem to be possible - here’s what you need to do  (I added the code in a SharePoint application page - you know one of those pages that you add in the _layouts folder).

PostBack on TreeView Checkbox Click

The TreeView control included in ASP.Net 2.0 is lacking an option to cause a postback due to a user checking/unchecking a checkbox on a tree node.

I hacked together a little derived class to use in place of the treeview that postsback when the user clicks the checkbox, and also fires an event.

Reformatting XML retrieved directly from the SharePoint API

If you use the SPSiteDataQuery to get XML from SharePoint the results are easy to use with XSL. The format of the XML would be similar to the following…

<rows>
<row>
<Title>Page 1</Title>
<ContentType>Page</ContentType>
<ID>1</ID>
</row>
<row>
<Title>Page 2</Title>
<ContentType>Page</ContentType>
<ID>2</ID>
</row>
</rows>

Site Search not working…

One of my client have a very funny problem. They have deployed MOSS in a POC environment, and had their search settings set properly. Searching for information using the default content scope, “all sites”, yeilds expected results, hence crawling and searching is working fine.

I guess some of you might have noticed that when you are at a site, you will see a new search scope, “This Site”. When you are at a list, you will see additional scope, “This List”. These two scope appears by itself, and there seems to have no place to to set this, or to debug this… How to get this fix?

Building a Site Creation Webpart - How do you get a list of templates?

I am playing around with a webpart in my new VPC that will inevitably create a site based on what a user inputs to a combo box and a couple text boxes.  I can get the user to create the site if I hardcode in the id for the template name, however I want to get all the template codes and shove them into a combo box.  T

MOSS2007 – My “HttpHandler” more work!!

Since my last post on the Http Handler I am writing, I have not been able to fix the issue I get with the constant looping within the code and lack of attaching the “PreInit” method to the page.  However it works really well for normal team sites and site collections, well basically Windows SharePoint Services (WSS). I have had a little more time to work on this and have decided to expand it slightly.

Microsoft Office SharePoint Server 2007 Receives U.S. Department of Defense 5015.2 Certification

Microsoft Corp. today announced that Microsoft® Office SharePoint® Server 2007 has received U.S. Department of Defense (DoD) 5015.2 certification. Endorsed by the National Archives and Records Administration, the 5015.2 standard on which the DoD certification is based serves as the benchmark for government and corporate organizations that manage records and documents.

Private fields or Secure fields

uring SharePoint sessions I often get the question if you could have permissions on the properties of an item in a List or Document Library. This means that some of the properties of an item can be edited or filled in by someone with the right user permissions.

This is not available out-of-the-box and to make something like this you have to create a Custom Field Type. Because I’m a very polite and nice person, I’ve created such a private field for you and off course I will make it available on my blog, but let me first show you how it works.

Meanings of variables in the context menu’s script

If you are building a web part that displays context menus for list items - just like the context menus that SharePoint builds out of the box, you need to know the meaning of the attributes that you need to add to the table that holds the item. I couldn’t find any documentation or referance to it on the internet, so I decided to publish the results of my diggings.

Handle your customized SharePoint sites when you upgrade

If you have extensively customized your SharePoint sites (by using Microsoft Office FrontPage for example), you must decide how to handle your customized sites when you upgrade. Your approach will vary based on the extent of the customizations, the complexity of your site, and your goals for upgrading.

How do i get Word Macros to Work in MOSS/WSS 3.0

Hello Recently i have installed quite a few MOSS and WSS3.0 servers, and have ran into this problem more than once. The company has several word templates and quite a few contains differnt macros. They all worked in SPS2003 where you uploaded them to the FORM folder overwriting the template.doc file there - and…. it worked like a charm.  Today more likely than not you will use content types for templates and the forms library trick dosnt do no more.  But I dont se no reason why the macros shouldnt work.— well … but they dont.

Feature Extensions For WSS Blogs - What Next?

Well, it appears that what I was doing had a big overlap with what the guys over at the Community Kit for SharePoint were doing and so I have joined the team. The plan is now to incorporate the stuff I was doing with the great work they had already done to produce much better release than I could have on my own.

STP files, under the hood

Maybe the title here should be called “Hacking STP files”, but there may be some reasons you would like to know how to accomplish this. WARNING: Any details here are for educational purposes only, making changes to .STP files is not recommended, probably not supported, and generally is a bad idea. Why not instead restore the STP file, make a few tweaks, then re-save as a new template?

In WSS V3 Lookup fields are made easier to code against.

Many of you WSS V2 developers will have come across the “1#;Some text” value that lookup fields return. Some of you will have added code to you own utility classes to parse them to give the ID and Field values. In WSS V3 it gets much easier out of the box with the introduction of the SPFieldLookupValue object which will provide the LookupId and LookupValue fields for you.


0 Responses to “Sharepoint link love 05-30-2007”


  1. No Comments

Leave a Reply