Welcome to my blog on all things SharePoint. I have a range of articles that will interest you if you've made it as far as visiting my blog. I was awarded as an SharePoint MVP by Microsoft in July 2010. I currently live in New York and am an Enterprise Architect at AvePoint Inc.. I co founded www.NothingButSharePoint.com with Mark Miller in 2010.

MVP AwardJeremy Thake Profile Photo

Whitepapers

NBSP

Check out my articles on NothingButSharePoint.com

Solution Development in SharePoint 2007

This series was inspired by the chatter amongst SharePoint blogs on the best ways to approach customisations in SharePoint using Solutions.

Part 1 - Part 2 - Part 3 - Part 4 - Part 5 - Part 6 - Part 7 - Part 8

Leveraging the SharePoint Platform

This series was inspired by a discussion had with Andrew Coates at a Perth SharePoint User Group meeting. This then turned into a 6 part series on Arno Nell's SharePointMagazine.net web site.

Initial post - Part 1 - Part 2 - Part 3 - Part 4 - Part 5 - Part 6

Webcasts

I have recorded various web casts that I present at User Groups or just on a specific topic by request:
How ASP.NET Developers can leverage SharePoint webcast
SPSource Webcast: Reverse engineer Lists to ListTemplates and much more
SharePoint Development with Unit Testing webcast
Perth SharePoint UG Web Cast on approaches to deploying artefacts (SPSource)
More...


Podcasts

I have been interviewed about Leveraging the SharePoint Platform by the SharePoint Pod Show: listen here .

RSS Feed Feed your read!

Archives

January 2012 (5)
September 2011 (2)
August 2011 (1)
July 2011 (3)
June 2011 (7)
May 2011 (3)
April 2011 (3)
March 2011 (3)
February 2011 (2)
January 2011 (1)
December 2010 (4)
September 2010 (4)
July 2010 (5)
June 2010 (4)
May 2010 (6)
April 2010 (7)
March 2010 (5)
February 2010 (7)
January 2010 (3)
December 2009 (1)
November 2009 (6)
October 2009 (9)
September 2009 (7)
August 2009 (6)
July 2009 (13)
June 2009 (4)
May 2009 (12)
April 2009 (4)
March 2009 (4)
February 2009 (13)
January 2009 (4)
December 2008 (4)
November 2008 (11)
October 2008 (16)
September 2008 (4)
August 2008 (5)
July 2008 (4)
June 2008 (8)
May 2008 (5)
April 2008 (9)
March 2008 (5)
February 2008 (6)
January 2008 (1)
November 2007 (11)
October 2007 (8)
September 2007 (24)
August 2007 (5)
July 2007 (2)
May 2007 (1)
April 2007 (1)
March 2007 (1)
February 2007 (3)
January 2007 (4)
November 2006 (7)
October 2006 (7)
September 2006 (18)
August 2006 (14)
June 2006 (3)
May 2006 (8)
April 2006 (4)
March 2006 (38)
February 2006 (30)
January 2006 (2)
December 2005 (3)
November 2005 (28)
May 2005 (1)
April 2005 (5)
March 2005 (1)
November 2004 (1)
August 2004 (11)
July 2004 (1)
Failed to render control: An error occurred during a call to extension function 'createMonthUrl'. See InnerException for a complete description of the error.

Links

Tag Cloud

Ajax, Apple, DotNetNuke, Enterprise Content Management, Error Resolution, Gadgets, General, Governance, Microsoft .Net Development, Mobile, SharePoint, Sharepoint Business Forms, Sharepoint Business Intelligence, Sharepoint Collaboration, SharePoint Development, Sharepoint Enterprise Content Management, Sharepoint Enterprise Search, Sharepoint Portal, US Migration, Web 2.0, Workflow
Feb 262007

ComboBox SelectedValue()

<NoteToSelf>

 
I had some issues with SelectedValue() on a WinForms ComboBox when adding values dynamically to it and used this:

public class ComboValues
{
        private string _key;

        private string _value;

        public string Value
        {
            get { return _value; }
            set { _value = value; }
        }     

        public string Key
        {
            get { return _key; }
            set { _key = value; }
        }

        public ComboValues(string key, string value)
        {
            this._key = key;
            this._value = value;
        }
    }

 

IList<ComboValues> numbers = new List<ComboValues>();
numbers.Add(new ComboValues("", ""));
numbers.Add(new ComboValues("1", "One"));
numbers.Add(new ComboValues("2", "Two"));
numbers.Add(new ComboValues("3", "Three"));
cmbCaseType.DataSource = numbers;
cmbCaseType.DisplayMember = "Value";
cmbCaseType.ValueMember = "Key";

 

if (cboFileStatus.SelectedValue != null)
    fileStatus = ((ComboValues)(this.cboFileStatus.SelectedItem)).Key;

 

Published: 2/26/2007  12:00 AM | 0  Comments | 0  Links to this post

Feb 152007

JoinView for DataTables

We've been doing a lot of work with DataSets recently on this project and have had some issues on standards for creating new DataTables and TableAdapters. We have tried to enforce having DataTables with TableAdapters that directly reflect the base tables in a DataSet so that you can use the default Insert, Update, Delete, Select methods provided.

Complex Procedures

One problem occurs when you have specific database functions that process specific updates where you want to update a subset of data, not necessarily just from one underlying table. The first option is to select it using TableAdapters and then modifying the data in the DataTable and then calling the Update method on it.

The second option is to pass the criteria as parameters to a Stored Procedure or create a custom query method off the TableAdapter. Things start to get messy when you attach methods/procedures off of a TableAdapter that are related to the underlying Table that the DataTable represents, but is also related to other tables that may not even be in the DataSet. Mistakes start to happen where people look in different places for these methods and duplication occurs. 

Views

Another problem occurs when you want to display a view of data, up until now we have been creating new DataTables with the main query for columns being the view required. A naming standard is useful to indicate this is a view and not a underlying table and this prevents people adding methods to the DataTable that are doing inserts, deletes etc. which obviously should not be done on a view and only selects. This does lead to confusion and also duplicate DataTables for various tasks.

This problem also means that if new columns are added to this view and Inserts are attached to it the Insert methods will have more parameters and the whole solution will need modifying! 

The JoinView class allows you to take two DataTables and join them in a view in a very similar way to what you would do in a view at the SQL level. Issues occur on where these joins should be created. If they are put in the Broker level (between the client app and the data layer) it gives flexibility of what columns are needed and prevents the Data Layer becoming too complexed with all these different methods for different views required by the Client application. The Data Layer then is still just a representation of the underlying Tables in the database. It will mean that you have to call a few methods in the Data Layer to get all the tables required, but the Broker layer could keep cached versions of particular reference data tables that are frequently joined to.

Published: 2/15/2007  12:00 AM | 0  Comments | 0  Links to this post

Feb 122007

Strongly Typed datasets command timeout

I have been doing a lot of work recently with Strongly typed datasets and table adapters. We have found that the standard 40 seconds for some methods just wasn't enough...mainly due to big batch processes that call in large amounts of data in a view from various tables. I found a great article which has helped us out on this issue.

It demonstrates how extensible the standard datasets are and I'm sure there are plenty of other neat little extras that could help over time. 

Published: 2/12/2007  12:00 AM | 0  Comments | 0  Links to this post