Tài liệu Module 3: Creating a Custom Team Folder Template doc - Pdf 85

Contents
Overview 1
Introduction to Creating a Custom
Template 2
Creating a Personal Folders File 4
Creating a Folder Home Page 10
Creating an Administration Folder
Home Page 22
Creating a Template Initialization File 27
Registering a Custom Template 34
Adding a New Folder to a Custom
Template 37
Lab A: Creating a Custom Team Folder
Template 43
Review 50

Module 3: Creating a
Custom Team Folder
Template Information in this document is subject to change without notice. The names of companies,
products, people, characters, and/or data mentioned herein are fictitious and are in no way intended
to represent any real individual, company, product, or event, unless otherwise noted. Complying
with all applicable copyright laws is the responsibility of the user. No part of this document may
be reproduced or transmitted in any form or by any means, electronic or mechanical, for any
purpose, without the express written permission of Microsoft Corporation. If, however, your only
means of access is electronic, permission to print one copy is hereby granted.

Production Support: Ed Casper (S&T Consulting)
Manufacturing Manager: Rick Terek (S&T OnSite)
Manufacturing Support: Laura King (S&T OnSite)
Lead Product Manager, Development Services: Bo Galford
Lead Product Manager: Janet Wilson
Group Product Manager: Robert Stewart

Module 3: Creating a Custom Team Folder Template iii Instructor Notes: Creating a Custom Team Folder
Template
This module provides students with the ability to create custom Team Folder
Templates, associate views with those templates, create an Administration
folder, and register custom templates.
At the end of this module, students will be able to:

Describe the method for creating a custom Team Folder Template.

Create a personal folders file to use with your custom templates.

Create a folder home page that reconfigures itself depending on its pattern
of use and includes the Microsoft
®
Outlook
®
view control.

Create an administration folder home page for managing team folders that
includes the Outlook permissions control.

45 Minutes
iv Module 3: Creating a Custom Team Folder Template Module Strategy
Use the following strategy to present this module:

Introduction to Creating a Custom Template
Describe the minimum requirements to create a custom template (Outlook
personal folders file, folder home page, template initialization (.ini) file).
Explain reasons for adding an administration folder. Discuss where the
components of the template are stored. Explain that samples files are stored
by default in the C:\Tfkit directory.

Creating a Personal Folders File
Explain that a team folder application is fundamentally a public folder with
an associated folder home page, and that the contents of the public folder
are distributed to users of the Team Folders Wizard in the form of an
Outlook personal folders file (.pst). List the steps required to create a .pst
file and subfolders.

Creating a Folder Home Page
Discuss the purpose of a folder home page. Explain that a folder home page
includes links to other folders. Briefly discuss the Outlook Application
object. Explain that the Outlook view control enables an Outlook 2000
folder home page to control folder views; to display Outlook 2000 folder
contents; and to create, open, print, and delete folder contents. Explain that
because of security restrictions, the Outlook view control is recommended
only for use on Web pages displayed by Outlook 2000 as folder home
pages.

Explain the steps needed to add a new folder: create a subfolder in the
template personal folders (.pst) file, create a View tab container in the home
page, add View tabs to the new container, create a folder navigation button
in the home page, and add the folder name and related entries to the
template initialization (.ini) file.


Module 3: Creating a Custom Team Folder Template 1 Overview

Introduction to Creating a Custom Template

Creating a Personal Folders File

Creating a Folder Home Page

Creating an Administration Folder Home Page

Creating a Template Initialization File

Registering a Custom Template

Adding a New Folder to a Custom TemplateAt the end of this module, you will be able to:

Describe how to create a custom Team Folder Template.

templates.
2 Module 3: Creating a Custom Team Folder Template Introduction to Creating a Custom Template
Team Leader’s Computer
Team Leader’s Computer
Template
initialization file
Template
initialization file
.doc
.doc
.ini
Outlook personal
folders file
Outlook personal
folders file
Folder home page
Folder home page
Custom Team Folder Template
Minimum Requirements
Custom Team Folder Template
Minimum Requirements
Team Folder Application
Team Folder Application
wizard
Team Folders Wizard
Team Folders Wizard



The Team Folders Wizard requires every template to have an
administration folder, even if it is not used to maintain the team folder
application.

Slide Objective
To show how a network
administrator creates files
for a custom Team Folder
Template file.
Lead-in
Administrators can deploy
custom Team Folder
Templates to team leaders
who use the Team Folders
Wizard.
Important
Module 3: Creating a Custom Team Folder Template 3 Location of Template Components
When installed, the template components (.pst and .ini) are stored in a file-
system folder. Web pages and supporting files, such as all .htm files, style
sheets, and files containing Web graphics, are not stored in a file-system folder.
Instead, you must store these Web pages and supporting files in the WebView
subfolder.
Registering a Custom Template
After installing the template on the user’s computer, you must register the
template so the Team Folders Wizard can use it to create a team folder. You can
install and register your template by using the Windows

