How to Add a Date Filter to a BDC

for Tammie, apologies for the late reply. i hope you will still find this useful.

I’ve worked with BDCs quite a bit, especially when MOSS was still very new (B2, B2TR, Gold Code, and RC). This is the only way I’ve gotten Date Filters to work in BDCs.

1. In the <FilterDescriptors> section, add your date filter descriptor.

<FilterDescriptor Type="Comparison" Name="Date Entered">
    <Property Name="Comparator" Type="System.String">Equals</Property>

2. In the <Parameters> section, add 2 parameters: a low date boundary, and a high date boundary

<Parameter Direction="In" Name="@min_date_entered">
  <TypeDescriptor TypeName="System.DateTime" AssociatedFilter="Date Entered" Name="min_date_entered">
      <DefaultValue MethodInstanceName="MyListFinder" Type="System.DateTime">2000-01-01 01:01:01Z</DefaultValue>
      <DefaultValue MethodInstanceName="MyListSpecificFinder" Type="System.DateTime">2000-01-01 01:01:01Z</DefaultValue>
<Parameter Direction="In" Name="@max_date_entered">
  <TypeDescriptor TypeName="System.DateTime" AssociatedFilter="Date Entered" Name="max_date_entered">
      <DefaultValue MethodInstanceName="MyListFinder" Type="System.DateTime">3000-01-01 01:01:01Z</DefaultValue>
      <DefaultValue MethodInstanceName="MyListSpecificFinder" Type="System.DateTime">3000-01-01 01:01:01Z</DefaultValue>

3. For the list of return values, add your datetime column

<Parameter Direction="Return" Name="MyList">
  <TypeDescriptor TypeName="System.Data.IDataReader, System.Data, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" IsCollection="true" Name="MyListDataReader">
      <TypeDescriptor TypeName="System.Data.IDataRecord, System.Data, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Name="MyListDataRecord">

<TypeDescriptor TypeName=“System.String” IdentifierName=“my_id” Name=“my_id”>
<LocalizedDisplayName LCID=“1033”>CA ID</LocalizedDisplayName>

<TypeDescriptor TypeName=“System.DateTime” Name=“date_entered”>
<LocalizedDisplayName LCID=“1033”>Date Entered</LocalizedDisplayName>
<Property Name=“DisplayByDefault” Type=“System.Boolean”>true</Property>


DEVTEACH/VANTUG 2007 – Sharepoint Integration Presentation Materials

Yaroslav and I did a presentation at VANTUG on November 22, 2007 (Thanks to Graham Jones, President of VANTUG, for inviting us to speak!). As promised, here are the presentation materials. These are the same materials we are going to use for DEVTEACH on November 28, 2007.

As we mentioned in the presentation, we used a real business case as a basis for the demo. The solution in our project involved:
– Sharepoint as portal/framework (specifically MOSS)
– WCF for communication between Sharepoint and backend databases
– Custom Web Part for entry forms and client-side validation
– BDC for search and data display
– SSNS for notification and audit trails

Continue reading

DevTeach/VANTUG Presentation: Resources

List of useful resources. Most of these I’ve used or read at some point, and revisited in preparation for the VANTUG/DevTeach demo. I hope this becomes useful to someone.

Building Your Dev Environment
Tony Zink. Creating a MOSS VPC Image: The whole 9 yards
Bill English. Installing a New Microsoft Office SharePoint Server 2007 Portal: Step-by-Step Instructions
Sahil Malik. A Single Developer’s SharePoint 2007 Development Environment

Custom Web Parts
Developer Introduction to Workflows for Windows SharePoint Services 3.0 and SharePoint Server 2007
Sharepoint Web Parts Overview
Windows SharePoint Services Web Part Infrastructure
Walkthrough: Creating a Basic SharePoint Web Part
Walkthrough: Creating Connectable SharePoint Web Parts
Creating Web Parts in Windows SharePoint Services
Working with the Windows SharePoint Services WebPart Class
Channel 9 Video: Building ASP.NET Web Parts for Windows SharePoint Services 3.0
15 Seconds: Building Web Parts for Windows SharePoint Services 3.0
15 Seconds: Building an ASP.NET 2.0 Web Part for Deployment to WSS V3.0 and MOSS 2007
Walkthrough: Creating an ASP.NET Web Part for the AdventureWorks Business Data Application Sample
SharePoint Products and Technologies: Creating Custom Web Part Page Templates Sample
Sahil Malik. Writing Custom Webparts for Sharepoint 2007

CLR Integration in SQL Server 2005
Building my First SQL Server 2005 CLR
Using Signed Assemblies for SQLCLR: Doing the Safety Dance

MSDN: Business Data Catalog
Business Data Catalog Samples
Sahil Malik. SharePoint 2007: BDC – The Business Data Catalog
TechNet Virtual Lab: Getting Started with the Business Data Catalog in Microsoft Office SharePoint Server 2007
OS303 – SharePoint Server 2007 Business Data Catalog: Integrating Line of Business Data and Applications into Enterprise Portals (OS303_Burke.wmv)
Microsoft SharePoint Products and Technologies Team Blog: Business Data Catalog
AdventureWorks SQL Server 2005 BDC Sample
Troubleshooting Business Data Clients and Metadata
Walkthrough: Using the Business Data Catalog Security Trimmer to Trim Search Results

Notification Services
Building Effective SQL Server Notification Applications
SQL Server 2005 Notification Services Tutorial.
MSDN Webcast: Introducing Notification Services in SQL Server 2005—Level 200

Reporting Services
Raju Sakthivel. Microsoft SQL Server Reporting Services – Installation and Configuration Guide for SharePoint Integration Mode (very good resource)
Microsoft SharePoint Products and Technologies Team Blog. Microsoft SQL Server 2005 SP2 Reporting Services integration with WSS 3.0 and MOSS 2007.
How to: Configure SharePoint Integration on Multiple Servers
How to: Configure SharePoint Integration on a Standalone Server
Reporting Services Configuration How-to Topics
Report Server How-to Topics (SharePoint Integrated Mode)
SQL Server 2005 Reporting Services Tutorials.
William Li. Service Account Configuration for Reporting Service

Tools and Utilities
Windows SharePoint Services 3.0 Tools: Visual Studio 2005 Extensions
.NET Reflector
SQL Server 2005 Sample Databases (including AdventureWorksLT)
SQL Server 2005 SP2
MOSS SDK – August 2007
BDC Editor (included in MOSS SDK – August 2007 Release)
BDC Metaman
Microsoft Virtual Server
Windows Powershell
SharePoint Products and Technologies: Creating Custom Web Part Page Templates Sample
Microsoft SQL Server 2005 Reporting Services Add-in for Microsoft SharePoint Technologies

Additional Resources
Application Templates for Windows SharePoint Services 3.0
WSS How To’s
MOSS How To’s
Windows Powershell Script Repository

How to Show Your BDC Results in XML

Lifesaver BDC XSLT! This XSL snippet of code allows you to show your BDC results in XML. This is extremely useful especially when you are trying to style your BDC results using XSLT.

This is applicable to BDCs or Data View Web Parts :
1. Edit the Page
2. Click Edit on the BDC Web Part
3. Modify Sharepoint Web Part
4. Click on XSL Source Editor

5. Type the following: