Re: Please help on how to work with two custom forms
- From: "Unknown" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 5 Apr 2005 17:37:56 -0700
Sue,
The code on form 2 does not run since I added a message
box in the open event. I'll post the code I have and also
check under help.
BTW, do I need to open the original email using form 1 and
then open the email saved with form 2? Thanks.
>-----Original Message-----
>Where the form is published should not make a difference,
for now, if all the items are in your own mailbox.
>
>A better check would be to see whether any code actually
runs. <g> For testing, I'd try opening another item first
before opening the one just changed.
>
>Can you show a short code snippet that shows how you're
changing and saving the item? Does the changed item
correctly show the right form information in Help | About
This Form?
>
>--
>Sue Mosher, Outlook MVP
>Author of
> Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
>"Unknown" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:015b01c53a18$5bc5c140$a401280a@xxxxxxxxxx
>>I published the form with the box cleared. What I did
>> was to display the mail after saving, dereferencing and
>> referencing. Once the mail is open, I select design
this
>> form to check the code.
>>
>> Also form1 is currently published in the organizational
>> forms library. Form2 is published in my personal. Not
>> sure if this makes difference though. Thanks.
>>
>>>-----Original Message-----
>>>Did you publish the form with the "send form definition
>> with item" box checked or cleared? How are you looking
to
>> see if there's code?
>>>
>>>"Unknown" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote
in
>> message news:04cc01c539f1$2122d680$a601280a@xxxxxxxxxx
>>>> Sorry, my mistake.
>>>>
>>>> I tested with your recommendation. All the user
>> defined
>>>> fields are working fine. I also have VBScript on the
>>>> form to handle Send event. I made some changes on
>> form 2
>>>> so form 1 and form 2 also have different VBScript
>>>> functions. Once I save, dereference and reference
>> after
>>>> changing the message class, all the code is gone.
The
>>>> email using the new message class does not have any
>> code
>>>> on it. Did I miss anything? Thanks!
>>>>
>>>>
>>>>>-----Original Message-----
>>>>>Who said anything about rebuilding a mail item? All
>>>> we've been talking about is changing properties on
>>>> existing items.
>>>>>
>>>>>"Unknown" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote
>> in
>>>> message news:041e01c539dd$3bd508e0$a601280a@xxxxxxxxxx
>>>>>> Sue,
>>>>>>
>>>>>> I checked some of the previous postings. My
concern
>>>> with
>>>>>> this is how to rebuild a mail item with different
>>>>>> attachments, especially those with embedded files.
>>>> Some
>>>>>> of the postings are saying only certain types of
>>>>>> attachments can be handled but not all. Is
>> Redemption
>>>> an
>>>>>> alternative for this solution? Thanks!
>>>>>>
>>>>>>>-----Original Message-----
>>>>>>>You should build Custom Form 2 to contain all the
>>>> custom
>>>>>> fields from Custom Form 1 and all the custom fields
>>>> for
>>>>>> Form 2. These should be visible in the form design
>> in
>>>> the
>>>>>> User-Defined Fields in This Item, not just "... in
>>>> This
>>>>>> Folder."
>>>>>>>
>>>>>>>After you change the MessageClass value, save the
>>>> item,
>>>>>> and dereference it. Then get it again using its
>>>> EntryID
>>>>>> and Namespace.GetItemFromID. It should be available
>> in
>>>>>> Form 2, with all the fields you need already
present
>>>> and
>>>>>> waiting to accept values.
>>>>>
>>>>>>>
>>>>>>>"Unknown" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx>
>> wrote
>>>> in
>>>>>> message news:1cfe01c53990$0723aea0
>> $a401280a@xxxxxxxxxx
>>>>>>>>
>>>>>>>> We've a custom form published with both user
>>>> definied
>>>>>>>> fields and VBScript on the form. All emails
using
>>>>>> this
>>>>>>>> custom form are archived on the Exchange Server.
>>>>>> Since we
>>>>>>>> may make changes later on the custom form, adding
>>>> and
>>>>>>>> renaming user defined fields, modifying the
>> script,
>>>>>> I'm
>>>>>>>> writing a utility app trying to remap all the
user
>>>>>>>> definied fields between the two custom forms with
>>>>>>>> different message classes.
>>>>>>>>
>>>>>>>> What I'm doing is to make a copy off each email
>> and
>>>>>> change
>>>>>>>> the message class from custom form 1 to custom
>> form
>>>>>> 2.
>>>>>>>> Then remove all user defined fields from form 1
>> and
>>>>>> add
>>>>>>>> those for form 2 as well as set the values. It
>>>> works
>>>>>> fine
>>>>>>>> with the user defined fields and I can read the
>>>> values
>>>>>>>> from custom form one and set it on custom form
2.
>>>> But
>>>>>> the
>>>>>>>> vbscript is missing from this object copying and
>>>>>> saving.
>>>>>>>> If I do not create a copy off each original
email,
>> I
>>>>>> do
>>>>>>>> not know if it is possible to rebuild the new
>>>>>> object
>>>>>>>> from scratch, considering all different types of
>>>>>>>> attachments on the original emails.
>>>>>>>>
>>>>>>>> What are the options for this? TIA
>
>.
>
.
- Follow-Ups:
- Re: Please help on how to work with two custom forms
- From: Sue Mosher [MVP-Outlook]
- Re: Please help on how to work with two custom forms
- References:
- Please help on how to work with two custom forms
- From: Unknown
- Re: Please help on how to work with two custom forms
- From: Sue Mosher [MVP-Outlook]
- Re: Please help on how to work with two custom forms
- From: Unknown
- Re: Please help on how to work with two custom forms
- From: Sue Mosher [MVP-Outlook]
- Re: Please help on how to work with two custom forms
- From: Unknown
- Re: Please help on how to work with two custom forms
- From: Sue Mosher [MVP-Outlook]
- Re: Please help on how to work with two custom forms
- From: Unknown
- Re: Please help on how to work with two custom forms
- From: Sue Mosher [MVP-Outlook]
- Please help on how to work with two custom forms
- Prev by Date: Why can't I post article on news groups
- Next by Date: How do I get a Gif immage & media clip to both run
- Previous by thread: Re: Please help on how to work with two custom forms
- Next by thread: Re: Please help on how to work with two custom forms
- Index(es):
Relevant Pages
|