are distributed to application users (team leaders) as a personal folders (.pst)
file.
A three-step process is used to create a personal folders (.pst) file for
distribution:
1. Create a personal folders (.pst) file for use in a Team Folder Template.
2. Create a team folder root.
3. Add subfolders to the team folder root.

After introducing personal folders (.pst) files, the following topics describe
these three steps in detail.
Slide Objective
To outline this topic.
Lead-in
You use a three-step
process to create a .pst file
to use with the Team
Folders Wizard.
Module 3: Creating a Custom Team Folder Template 5 Using a Personal Folders File
Custom Team Folder Templates - Microsoft Outlook
Custom Team Folder Templates - Microsoft Outlook
File Edit View Favorites Tools Actions Help
Start Micros,,, default… untitle… Graphi… Explori… Cust… 11:13 AM
New Send/Receive
Custom Team Folder Templates
Custom Team Folder Templates
Folder List
Custom Team Folder Templates

The public folder contents are distributed to Team Folders Wizard users (team
leaders) as an Outlook 2000 personal folders (.pst) file.

You need to send the Team Folders Wizard user (team leaders) a pre-
defined directory structure, and administration items. A .pst file is a set of
folders and sub-folders.

Team Folders Wizard users need certain administration items that are
hidden in the .pst file. These hidden items include the form definitions and
the welcome message.

Slide Objective
To show a common folder
hierarchy created by a .pst
file.
Lead-in
Public folder contents are
distributed to team leaders
as an Outlook 2000
personal folders (.pst) file.
6 Module 3: Creating a Custom Team Folder Template Creating a .pst File to Use in a Team Folder Template
Create Microsoft Personal Folders
F
ile: C:\TF Templates\Template.pst
N
ame: Custom Team Folder Templates
OK Cancel H

To create a .pst file to use in a Team Folder Template:
1. In Outlook 2000, on the File menu, point to New, and then click Personal
Folders File (.pst).
2. In the Create Personal Folders dialog box, in the Save in list, click the
folder that you want to store the file.
3. In the File name box, type a name for the file, and then click Create.
4. In Create Microsoft Personal Folders dialog box, in the Name box, type
the folder name as you want it to be displayed in the Outlook Folder List.
5. Select any other options you want, and then click OK.

Slide Objective
To show the Create
Microsoft Personal
Folders dialog box, and to
show the procedure used to
create a .pst file.
Lead-in
You can create a .pst file
quickly and easily in
Outlook 2000.
Module 3: Creating a Custom Team Folder Template 7 Creating a Team Folder Root
Create New Folder
N
ame:
External Contacts Templates
OK Cancel
F

3. In the Create New Folder dialog box, in the Name box, enter a name for
the root folder, and then click OK.

Slide Objective
To show the Create New
Folder dialog box with a
new .pst file selected, and to
show the procedure used to
create a team folder root.
Lead-in
From within Outlook 2000,
you can easily create a
subfolder that serves as the
root folder of a team folder
application.
8 Module 3: Creating a Custom Team Folder Template Adding Subfolders to the Team Folder Root
Create New Folder
N
ame:
Administration
OK Cancel
F
older contains:
Mail Items
S
elect where to place the folder:
Custom Team Folder Templates

folder to contain (for example, Contact items or Task items).
5. In the Select where to place the folder list, click the location for the folder.

Creating an Administration Folder Home Page
In addition to creating subfolders to hold the application data, you must also
create an administration folder that contains mail items. The Team Folders
Wizard requires that you create an administration folder, even if you do not
plan to use this folder in your application.
If you do not create an administration folder, the Team Folders Wizard
generates an error stating that it cannot verify that the team folder was copied
correctly. In addition, the run-time message of Team Folders Web views will
generate a script error if the administration folder is missing. However, the
folders are copied correctly to the selected destination.

For more information about creating an Administration folder home
page, see “Creating an Administration Folder Home Page” in module 3 of
course 2018A, Creating and Customizing Team Folders.

Slide Objective
To show the Create New
Folder dialog box, and to
show the procedure for
adding subfolders to the
team folder root.
Lead-in
In Outlook 2000, you can
easily create additional
subfolders to use in a team
folder application.
Note

Using the Outlook View Control

Adding an Outlook View Control to a Web Page

Using Outlook View Control Methods

