Chapter 3: Folders, Fields, and Views


Overview

The first step in developing any application is planning it. Without proper planning, you might dive too quickly into development, only to realize that you need more resources than you expected or the application does not meet the requirements of your users. Planning an application begins with assessing why the application is needed ”the business purpose of the application. This step sounds obvious, but it helps you focus your development efforts and define how complex or simple the application should be.

After deciding why to build the application, you need to figure out who the users of the application will be. If the users will be technically savvy, for example, you might want to include advanced functionality. If you are developing an expense report application that everyone in an organization will use, you should keep the design of the application simple enough to accommodate users with a wide range of technical skills.

In addition to considering the technical skills of your users, you have to think about the hardware on which the application will run. If laptop users will use your application while traveling and will be disconnected from the network, you need to plan for offline support. If remote users will be the principal users of your application, you should make the application small and fast because your users will have low-bandwidth connectivity.

To develop applications, you need software building blocks. In the same way that brick, wood, and concrete are the materials that contractors need to build a house, software building blocks are the materials you need to build an application. Microsoft Outlook provides five key building blocks for developing collaborative applications: folders, fields, views, forms, and actions. This chapter will show you how to take advantage of the first three. In the next chapter, you will learn how to use forms and actions. Specifically, this chapter will cover how to do the following:

  • Create folders and set properties for a folder, including setting the permissions on a folder, setting the replication properties of a folder, and creating custom rules in a folder.

  • Create custom fields, such as combination and formula fields, which allow your application to hold custom data. You will also learn how to use these fields in setting properties for filtered replication in Outlook.

  • Create your own views by using the five default view types in Outlook, custom fields, and Microsoft Office document properties.

start sidebar
Outlook Development Tips

Here are a few tips for developing applications with Outlook. As you read through this chapter and Chapters 4 and 5, keep these issues in mind.

If possible, develop and test your application in a personal folder before deploying it in a public folder. If you have to develop your application in a public folder, restrict access. Personal folders lack some public folder functionality such as permissions and rules, so if your application requires complex permissions or rules, you might want to build your application in a public folder. To limit access to this folder while you build the application, set an option in the folder to allow access by only owners of the folder. I'll talk more about this feature later in this chapter.

Always save a backup copy of a custom form before testing it. Certain logic errors on your form can freeze Outlook and force you to kill the Outlook process. For example, a simple oversight in your VBScript code might cause an infinite loop in your application. The only way to end the loop is to kill the Outlook process. If you did not save a backup copy of the form, you will lose all the changes since the last backup.

As obvious as it sounds, you should test your application thoroughly before deploying it. Your testing should involve trying all the permissions, views, rules, forms, actions, and custom code in the application. If you deploy an application and later realize you need to make changes, make a backup copy of the original application in your personal folders, modify the application backup in your personal folders, and retest and deploy the new application. This method provides the least disruption to current users of the application.

end sidebar
 



Programming Microsoft Outlook and Microsoft Exchange 2003
Programming MicrosoftВ® OutlookВ® and Microsoft Exchange 2003, Third Edition (Pro-Developer)
ISBN: 0735614644
EAN: 2147483647
Year: 2003
Pages: 227
Authors: Thomas Rizzo

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net