May 2008 - Posts

Provisioning User to ADAM in ILM2007

I just finish provisioning a user object to ADAM from AD today, the process is pretty smooth and below is the first piece of codes that I wrote for the metaverse rule extension in ILM2007

// Provision to ADAM
MA = mvEntry.ConnectedMAs["ADAM_MA"];
Connectors = MA.Connectors.Count;
rdn = string.Format("CN={0}", cn);
dn = MA.EscapeDNComponent(rdn).Concat("OU=Alpha Users,DC=ALPHA,DC=COM); 

if (Connectors == 0)   
{
       
  csEntry = MA.Connectors.StartNewConnector(
"user");
       
  csEntry.DN = dn;
       
  csEntry.CommitNewConnector();
   
}
   
else if (Connectors == 1)
   
{
       
  csEntry = MA.Connectors.ByIndex[0];
       
  csEntry.DN = dn;
   
}
   
else
   
{
       
  LogAndThrowUnexpectedDataException(
"Multiple connectors in MA");
   
}

The code is obviously incomplete, but there are lots of useful resources on the net and below are the links that I read today:

If you are new to MIIS / ILM like me, make sure you check out the first article which is extremely useful, easy to read and understand.

Posted by Colt | with no comments
Filed under:

IIS Feature is missing during SQL 2005 Installation

This is not the first time for me to see this message, so I think it may be a good idea to blog about it for future reference.

The error message is:

Microsoft Internet Information Services (IIS) is either not installed or is disabled. IIS is required by some SQL Server features. Without IIS, some SQL Server features will not be available for installation.

Last time I saw this error when I try to install SQL 2005 in my Vista environment. I do have IIS installed in my Vista and I have no idea what's wrong with this error message. (Solution can be found here BTW)

Today, I see this error again in my clean Win2K3 server box. (ha) It is much easier for me to solve this problem because the cause is just because IIS is not enabled by defafult in Win2K3. So I just select and enable IIS in Add/Remove Windows Components then the SQL 2005 installation go well.

Posted by Colt | 15 comment(s)
Filed under:

Install WSS Tools: VS 2005 Extensions on Vista

Windows SharePoint Services 3.0 Tools: VS 2005 extension can improve the productivity of developers because it comes with a lists of useful project and item templates. However, this tool is only limited to OS of either Win Server 2003 or Win Server 2008.. If you are running Vista or develop SharePoint solution remotely, you may want to take a look at the hack from this blog post.

P.S. The latest version of WSS Tools: VS2005 Extension should be V1.1, instead of V1.0 as mentioned in the blog post.

Posted by Colt | 2 comment(s)
Filed under:

Note on Customizing Content Query Web Part

Content Query Web Part (CQWP) is a powerful feature in SharePoint, where users can create custom view of data that is queried from various sources, lists, libraries, and present all in one web part. One of my tasks yesterday is to create a content query web part, and query the contents from two sub-sites. Specifically, I have 2 calendars in 2 sub-sites and I have to query all events and combine into a master calendar in the top site (Of course I can make use of the great filtering, sorting and grouping features in CQWP).

After adding the CQWP, my next step is to customize the layout because the default one is too plain. I google and find all these useful articles:

One of the techniques in customizing CQWP layout is to make use of internal field name and modify CommonViewFields in the exported .webpart file. I follow all steps, modify the .webpart and xsl files as I wish, but I still can't display the content in my CQWP (I can see some other default fields like Title though).

Later, I find the bug is at the key element - CommonViewFields - It does not allow SPACE in the value string. For example:

Wrong:  <property name="CommonViewFields" type="string">Title, Text; Description, Note;</property>

Correct: <property name="CommonViewFields" type="string">Title,Text;Description,Note</property>

My note is that we developers cannot add SPACE when typing the value, or even anywhere in the tag. And, we should not add a semi-colon at the end of the string.

P.S. After customizing the layout and fields on the CQWP, we will most probably need to format the field, such as changing the time format of a DateTime field, number of decimal points etc, and here is a very useful reference article: Customizing the Content Query Web Part XSL

Posted by Colt | 11 comment(s)
Filed under:

Visual Studio extensions for SharePoint - Developer User Guide

I was engaged in a SharePoint workflow project recently, so I prepare and boost my learning in SharePoint technology. I got new laptop and VS2008 (excited), but then I heard that the extension for VS 2008 will only be available in June 2008 (Today is still May!)

So I install VS2005, the extended SharePoint tool and the following "mandatory" components:

Of course, I need to check out the user guide of VS extension that just released yesterday.

Please feel free to drop me any useful resources or website so as to fasten my learning process. :)

Posted by Colt | with no comments
Filed under: ,
More Posts