15 September 2009

BDC Application Definition Designer ShowInPicker Quirks

Today I was doing some work using the BDC Application Definition Designer for SharePoint 2007 and discovered some very odd behavior. My current project has me defining a business data catalog that points to our help desk work order system to gather categories for a list of knowledge base articles. I completed the design of my BDC application and deployed it into SharePoint, created a new column in my document library to pick the desired entity only to get the message "There are no Business Data Types loaded in the Catalog". Oddly, the data type was there prior to changing a single property on one of my type descriptors: ShowInPicker.

I had set this value on the name of the category since the default item displayed in the picker is the identifier of the entity. It is very difficult for users to pick a category when all that is displayed is a series of numbers, thus driving me to set the value of ShowInPicker to true for my category name field. So, I examined the XML created and discovered:

<TypeDescriptor TypeName="System.String" Name="CategoryName" DefaultDisplayName="Category Name">

<LocalizedDisplayNames>

<LocalizedDisplayName LCID="1033">Category Name</LocalizedDisplayName>

</LocalizedDisplayNames>

<Properties>

<Property Name="ShowInPicker" Type="System.Boolean">true</Property>

</Properties>

</TypeDescriptor>

I remove the line and imported the definition once more. Now my business data type showed up again. After searching, I discovered an article by Paul Galvin describing how to set the ShowInPicker value. In his article, I discovered another property that I wasn't including in my definition: DisplayByDefault.

I went back to the Application Definition Designer and added this under the properties node for my category name and exported the LOB definition. Again, I imported this into SharePoint and received the same error message - "There are no Business Data Types loaded in the Catalog". Upon exploration of the XML, I discovered the following:

<TypeDescriptor TypeName="System.String" Name="CategoryName" DefaultDisplayName="Category Name">

<LocalizedDisplayNames>

<LocalizedDisplayName LCID="1033">Category Name</LocalizedDisplayName>

</LocalizedDisplayNames>

<Properties>

<Property Name="ShowInPicker" Type="System.Boolean">true</Property>

<Property Name="DisplayByDefault" Type="System.Boolean">true</Property>

</Properties>

</TypeDescriptor>

The new property had been added, but the order was different from Paul's, so I changed the order and imported the definition again. This time, everything worked as properly and I could view the category name in the picker.

Moral of the story: Use the Application Definition Designer to get you started in defining your BDC application definition and then go back to make tweaks like this by hand.

03 February 2009

Online Study Group for Seamless Teamwork

Only 2 Days to Go Until the Seamless Teamwork Online Study Group. From the shores of Sydney Australia (well, the City actually, not the beach!), I’m already thinking ahead a couple of days for when the Online Study Group for Seamless Teamwork will kick off. It is appropriate that I think this way, because I’m in Sydney today (and was in Melbourne Australia yesterday) to deliver 4 face-to-face editions of the Seamless Teamwork seminar for corporates. Read More on EndUserSharePoint.com.

15 September 2008

Free Online Seminar on SharePoint Dashboards

Mark Miller at EndUserSharePoint.com is hosting a free 1 hour presentation on SharePoint dashboards. This presentation is targeted towards end users, but I would recommend that developers take some time to check it out. It is simply amazing what the end-user is empowered to do in SharePoint, and it may help you with ideas for your projects. The presentation is scheduled for 1pm EST, Tuesday (that's tomorrow). I recently attended one of Mark's presentations, and you will not be disappointed. He is an excellent communicator and does a great job of educating you in SharePoint. Visit http://www.endusersharepoint.com/?p=785 for more details.

18 June 2008

Guest Posts on EndUserSharePoint.com

I have teamed up with a great group of guest bloggers on Mark Miller's site, EndUserSharePoint.com. The site is dedicated to assisting end users with the every-day use of SharePoint. I am writing a series on how to create a team site search center. Here are links to my two articles already posted on the site: