PC Review


Reply
Thread Tools Rate Thread

Custom Appointment Form Message Body Deleted upon reply.

 
 
Maui80
Guest
Posts: n/a
 
      2nd Apr 2009
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
 
Reply With Quote
 
 
 
 
Eric Legault [MVP - Outlook]
Guest
Posts: n/a
 
      3rd Apr 2009
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

 
Reply With Quote
 
Maui80
Guest
Posts: n/a
 
      5th May 2009
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
 
Reply With Quote
 
Maui80
Guest
Posts: n/a
 
      5th May 2009
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reply with custom form & selected data from message body GregoryL.[AITI] Microsoft Outlook VBA Programming 2 28th May 2009 12:49 AM
Custom Form - Receiver replies and form is gone, message body is b =?Utf-8?B?S296bGlr?= Microsoft Outlook Form Programming 16 14th Jul 2006 09:32 PM
Controls don't appear in Message body in Custom Form girlkordic@yahoo.com Microsoft Outlook Form Programming 9 6th Sep 2005 09:16 PM
Re: Populating the message body of a custom form Jon Cronin Microsoft Outlook Form Programming 1 16th Sep 2003 10:26 PM
Populating the message body of a custom form Slo Crystal Tech Microsoft Outlook Form Programming 0 16th Sep 2003 08:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:59 AM.