A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Custom Appointment Form Message Body Deleted upon reply.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 2nd 09, 09:31 PM posted to microsoft.public.outlook.program_forms
Maui80
external usenet poster
 
Posts: 9
Default Custom Appointment Form Message Body Deleted upon reply.

I'm developing a custom appointment form on outlook 2003. I have an extra tab
that holds user-defined fields including Yes/No and String value fields and
some code that manipulates items in that tab.
I have some code in my form that appends text to the body upon send. The
form is published in the organizational forms and works well except...

When a invitee receives the meeting invite, they can see the message in the
body just fine. But when he/she click's a response (accept, decline,
tentative) the entire message body is deleted and no message is shown.

If I remove my code to deal with the Item_CustomPropertyChange event, the
message body works fine. Some of my code example:

Sub Item_CustomPropertyChange(ByVal Name)
Select Case Name
Case "IsTrue"
Set oPage = Item.GetInspector.ModifiedFormPages
Set oCntrl = oPage("My Tab Name").Controls("My Control")
oCntrl.Visible = Item.UserProperties.Find("IsTrue").Value
Case "Etc"
...
End Select
End Sub

Any ideas? Is it typical for an outlook custom form to delete the message
body if some internal error with the user-defined fields and code occurs on
the recipient side?

Any suggestions would be great! Thanks in advance
Ads
  #2  
Old April 3rd 09, 07:49 PM posted to microsoft.public.outlook.program_forms
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Custom Appointment Form Message Body Deleted upon reply.

If you are referring to the message that is created when the user chooses to
edit their response to the meetinq request when replying - that is a
different form class: IPM.Schedule.Meeting.Resp. So you'd need to run code
to capture that item, or customize that form class. Also take a look at the
Action for your custom Appointment form - you have finer control over what
happens when a user replies/forwards, such as choosing the form class that is
used for those items.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Maui80" wrote:

I'm developing a custom appointment form on outlook 2003. I have an extra tab
that holds user-defined fields including Yes/No and String value fields and
some code that manipulates items in that tab.
I have some code in my form that appends text to the body upon send. The
form is published in the organizational forms and works well except...

When a invitee receives the meeting invite, they can see the message in the
body just fine. But when he/she click's a response (accept, decline,
tentative) the entire message body is deleted and no message is shown.

If I remove my code to deal with the Item_CustomPropertyChange event, the
message body works fine. Some of my code example:

Sub Item_CustomPropertyChange(ByVal Name)
Select Case Name
Case "IsTrue"
Set oPage = Item.GetInspector.ModifiedFormPages
Set oCntrl = oPage("My Tab Name").Controls("My Control")
oCntrl.Visible = Item.UserProperties.Find("IsTrue").Value
Case "Etc"
...
End Select
End Sub

Any ideas? Is it typical for an outlook custom form to delete the message
body if some internal error with the user-defined fields and code occurs on
the recipient side?

Any suggestions would be great! Thanks in advance

  #3  
Old May 5th 09, 09:02 PM posted to microsoft.public.outlook.program_forms
Maui80
external usenet poster
 
Posts: 9
Default Custom Appointment Form Message Body Deleted upon reply.

Sorry for such a late reply, but wanted to thank you for the help! From your
post above, I figured I could add an If statement to check my message class
before continuing with the procedure. This is what I added:

Sub Item_CustomPropertyChange(ByVal Name)
If Item.MessageClass "IPM.Appointment.MyCustomForm" Then
Exit Sub
End If
....
End Sub
  #4  
Old May 5th 09, 09:26 PM posted to microsoft.public.outlook.program_forms
Maui80
external usenet poster
 
Posts: 9
Default Custom Appointment Form Message Body Deleted upon reply.

Nevermind. Scratch that... it's still not working. Back to the drawing board.

"Maui80" wrote:

Sorry for such a late reply, but wanted to thank you for the help! From your
post above, I figured I could add an If statement to check my message class
before continuing with the procedure. This is what I added:

Sub Item_CustomPropertyChange(ByVal Name)
If Item.MessageClass "IPM.Appointment.MyCustomForm" Then
Exit Sub
End If
...
End Sub

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Message headers, attachments, and the message body may be lost in Outlook 2003 when you reply to an e-mail message that contains a References header that exceeds 1,000 bytes gbkhor[_2_] Outlook - General Queries 0 March 4th 09 10:26 AM
Message body (all my custom form labels/data) disappears when repl duugg Outlook - Using Forms 6 December 11th 08 01:49 PM
Inserting hyperlinks/file paths into message body of custom form dch3 Outlook - Using Forms 2 December 7th 06 05:02 PM
Custom Form - Receiver replies and form is gone, message body is b Kozlik Outlook - Using Forms 16 July 14th 06 09:32 PM
Inserting a picture in the message body of a custom form groom Outlook - General Queries 1 February 8th 06 10:08 PM


All times are GMT +1. The time now is 12:45 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.