Apr19

SharePoint User Group UK Meeting – Bracknell 15th May

Categories:

Details for the next SharePoint User Group UK meeting have been posted. HP are currently hosting the event in Bracknell. The following topics will be covered:

1, "Exchange 2007 and SharePoint 2007 – Living Happily Ever After?" – this highlights all the integration points between E2K7 and MOSS and question how robust they are in real life

2, "A User Centred Approach to Designing Web Portals" – Given the CMS integration in MOSS, introduction of blogs, wikis, workflow and a whole host of user interaction within MOSS, designing web applications from a user perspective is essential. This talk will provide a view of techniques that can be used to design web portals (applicable to all web based apps – not specific to MOSS necessarily) with usability in mind

3, "HP MOSS Sizing and Configuration Utility" – the HP utility for calculating MOSS server / farm architecture sizing and configuration of servers.

For more information and to sign up and attend please visit the following link:

http://suguk.org/forums/thread/3021.aspx

 
Apr18

Up North of the Border Again

Categories:

This week I'm up in Aberdeen again visiting a company to design and deploy MOSS 2007 for them to use as a knowledge management solution. They'd done a pilot a little while ago on SharePoint 2003 (before they'd contacted us!), so showing them what could be done with SharePoint 2007 is great. Aberdeen is a nightmare to get a hotel room at so I've ended up staying at StoneHaven. I've got to say I'm actually really glad I'm here as there are some great local pubs that do great food. It's by the sea as well so taking a stroll around the harbor is really nice after spending a day working hard with SharePoint! Here are a few pics I took today:

 
Apr18

core.js slowing down page loading speed?

Categories:
An issue that we came across at a customer recently was that they had users connecting and view MOSS 2007 over all types of connections, broadband, dialup, gprs even. The very first page load was taking quite a long time and after a bit of investigation it seemed to be because of core.js being such a big file and needing to be downloaded to the client.
 
Thankfully the ECM team have a nice post on how to work around this. Nice url for the page, guess it does what it says on the tin!
 
Apr13

SharePoint 2007 – create site collections with a separate content database

Categories:

A lot has been said in general about the goodness of creating site collections in SharePoint 2007 rather than just sub sites. The main reason being that you can create a content database for each site collection (which helps with backup and restore strategies). I was trying to find a document on how to do this for SharePoint 2007 via the usual search engines so I could send a link to a customer but unfortunately didn't find anything. Below are three methods to get this done (1 not so clever, which was the way I knew, and 2 very much better ways from Ben Curry).

My Way:

1. go into central admin and create a new content db for the existing web application

   

2, go and set the initial content db to be full ie set it site warning level to 0, and max number of sites to 1

   

3, go and create a new site collection for the web app, this gets put into the new content db created

   

4, check it's gone in the new content db, it has hurrah! Now go to the initial content DB and set it's max site number back to what it was.

 

Ben's two ways:

 

From the GUI:

 

1, Take the existing contentDB(s) for that web app OFFLINE (this doesn't actually take the Site Collections offline, but prevents new Site Collections from being created in the database)

 

2, Then, create a new ConentDB.

 

3, Create the new Site Collection

 

4, Take the step 2 content database offline. It will function normally, but refuse NEW site collections

 

5, Set the original contentDB online

 

From the command line:

 

Stsadm.exe –o createsiteinnewdb –url <site collection URL> -owneremail <e-mail address> -ownerlogin <SC admin> -databasename <DB Name>

 

will allow you to create a Site Collection in a dedicated content database. Don't forget to take the database offline after creation, or future sites could be created in the new database. The following additional parameters can also be specified:

 

-secondaryemail <someone@example.com>

-secondarylogin <DOMAIN\name>

-secondaryname <display name>

-lcid <language>

-sitetemplate <site template>

-title <site title>

-description <site description>

-quota <quota template>

-databaseuser <database username>

-databasepassword <database password>

-databaseserver <database server name>

-databasename <database name>

 

Ben's also included this in his book which is coming out soon, the Administrators Pocket Consultant

 
Apr10

Creating your own Profile page for Business Data Catalog Entities

Categories:

This is actually something I did for my very first MOSS 2007 BDC project that I forgot to write about. I saw a question about it on the MSDN SharePoint forums so thought I'd write about it there.

When you create an application definition file that describes an entity, you can create a specific finder method. If you do this (and you set the title property of your entity), you'll get a profile page created for that entity that shows all the data returned from the specific finder method. So when you add a business data web part to your page you get the 'View Profile' link:

And when you click on this you get taken to the Profile page that displays all the fields that are returned from the specific finder:

This page can be edited the same as any other web part page by going Site Actions -> Edit Page. You can configure the Business Data Item web part to only show the columns you want. You could add a Business Data Related List web part and show any associated data for the Product (in our example) on show such as Sales Orders.

This all works nicely. If you check out the URL in the browser of the above image you'll see that this page is served up by the Shared Service Provider that you imported your BDC application definition to. This is cool for most scenarios as it means you can share your BDC data across different portals that are served by the same SSP, but what if you are perhaps presenting this data on an Intranet/Extranet site and you don't want the URL to be completely different? Just create your own profile page! For our example we're going to continue to use the Product entity that's part of the AdventureWorks 2000 sample that comes with the SDK.

1, Go and create a web part page where you want to have your profile page. Mine is created at http://usb-server1/bdc/default.aspx

2, Add to a web part zone a Business Data Item Builder and a Business Data Item. The Business Data Item Builder is a web part that is only visible when the page is in edit mode. Its job it to get identifiers from query string parameters from URL of the page it is placed on. It can then pass these values onto other web parts. For example if the url we use to go to default.aspx is default.aspx?productId=3, it would pass the value 3 to our Business Data Item web part which would display the record which has an ID of 3.

3, To make this happen the first thing we need to do is configure out Business Data Item web part. Open the tool bar pane and chose our Product entity as the type we want displayed.

4, Upon closing the tool bar pane we can now connect our web parts up. Do this by clicking edit on the Business Data Item web part, edit -> Connections -> Get Selected Item From -> Business Data Item Builder

5, When we've connected our web parts together the Business Data Item web part will display an error of "Item not found in AdventureWorks2000Instance". If we exit edit mode of the page, and add a query string onto the page url to make it something like:

Default.aspx?productId=3

You'll see our Business Data Item web part is able to display the entity that has the primary key identity of 3.

6, Now we need to get it working so that our Search results and Business Data List Web Part point to our new profile page when users click on the 'View Profile' link. To do this we need to go into Central Admin:

Central Administration -> Our Shared Service Provider -> Business Data Catalog section, View Applications -> Chose our AdventureWorks Instance -> Chose the Product entity

Down towards the bottom on the Actions section you'll see a View Profile link. Click on this. We want to set the URL to be the link to our new profile page, eg http://localhost/bdc/default.aspx?productId={0}

Remember to include the curly brackets and a number for each parameter you want to pass to the url

Click OK to finished editing the action. Now back on the main entity page you will see the URL for the View Profile Action has changed.

If we now add a Business Data List web part that displays this entity, clicking on the View Profile action will take us to our new page. If we want this new page to be the one linked to for search results we'll need to do a full crawl of our Business Data Catalog Content Source. Once that's completed it should all work perfectly.

Remember to always try things like this in your test/development environment first!

 
Apr7

What SharePointNick will be up to this Easter Weekend

Categories:

As some of you know who have me added to your Messenger friends list I spend a lot of time in front of my PC. I will admit it's not all necessarily work (especially now Command and Conquer 3 is out!), but an awful lot of it is!

This Easter weekend will be no different. A number of SharePoint related tasks that I have set myself to do:

  • Make sure all my RSS feeds have been read by the end of Monday evening. That means something like 300 posts to read.
  • Read over the two planning and architecture SharePoint 2007 downloadable books from Microsoft. I want to print them out on paper as I prefer reading large docs that way rather than on screen but it just feels so wrong! You can get links to the docs from Spencers post. Always good to read over the MS documentation and keep up with best practices!
  • Planning scenarios for our SharePoint Lab that we are creating at Sword UK. This is very exciting initiative I've kicked off there. Expect more posts on the matter very soon!
  • Ongoing work with BDC Meta Man. Oracle and SQL Server 2005 stored procedure support is next.

     

So other than the SharePoint stuff there is operation garden. The previous people who lived in our house loved gardening and so there lots of stuff built up, nice places for flowers, little trees etc. Exactly the things that need a lot of care that a busy SharePoint guy doesn't have time to do. So the first operation this long weekend is to clear the bottom of the garden so that Sophie can have a vegetable patch and we can start eating some nice organic home grown veggies! I really wish I had a before pic, the best I can do is an overview from Local.live.co.uk

The roof is our house obviously, and the red rectangle is the area we are clearing. It had tons of little trees and shrubs in but now the effort has started they are all gone and I've moved probably about a ton of mud today with a shovel and wheel barrow. My usually soft SharePoint hands have been working so hard today they have blisters! It even hurts to type this blog post! I really wish I had a before picture but I didn't expect it to be so much hard work. Expect some photos tomorrow and ongoing as we tackle this little garden project!

 
Apr6

Business Data Catalog, Views, and BDC Meta Man

Categories:

I'm very excited this evening as we've released a new version of BDC Meta Man. This version includes a major improvement as it actually allows you to add Views from SQL Server as Entities to your design surface and generate the correct application definition files for them. Matt Taylor who's a member of SUGUK and a good friend explained to me how important views and stored procedures were and why we should implement them asap. Many IT environments with DBA's wouldn't allow SQL statements to be executed directly against databases as the DBA's like to know what's going on. By using views or stored procedures that have audited, tested, and authorized, they can sleep at night knowing their DB's will be in tact the next day. We've not got stored procedures working yet (we have in development, but the code and UI isn't mature enough yet to be released), but I think getting Views working with BDC Meta Man is a big step forward!

Here are a few images to show you. The first one is the list of tables and views that come out of the box with the Adventure Works sample for SQL Server 2005

The views are mixed in alphabetically with the tables. It just so happens that the views in this database start with the letter v, and so appear at the bottom of the list. Now if we drag our view onto the design surface, it'll get created as an entity

And you should be able to successfully generate the application definition files for it. The one part that isn't working at the moment is being able to generate an IdEnumerator for a view. We need to do a little work for this still, although that functionality will be available in the not too distant future.

We've tested this out as much as we can. This release has been done as a Beta, so please download it and try it out. Any bugs submitted will be much appreciated. The free version of BDC Meta Man will allow you to add one view to the design surface as an entity. With the professional version you can add as many as you like. Here's where you can get the download:

http://www.bdcmetaman.com/Downloads/Forms/AllItems.aspx

if you're an existing customer make sure you read the upgrade instructions that come in the download.

 
Apr1

MVP for another year

Categories:

Got the good news email this morning that I'm a SharePoint MVP for another year! Woot! April 1st is really the worst day to get awarded as you have to think for a minute or two whether it's a joke or not!

Thanks to everyone who's helped with the user group over the past 14 months, and also the other SharePoint MVPs who I've referred peoples questions to (and of course my own!) many a time. Lots more hard work to put into the user group this year with exciting events and presentations. Also got some good blog posts on the way about things I've been working on or bits that others have yet to really cover yet. Keep your eyes peeled for those. Remember I'm keen to write about topics that people want to read about so if there's an area you feel is lacking coverage, drop me a comment or email and I'll do my best.