Platform SDK: Team Productivity Update |
This section uses a sample application to demonstrate the process of adapting an application so that it can be hosted in a Team Workspace.
The document review application is used by teams of technical writers to conduct formal reviews of online documentation presented in compressed HTML (.chm) files. It is an ASP application built using a HTML user interface and a Microsoft® SQL Server™ 7.0 database. It presents users with a form in which they write comments about the HTML page they are viewing. It then writes those comments to the database using ActiveX® Data Objects (ADO), a technology included in Microsoft Data Access Components (MDAC). For this application to operate correctly, you need to have MDAC 2.0 or later installed on the server computer. BackOffice® Server 4.5 includes MDAC 2.5, so this should not present a problem.
Other .asp files allow users to retrieve comments and filter them according to several criteria listed in the user interface. In addition, the form presented to the user allows comments to be sent using e-mail to the page's author. The application achieves this functionality using Collaboration Data Objects for Windows NT® Server (CDONTS).
A server-side Component Object Model (COM) component, the Review object, encapsulates a number of functions needed to administer the application.
The following diagram depicts the documentation review application from the perspectives of the administrator and user. Administrative functions are handled by the Review object, which uses ADO to write to the database, where comments and other information, such as the e-mail names of authors and reviewers, are stored. User actions invoke ADO calls as well, but also can invoke calls to CDONTS to send e-mail comments to an author using the system's SMTP service.