Copying a view?

L

Linn Kubler

Hi,

I'm using OL 2003 with an Exchange backend. We are using public folders and
I created custom views and forms for a calendar folder. Now I'd like to
create another folder similar to this other one but I'd like to save myself
some time. I can easily use the forms I created for the original folder but
I can't seem to figure out how to import the custom views. Any suggestions?
Is this possible?

Thanks in advance,
Linn
 
S

Sue Mosher [MVP-Outlook]

File | Folder | Copy Folder Design. It doesn't copy custom field definitions, though. Do them manually.

Or just copy the entire folder.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
L

Linn Kubler

Thanks Sue,

I'm trying to correct a problem with my public folders. I tried copying the
entire folder but the problem just moved to the new folder too. If I try
simply creating a new calendar type folder, copying records seems to work
but I don't get my customized layout or the custom field definitions. It
definately looks like a problem with my custom view or form I created.

It's odd though, it was working just fine until this week Monday. The only
changes I've made were to add a new item to a drop down list on the form and
I installed a new server on the network. It's not an Exchange server
either.

Is there any way I can test the integrity of my custom fields or the view?
Wonder if something is corrupted.

Thanks,
Linn

File | Folder | Copy Folder Design. It doesn't copy custom field
definitions, though. Do them manually.

Or just copy the entire folder.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
L

Linn Kubler

Oh, another change I made recently is the one I asked about earlier this
week, changing boiler plate text on the form. They've used colors and
different sized fonts in the new boiler plate. Wonder if that could have an
effect?
Linn
 
L

Linn Kubler

Ok, I think I've isolated my problem.
Here's what I did:
1.) Created a custom form with user defined fields and created views to go
along with it.
2.) Applied these new forms and views to a subfolder of the original.
3.) Added some records based on this form to the original folder.
4.) Modified the custom form, adding a new value to a drop down list of a
custom field.
5.) Published this to both folders.
6.) Added more records to the original folder based on the updated form.

Now I find that if I want to move or copy records from the original folder
to the subfolder that only the newest records, based on the current form
design, will move or copy. If I try to copy the other records, based on the
original form design, I get an error message about the how the operation
can't be completed that the original record may have been moved or deleted.

Question is then, is this normal? Should I expect to basically orphan the
original records? Is there any kind of work around? Am I barking up the
wrong tree? Should this have been posted in a new thread?

Thanks much,
Linn

File | Folder | Copy Folder Design. It doesn't copy custom field
definitions, though. Do them manually.

Or just copy the entire folder.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

My guess is that the view either isn't correctly scoped to the folder ("on this folder, visible to everyone") or that it's been modified and what's getting copied is the user's cached copy. It's a good idea to write a little VBA macro that sets View.LockUserChanges = True.

Custom field definitions never copy. Add them manually or write code to create an item in the folder and add them to the item.

I don't know what you mean by "integrity."

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

One or the other folder probably might not have all the field definitions based on your description. Also, is it restricted to a particular form?

Be sure when you publish that you increment the version number on the (Properties) page. That makes it infinitely easier to know which version of the form is in use.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
L

Linn Kubler

I took your advice and changed the version number of the form and
re-published it. I can see that both directories are using the same form
version.

I can add records to both folders and fill in all the fields so I don't
believe there are any missing fields. Is there a better way to check this?

Yes, when I look at the properties of the folder, on the Forms tab there is
a section called: "Allow these forms in this folder." and it is set to "Only
forms listsed above."

But no change in the behavior.
Linn

One or the other folder probably might not have all the field definitions
based on your description. Also, is it restricted to a particular form?

Be sure when you publish that you increment the version number on the
(Properties) page. That makes it infinitely easier to know which version of
the form is in use.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

Your eyeballs are better than mine, since you know what fields are supposed to be there.

I bet the problem items in the other folder are using a different form. Add the Message Class property to the view to confirm that.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
L

Linn Kubler

Not sure where I look for the scoping that you reference. When I go into
the custom view organizer it shows all my views as "Can Be Used On: This
Folder" and "View Type: Table". Is that what you mean?

I was thinking about possible data corruption when I made the comment about
"integrity".

I'm trying to write the macro that you suggest but I'm having trouble
figuring out how to reference a subfolder. Here is how I reference the
parent folder:
objName.GetDefaultFolder(olPublicFoldersAllPublicFolders).Folders("Deliveries")

The subfolder is called "Pickups" but the sytax just isn't coming to me.

Thanks,
Linn

My guess is that the view either isn't correctly scoped to the folder ("on
this folder, visible to everyone") or that it's been modified and what's
getting copied is the user's cached copy. It's a good idea to write a little
VBA macro that sets View.LockUserChanges = True.

Custom field definitions never copy. Add them manually or write code to
create an item in the folder and add them to the item.

I don't know what you mean by "integrity."

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
L

Linn Kubler

Sue,

I'm not familiar with the adding the Message Class property to a view and I
can't seem to find anything in the online help. Can you give me a push in
the right direction?

Thanks,
Linn

Your eyeballs are better than mine, since you know what fields are supposed
to be there.

I bet the problem items in the other folder are using a different form. Add
the Message Class property to the view to confirm that.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

To add any field to a table view, right-click the column headings at the top, choose Field Chooser. Use the All * Fields list for that type of folder. Drag the Message Class field to the column headings.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

Pickups is a subfolder of Deliveries? Use the Folders collection again:

Set pickupFolder = objName.GetDefaultFolder(olPublicFoldersAllPublicFolders).Folders("Deliveries").Folders("Pickups")

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
L

Linn Kubler

Sue,

Great tip, I added the Message Class field and that showed which form
version was used to add each record. Then it occured to me that I just
needed to re-associate the older form with the folders and now we can move
or copy records at will.

Thanks much,
Linn

To add any field to a table view, right-click the column headings at the
top, choose Field Chooser. Use the All * Fields list for that type of
folder. Drag the Message Class field to the column headings.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top