Solved

Changing Message Class

Posted on 1999-01-23
10
256 Views
Last Modified: 2008-03-03
I have Outlook 98 Corporate Version. I created a custom outlook form. I change the fields bound to the text boxes with vbscript to keep an inventory for each individual contact. If I add anything in my inventory fields and save it, the message class CHANGES to from IPM.Contact.Customers to IPM.Contact, however the form visually or when I open up the contact that has the message class IPM.Contact, it still shows up with the The Customers form I created. I really could care less that it does this, however, If I want to alter anything in my form and publish it all the ones that are IPM.Contact don't get updated. Please Help.

By The Way I already have tried using the Office 97 Message Class Changer, and the one made for outlook to manually change the message class, and they delete any fields not bound to the form, so I need a solution other then using one of these manual methods.
0
Comment
Question by:icenet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
10 Comments
 
LVL 1

Author Comment

by:icenet
ID: 1622707
Edited text of question
0
 
LVL 1

Author Comment

by:icenet
ID: 1622708
Edited text of question
0
 
LVL 1

Author Comment

by:icenet
ID: 1622709
Adjusted points to 200
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:icenet
ID: 1622710
Adjusted points to 205
0
 
LVL 2

Expert Comment

by:Bodya
ID: 1622711
I tried to emulate the problem you have run in. I made my own form (derived from contact) with several new fields, published it in Personal Forms library and then create a contact with it. I saved it and open it again. And the Message Class of this form was the one of just created form, i.e. IPM.Contact.MyContact. When I changed its design and saved in the Personal Forms library again, the changes appear in the Contact I have created with this form.
Then I found that if I publish the form in Contacts folder I really encounter the same problem that you have.

So I may offer you the following solution:
Publish your forms not in Contact folder, but in Personal Form library.

Good luck,
Bodya
0
 
LVL 1

Author Comment

by:icenet
ID: 1622712
I tried putting the form only in the personal forms library, like you said, and it did the same thing, as soon as I put anything in the fields that switch with vbscript it changes the Message Class to IPM.Contact instead of IPM.Contact.Customers. The other thing is that if I change the view to a phone list and add the message class as one of the fields in the current view, and then if I create a new contact it gives it the icon of a message or e-mail, which is kind of wierd. However the message class is IPM.Contact.Customers just as it should be, Then if I go back in the contact add anything to the fields that change through vbscript, save the contact and the Message class is IPM.Contact and the Icon for the contact is now the default for contacts. Please Help...

0
 
LVL 6

Expert Comment

by:reddarin
ID: 1622713
icenet,

If bodya's answer didn't work for you, reject it. Then the question will move back out into the 'waiting for answer' area and who knows who might take a whack at it?

Darin
0
 
LVL 2

Expert Comment

by:Bodya
ID: 1622714
If I undersatnd you right, you are adding new user properties not in design time, but with VBScript code?
I will work on it.

0
 
LVL 2

Accepted Solution

by:
Bodya earned 200 total points
ID: 1622715
I'm sure that the right desision is to PUBLISH (not save) you form in Personal or Public Forms Library. But what have I noticed that there are several problems.
I will describe what I've done and what I've gotten.

1. I created a Contact and swithc to a design time. On the second page I have added two new fields (MonthSalary,YearSalary) and write the following code for it (here is only a fragment):
Sub Item_CustomPropertyChange(ByVal Name)
Set MyContact = Application.ActiveInspector.CurrentItem
select case Name
case "MonthSalary":
      MyContact.UserProperties("YearSalary")=MyContact.UserProperties("MonthSalary").Value * 12
case "YearSalary":
      MyContact.UserProperties("MonthSalary")=MyContact.UserProperties("YearSalary").Value / 12
end select
End Sub
So, it works.
Also I set the icons for the form to be like a usual contact icons.
2. I published my Form in Personal Folder Library as "MyContact".
3. I saved the current Contact with the FileAs = “Test” and closed it.
4. In the Contact context menu->Properties->Forms->Manage…-> I have deleted the old MyContact form from the list of available forms. This is important to do!!! Then I copied new MyContact from Personal Forms.
5. Then I created several Contacts using MyContact form. In all those forms I modified my user fields to see if VBScript works.
6. I opened MyContact form, moved fields on the page and repeated the step 2.
7. Important! I repeated the step 4 to replace the old MyContact forms to a new one.
8. All the forms I’ve created in step 5 now have new design!!! But… the form “Test” (the very first ancestor) not! I just wonder why…

Hope this will help a little.

0
 
LVL 6

Expert Comment

by:reddarin
ID: 1622716
I reckon icenet has left us forever.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question