Using Outlook View Control PropertiesTeam folder applications use folder home pages to provide rich functionality
and a Web-like interface. The following topics introduce folder home pages,
describe how to add hyperlinks and script to these Web pages, and provide you
with the ability to incorporate the Outlook view control within a folder home
page.
Slide Objective
To outline this topic.
Lead-in
Web pages implemented as
folder home pages provide
the functionality and user
interface (UI) for team folder
applications.
Module 3: Creating a Custom Team Folder Template 11 Introduction to Using Folder Home Pages
Team Project - Microsoft Outlook
Team Project - Microsoft Outlook
File Edit View Favorites Tools Actions Help
Done

controls that access Outlook data.
Determining Folder Home Page Complexity Level
A Web page used as a team folder home page can be as simple or complex as
needed. For example, Team Folder Templates provide a single home page that
is associated with every subfolder within the team folder application. This
single home page associates with every subfolder in the application by
reconfiguring itself each time the user views a different subfolder. Using a
single home page is more efficient than navigating from subfolder to subfolder
and displaying separate home pages for each subfolder. Although a single home
page improves application performance, it also greatly increases the complexity
of the Hypertext Markup Language (HTML) code underlying the home page.
Managing the Process of Customizing a Folder Home
Page
A more common and perhaps easier-to-manage approach for creating or
customizing a folder home page is typified by the sample template found in the
Sample folder of the Team Folders Kit installation folder (default directory
C:\Tfkit). This sample template establishes a separate, customized folder home
page for each application subfolder. This sample template approach decreases
application performance because a new home page must load each time the user
views a different subfolder. However, because home pages can be built with
simpler HTML code, home pages are easier to design and maintain.
Slide Objective
To show a custom team
folder home page that
provides a front page for a
team folder application.
Lead-in
You can create a new folder
home page or you can
customize a sample folder


When displaying a folder home page, Outlook 2000 acts as a Web browser. If a
user moves to another Web page (including external Web sites, if the user is
connected to the Internet), that Web page is displayed within Outlook 2000. A
home page can also include hyperlinks to any folder within the Outlook 2000
environment, including a user’s own default mailbox folders. If the linked
folder has a different home page, Outlook 2000 displays that particular home
page; otherwise, Outlook 2000 displays the folder by using that folder’s default
view.
Linking to Outlook 2000 Folders
The folder home page can contain links to Outlook 2000 folders with Outlook
uniform resource locators (URLs). Outlook URLs use the following syntax:
outlook://folderpath
The following example shows a link to a public folder named Applications:
<a href="outlook://Public%20Folders/All%20Public%20Folders/Applications">
Applications</a>

Linking to Default Mailbox Folders
A team leader can create links from a folder home page to a user’s default
mailbox folders by referring to the folders by name. The following example
opens a user’s default Calendar:
<a href="outlook:calendar">Your Calendar</a>

Slide Objective
To show that you can insert
a link to internal and
external Web pages in the
links section of a team
folder.
Lead-in

Send new message
to team
DNS2018A “Customizing Team Folder Templates” is a 1-Day instructor
lead class.
DNS2018A will be orderable 4/1/00Because folder home pages are displayed within the Outlook 2000 application
window, script and ActiveX components built into the page can use the Outlook
object model to retrieve Outlook 2000 data and to automate Outlook 2000
itself. For example, you could use script on the folder home page to retrieve
information about a contact, or to hide the Outlook Folder List.
Retrieving a Reference to the Outlook Application Object
To retrieve a reference to the Outlook Application object, script on the page
uses the External property of the Window object, as shown in this example:
set objHost = Window.External
set objApp = objHost.OutlookApplication

Accessing the Outlook Object Model
After the script has retrieved a reference to the Outlook Application object, you
have full access to the Outlook object model, including Outlook explorers,
folders, and items.

For information about the Outlook object model, see Microsoft Outlook
Visual Basic Reference Help (Vbaoutl9.chm). To view this file, open the
Microsoft Visual Basic
®
Editor in Outlook and click Help.

Slide Objective

Visual Basic for Applications forms

Using More Than One Outlook View Control

For example, you can show a side-by-side view of two
calendars, or a contacts list and all tasks associated with
the currently selected contact.The Outlook view control is an ActiveX control that governs the functionality
of Outlook 2000 views. The Outlook view control can display Table,
Day/Week/Month, Card, and Timeline views.

