MS Office Forum / Outlook / Programming Forms / January 2007
Copying a view?
|
|
Thread rating:  |
Linn Kubler - 25 Jan 2007 15:23 GMT 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
Sue Mosher [MVP-Outlook] - 25 Jan 2007 15:48 GMT File | Folder | Copy Folder Design. It doesn't copy custom field definitions, though. Do them manually.
Or just copy the entire folder.
 Signature Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx
> Hi, > [quoted text clipped - 7 lines] > Thanks in advance, > Linn Linn Kubler - 25 Jan 2007 16:54 GMT 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.
 Signature Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx
> Hi, > [quoted text clipped - 11 lines] > Thanks in advance, > Linn Linn Kubler - 25 Jan 2007 17:02 GMT 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
> Thanks Sue, > [quoted text clipped - 35 lines] >> Thanks in advance, >> Linn Sue Mosher [MVP-Outlook] - 25 Jan 2007 19:31 GMT 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."
 Signature Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx
> Thanks Sue, > [quoted text clipped - 11 lines] > Is there any way I can test the integrity of my custom fields or the view? > Wonder if something is corrupted. Linn Kubler - 25 Jan 2007 21:41 GMT 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."
 Signature Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx
> Thanks Sue, > [quoted text clipped - 14 lines] > Is there any way I can test the integrity of my custom fields or the view? > Wonder if something is corrupted. Sue Mosher [MVP-Outlook] - 25 Jan 2007 23:43 GMT Pickups is a subfolder of Deliveries? Use the Folders collection again:
Set pickupFolder = objName.GetDefaultFolder(olPublicFoldersAllPublicFolders).Folders("Deliveries").Folders("Pickups")
 Signature Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx
> 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 [quoted text clipped - 41 lines] >> Is there any way I can test the integrity of my custom fields or the view? >> Wonder if something is corrupted. Linn Kubler - 25 Jan 2007 18:10 GMT 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.
 Signature Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx
> Hi, > [quoted text clipped - 11 lines] > Thanks in advance, > Linn Sue Mosher [MVP-Outlook] - 25 Jan 2007 19:33 GMT 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.
 Signature Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx
> Ok, I think I've isolated my problem. > Here's what I did: [quoted text clipped - 40 lines] >> Thanks in advance, >> Linn Linn Kubler - 25 Jan 2007 20:57 GMT 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.
 Signature Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx
> Ok, I think I've isolated my problem. > Here's what I did: [quoted text clipped - 42 lines] >> Thanks in advance, >> Linn Sue Mosher [MVP-Outlook] - 25 Jan 2007 21:04 GMT 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.
 Signature Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx
>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 [quoted text clipped - 63 lines] >>> Thanks in advance, >>> Linn Linn Kubler - 25 Jan 2007 22:41 GMT 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.
 Signature Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx
>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 [quoted text clipped - 74 lines] >>> Thanks in advance, >>> Linn Sue Mosher [MVP-Outlook] - 25 Jan 2007 23:42 GMT 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.
 Signature Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx
> Sue, > [quoted text clipped - 10 lines] > 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.
>>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 [quoted text clipped - 74 lines] >>>> Thanks in advance, >>>> Linn Linn Kubler - 29 Jan 2007 15:34 GMT 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.
 Signature Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx
> Sue, > [quoted text clipped - 13 lines] > Add > the Message Class property to the view to confirm that.
> "Linn Kubler" <lkubler@chartwellwisc2.com> wrote in message > news:eMcS1NMQHHA.3316@TK2MSFTNGP05.phx.gbl... [quoted text clipped - 79 lines] >>>> Thanks in advance, >>>> Linn
|
|
|