MSDN Magazine - October 2008 - (Page 54) VENDOR-SPONSORED CONTENT event of a list definition. Now each time a user tries to delete an item, the user should receive a message. The following code example shows how to override the ItemDeleting event handler. This event receiver prevents attempts to delete items—even from users who have delete permission on the list. public override void ItemDeleting(SPItemEventProperties properties) { properties.Cancel = true; properties.ErrorMessage = "Deleting is not supported in this list."; } 4. Workflows Workflows allow you to streamline individual tasks and coordinate business processes. Using ASP.NET, you can build a set of Web forms to submit data and initiate workflows using Windows Workflow Foundation. However, you have to write a lot of business logic code to automate a workflow. This is where you benefit from using SharePoint Products and Technologies: You can use its built-in support for workflow customizations. Windows SharePoint Services 3.0 provides support to create document-oriented workflow solutions and associate workflows to lists, document libraries, or content types. Because Windows SharePoint Services 3.0 workflows are associated to the data that humans manage, it allows you to integrate a human dimension to your workflow solutions. You can define a set of approvers and users who perform the tasks on a workflow instance. Whether your workflow solutions include input forms that allow end users to interact with them is up to you. You can use ASP.NET Web forms to define any of the following workflow forms: • Association forms. Use to define the name of and data associated with the workflow when connecting it to a document library, list or content type. • Initiation form. Use to specify information about the specific workflow instance for an item when a workflow instance starts. This form is presented to end-users only when a workflow is started manually. • Task forms. Use to control the display of tasks associated with a workflow and define special processing when editing a task. This set of forms is implemented with the content type functionality that allows you to display, edit and customize new forms for any content type. • Modification form. Use to control the state and flow of a workflow by using custom pages, which can manipulate the data that the workflow is using. • Status form. Use to define a custom status page to display to the user when the user checks the status of the workflow. This page can reach into other systems to correlate the SharePoint workflow with the data from those systems. Office SharePoint Server 2007 provides additional enhancements for document-oriented workflows. These capabilities include: • Support for using InfoPath forms through InfoPath Forms Services for any association, initiation, task, modification or status form. • Customizable built-in workflows for approval and review. To create workflow solutions, you can use Visual Studio 2005,Visual Studio 2008, or Office SharePoint Designer 2007. SharePoint Designer 2007 provides support for simple rules-based workflows. It lets you define workflows without writing custom code and simplifies the deployment process by automatically storing workflow markup, rules and supported files in a specific document library. You can associate SharePoint Designer 2007 workflows with multiple document libraries or lists. However, for greater customization, you can use the Visual Studio 2005 or Visual Studio 2008 custom workflow templates. Both development environments provide a basic activity library that contains a set of predefined activities you can use to define workflows. Using Visual Studio, you can also create custom activities that you can reuse in different workflow solutions. For example, you can create a custom activity to add workflow steps as tasks in Office Outlook 2007. 5. Silverlight in Web Parts Microsoft Silverlight is a cross-browser, cross-platform, and cross-device plug-in for delivering the next generation of .NET Framework–based media experiences and Rich Internet Applications for the Web. Silverlight offers improved interactive experiences for Web-based applications. For that reason, .NET-technology developers are interested in providing Silverlight features and components for new Web-based solutions. SharePoint developers can also take advantage of Silverlight in their SharePoint-based solutions. Silverlight UI elements can help you integrate rich interactive functionality in SharePoint sites. You can create Web Parts, document libraries, picture libraries, navigation, and custom field types that provide Silverlight support on SharePoint sites. 6. Page Branding Windows SharePoint Services 3.0 and Office SharePoint Server 2007 include built-in templates, master pages, and CSSs that allow you to customize the appearance (look and feel) of SharePoint sites.
For optimal viewing of this digital publication, please enable JavaScript and then refresh the page. If you would like to try to load the digital publication without using Flash Player detection, please click here.