Because the Outlook view control is an Outlook 2000 add-in,
Outlook 2000 must be installed on the computer on which you want the
Outlook view control to run.
Although the Outlook view control is not included with Outlook 2000, it is
available for download from the Microsoft Web site at Uses for the Outlook View Control
Because it is an ActiveX control, you can use the Outlook view control in Team
Folder Template home pages and other Web applications, as well as Microsoft
Visual Basic forms and Microsoft Visual Basic for Applications forms. You can
programmatically change the properties of the Outlook view control, which
enables you to mimic Outlook 2000 functionality within your team folder
applications.
Using More Than One Outlook View Control
You can place more than one control on a single folder home page in your
application. For example, you can show a side-by-side view of two calendars,

Team Folder Home Page
Team Folder Home Page
Unread Summary
Top News
http://London/DNS201
Send new message
to team
DNS2018A “Customizing Team Folder Templates” is a 1-Day instructor
lead class.
DNS2018A will be orderable 4/1/00
Additional Information
Subject Received
Outlook Permissions Control Fri 11/5/99 2:07 PM
Outlook View Control Fri 11/5/99 2:07 PM
Running Outlook TF Wizard Fri 11/5/99 2:07 PMTo add an Outlook view control to a Web page, embed the <OBJECT> tag in
the page. In the <OBJECT> tag, specify an ID parameter, which you can later
specify in your application. After the Outlook view control has been embedded
in the HTML page, it will work without any additional code.
Considering an Outlook View Control Example
The following example shows the HTML tag that implements the Outlook view
control in a Web page:
<object ID="oViewControl" WIDTH="504" HEIGHT="240"
CLASSID="clsid:0006F063-0000-0000-C000-000000000046" >
<param NAME ="View" Value="My Custom View">
<param NAME ="Folder" value="\\Public Folders\All Public
Folders\My Public Folder">
<param NAME ="Namespace" value="MAPI">

by other users.

Restriction. Set to contain “Outlook,” this parameter filter is interpreted to
view all items containing the words “Outlook” or “outlook” anywhere in the
Subject field.

DeferUpdate. Set to False, this parameter sets the Outlook view control to
reflect current property settings.

Using the Outlook View Control to Change the Folder
View
If the view control is placed on a public folder home page, the view control will
show the default view of that public folder when the folder is loaded. You can
use the Folder property of the Outlook view control to set the currently
displayed folder.
The following code example demonstrates how to display a public folder:
Ovctl1.folder = \\Public Folders\All Public
Folders\Corporate\DemoFolder

You can also display the default folders of the active mailbox. To display the
default folders of the active mailbox, set the Folder property to either
Calendar, Contacts, Drafts, Deleted Items, Inbox, Journal, Notes, Outbox,
Sent Items, or Tasks.
Module 3: Creating a Custom Team Folder Template 17 Using Outlook View Control Methods

FlagItem


FlagItem Method
The FlagItem method displays the dialog box that flags an Outlook 2000 item
with a reminder. (For example, an appointment item can be flagged with a
reminder so the user is notified before the appointment begins.) This reminder
does not function unless the user has selected a valid item in the Outlook view
control, such as an Outlook 2000 Post item.
Categories Method
The Categories method displays the dialog box that enables users to select item
categories (for example, Business, Competition, and Favorites). This is the
same dialog box that appears when you click the Categories button in an
Outlook 2000 form.
CustomizeView Method
The CustomizeView method displays the dialog box that lets users select the
following views: fields, sort order, filters, automatic formatting, and grouping.
This is the same dialog box that appears when you click the Customize
Current View command.
Slide Objective
To list some of the methods
of the Outlook view control.
Lead-in
The Outlook view control
exposes a number of
properties and methods that
you can use in your script
code.
Note
18 Module 3: Creating a Custom Team Folder Template ShowFields Method

Object Browser. (To display the Visual Basic Editor from within Outlook 2000,
on the Tools menu, point to Macro, and then click Visual Basic Editor.)

The following are some of the important properties of the Outlook view control.
Restriction Property
The Restriction property enables you to filter the display items in your view.
This property accepts the same string format as the Restrict method on the
Items collection. For example, if you want to restrict the view so that only
Outlook 2000 Task items appear, pass the following string to the Restriction
property:
[Message Class] = "IPM.Task"

Passing Restrictions As Parameters
You can also pass the restriction as a parameter by using the following syntax
when creating an Outlook view control:
<param NAME=Restriction VALUE="[Message Class] = 'IPM.Task'">

The Restriction property enables you to place two Outlook view controls on a
single page. One Outlook view control shows a restricted set of items based on
items users select in the other Outlook view control.
Slide Objective
To list some of the Outlook
view control properties.
Lead-in
The Outlook view control
exposes a number of
properties that you can use
in your script code.
Note


Nhờ tải bản gốc

Tài liệu, ebook tham khảo khác

Music ♫

Copyright: Tài liệu đại học © DMCA.com Protection Status