PC Review


Reply
Thread Tools Rate Thread

how to create alternative compose layout

 
 
=?Utf-8?B?V2F5bmU=?=
Guest
Posts: n/a
 
      16th Mar 2005
My problem: A user opens a form published in our organizational library.
The user fills the form out and sends it to their supervisor. The supervisor
forwards the email but the original Compose layout is opened. The supervisor
needs to have additional fields in their Compose layout for
"approval/disapproval" options. The supervisor then sends it onto HR and
the email is printed.

How do I go about creating an alternative compose layout for the supervisor?
I would also like to have the alternative compose layout showing all details
of the original compose layout as read only.

Thanks
 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      16th Mar 2005
A message form has only one compose layout. (It can also have a read
layout.) If you want the compose layout to look different in some
situations, you can add all the necessary controls to the compose layout and
use code in the Item_Open event handler to show, hide, and otherwise modify
controls depending on the state or user.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Wayne" <(E-Mail Removed)> wrote in message
news:9117FFB2-B232-4770-A51A-(E-Mail Removed)...
> My problem: A user opens a form published in our organizational library.
> The user fills the form out and sends it to their supervisor. The
> supervisor
> forwards the email but the original Compose layout is opened. The
> supervisor
> needs to have additional fields in their Compose layout for
> "approval/disapproval" options. The supervisor then sends it onto HR
> and
> the email is printed.
>
> How do I go about creating an alternative compose layout for the
> supervisor?
> I would also like to have the alternative compose layout showing all
> details
> of the original compose layout as read only.
>
> Thanks



 
Reply With Quote
 
=?Utf-8?B?V2F5bmU=?=
Guest
Posts: n/a
 
      16th Mar 2005
Yes, I understand all of this thanks.

Im just not sure how to go about it. When the form is opened it should
always be as is, but when it is sent, received by the next person and they
forward it, it should contain some new fields.

So Im guessing the way to do this might be by using the Size Property? So
if the Size=0 then it's being composed for the first time, but if Size=1 it's
the second time it is being composed (i.e. forwarded) - correct? Im trying
to find code examples and researching but to no avail. I have no idea how I
would make other fields become visible IF size=1.

I also just wanted to know if it's possible to disable the "Reply" and
"Reply To All" buttons - I only want the form to be forwarded.

Thanks so much for your help
Wayne

"Sue Mosher [MVP-Outlook]" wrote:

> A message form has only one compose layout. (It can also have a read
> layout.) If you want the compose layout to look different in some
> situations, you can add all the necessary controls to the compose layout and
> use code in the Item_Open event handler to show, hide, and otherwise modify
> controls depending on the state or user.
>
> --
> Sue Mosher, Outlook MVP
> Author of
> Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
> "Wayne" <(E-Mail Removed)> wrote in message
> news:9117FFB2-B232-4770-A51A-(E-Mail Removed)...
> > My problem: A user opens a form published in our organizational library.
> > The user fills the form out and sends it to their supervisor. The
> > supervisor
> > forwards the email but the original Compose layout is opened. The
> > supervisor
> > needs to have additional fields in their Compose layout for
> > "approval/disapproval" options. The supervisor then sends it onto HR
> > and
> > the email is printed.
> >
> > How do I go about creating an alternative compose layout for the
> > supervisor?
> > I would also like to have the alternative compose layout showing all
> > details
> > of the original compose layout as read only.
> >
> > Thanks

>
>
>

 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      17th Mar 2005
Easy things first: Disable Reply and Reply to All in the (Actions) tab.

Instead of Item_Open, it might be easier to use Item_Forward, which passes
as an argument the new forward item. You can then work with its pages and
controls to make them visible, disable them,etc. , as described at
http://www.outlookcode.com/d/propsyntax.htm#unbound.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Wayne" <(E-Mail Removed)> wrote in message
news:A9340589-F690-4E42-A378-(E-Mail Removed)...
> Yes, I understand all of this thanks.
>
> Im just not sure how to go about it. When the form is opened it should
> always be as is, but when it is sent, received by the next person and they
> forward it, it should contain some new fields.
>
> So Im guessing the way to do this might be by using the Size Property? So
> if the Size=0 then it's being composed for the first time, but if Size=1
> it's
> the second time it is being composed (i.e. forwarded) - correct? Im
> trying
> to find code examples and researching but to no avail. I have no idea how
> I
> would make other fields become visible IF size=1.
>
> I also just wanted to know if it's possible to disable the "Reply" and
> "Reply To All" buttons - I only want the form to be forwarded.
>
> Thanks so much for your help
> Wayne
>
> "Sue Mosher [MVP-Outlook]" wrote:
>
>> A message form has only one compose layout. (It can also have a read
>> layout.) If you want the compose layout to look different in some
>> situations, you can add all the necessary controls to the compose layout
>> and
>> use code in the Item_Open event handler to show, hide, and otherwise
>> modify
>> controls depending on the state or user.
>>
>> --
>> Sue Mosher, Outlook MVP
>> Author of
>> Microsoft Outlook Programming - Jumpstart for
>> Administrators, Power Users, and Developers
>> http://www.outlookcode.com/jumpstart.aspx
>>
>>
>> "Wayne" <(E-Mail Removed)> wrote in message
>> news:9117FFB2-B232-4770-A51A-(E-Mail Removed)...
>> > My problem: A user opens a form published in our organizational
>> > library.
>> > The user fills the form out and sends it to their supervisor. The
>> > supervisor
>> > forwards the email but the original Compose layout is opened. The
>> > supervisor
>> > needs to have additional fields in their Compose layout for
>> > "approval/disapproval" options. The supervisor then sends it onto HR
>> > and
>> > the email is printed.
>> >
>> > How do I go about creating an alternative compose layout for the
>> > supervisor?
>> > I would also like to have the alternative compose layout showing all
>> > details
>> > of the original compose layout as read only.
>> >
>> > Thanks

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?V2F5bmU=?=
Guest
Posts: n/a
 
      17th Mar 2005
I have set the code as follows:

If Item.Size = 0 Then
Item.UserProperties("Approved").Visible = False
End If

But it doesn't work. Not sure if my syntax is correct or not.

"Wayne" wrote:

> Yes, I understand all of this thanks.
>
> Im just not sure how to go about it. When the form is opened it should
> always be as is, but when it is sent, received by the next person and they
> forward it, it should contain some new fields.
>
> So Im guessing the way to do this might be by using the Size Property? So
> if the Size=0 then it's being composed for the first time, but if Size=1 it's
> the second time it is being composed (i.e. forwarded) - correct? Im trying
> to find code examples and researching but to no avail. I have no idea how I
> would make other fields become visible IF size=1.
>
> I also just wanted to know if it's possible to disable the "Reply" and
> "Reply To All" buttons - I only want the form to be forwarded.
>
> Thanks so much for your help
> Wayne
>
> "Sue Mosher [MVP-Outlook]" wrote:
>
> > A message form has only one compose layout. (It can also have a read
> > layout.) If you want the compose layout to look different in some
> > situations, you can add all the necessary controls to the compose layout and
> > use code in the Item_Open event handler to show, hide, and otherwise modify
> > controls depending on the state or user.
> >
> > --
> > Sue Mosher, Outlook MVP
> > Author of
> > Microsoft Outlook Programming - Jumpstart for
> > Administrators, Power Users, and Developers
> > http://www.outlookcode.com/jumpstart.aspx
> >
> >
> > "Wayne" <(E-Mail Removed)> wrote in message
> > news:9117FFB2-B232-4770-A51A-(E-Mail Removed)...
> > > My problem: A user opens a form published in our organizational library.
> > > The user fills the form out and sends it to their supervisor. The
> > > supervisor
> > > forwards the email but the original Compose layout is opened. The
> > > supervisor
> > > needs to have additional fields in their Compose layout for
> > > "approval/disapproval" options. The supervisor then sends it onto HR
> > > and
> > > the email is printed.
> > >
> > > How do I go about creating an alternative compose layout for the
> > > supervisor?
> > > I would also like to have the alternative compose layout showing all
> > > details
> > > of the original compose layout as read only.
> > >
> > > Thanks

> >
> >
> >

 
Reply With Quote
 
=?Utf-8?B?V2F5bmU=?=
Guest
Posts: n/a
 
      17th Mar 2005
I have figured out who to disable Reply and Reply To All buttons.

If anyone comes across this wanting to know, it's in Design mode under the
Actions tab.

"Wayne" wrote:

> I have set the code as follows:
>
> If Item.Size = 0 Then
> Item.UserProperties("Approved").Visible = False
> End If
>
> But it doesn't work. Not sure if my syntax is correct or not.
>
> "Wayne" wrote:
>
> > Yes, I understand all of this thanks.
> >
> > Im just not sure how to go about it. When the form is opened it should
> > always be as is, but when it is sent, received by the next person and they
> > forward it, it should contain some new fields.
> >
> > So Im guessing the way to do this might be by using the Size Property? So
> > if the Size=0 then it's being composed for the first time, but if Size=1 it's
> > the second time it is being composed (i.e. forwarded) - correct? Im trying
> > to find code examples and researching but to no avail. I have no idea how I
> > would make other fields become visible IF size=1.
> >
> > I also just wanted to know if it's possible to disable the "Reply" and
> > "Reply To All" buttons - I only want the form to be forwarded.
> >
> > Thanks so much for your help
> > Wayne
> >
> > "Sue Mosher [MVP-Outlook]" wrote:
> >
> > > A message form has only one compose layout. (It can also have a read
> > > layout.) If you want the compose layout to look different in some
> > > situations, you can add all the necessary controls to the compose layout and
> > > use code in the Item_Open event handler to show, hide, and otherwise modify
> > > controls depending on the state or user.
> > >
> > > --
> > > Sue Mosher, Outlook MVP
> > > Author of
> > > Microsoft Outlook Programming - Jumpstart for
> > > Administrators, Power Users, and Developers
> > > http://www.outlookcode.com/jumpstart.aspx
> > >
> > >
> > > "Wayne" <(E-Mail Removed)> wrote in message
> > > news:9117FFB2-B232-4770-A51A-(E-Mail Removed)...
> > > > My problem: A user opens a form published in our organizational library.
> > > > The user fills the form out and sends it to their supervisor. The
> > > > supervisor
> > > > forwards the email but the original Compose layout is opened. The
> > > > supervisor
> > > > needs to have additional fields in their Compose layout for
> > > > "approval/disapproval" options. The supervisor then sends it onto HR
> > > > and
> > > > the email is printed.
> > > >
> > > > How do I go about creating an alternative compose layout for the
> > > > supervisor?
> > > > I would also like to have the alternative compose layout showing all
> > > > details
> > > > of the original compose layout as read only.
> > > >
> > > > Thanks
> > >
> > >
> > >

 
Reply With Quote
 
=?Utf-8?B?V2F5bmU=?=
Guest
Posts: n/a
 
      17th Mar 2005
Sorted it out.

For anyone looking for the solution:

If Item.Size = 0 Then
Item.GetInspector.ModifiedFormPages("Message").Controls("Approved").Visible = False
End If

"Wayne" wrote:

> I have figured out who to disable Reply and Reply To All buttons.
>
> If anyone comes across this wanting to know, it's in Design mode under the
> Actions tab.
>
> "Wayne" wrote:
>
> > I have set the code as follows:
> >
> > If Item.Size = 0 Then
> > Item.UserProperties("Approved").Visible = False
> > End If
> >
> > But it doesn't work. Not sure if my syntax is correct or not.
> >
> > "Wayne" wrote:
> >
> > > Yes, I understand all of this thanks.
> > >
> > > Im just not sure how to go about it. When the form is opened it should
> > > always be as is, but when it is sent, received by the next person and they
> > > forward it, it should contain some new fields.
> > >
> > > So Im guessing the way to do this might be by using the Size Property? So
> > > if the Size=0 then it's being composed for the first time, but if Size=1 it's
> > > the second time it is being composed (i.e. forwarded) - correct? Im trying
> > > to find code examples and researching but to no avail. I have no idea how I
> > > would make other fields become visible IF size=1.
> > >
> > > I also just wanted to know if it's possible to disable the "Reply" and
> > > "Reply To All" buttons - I only want the form to be forwarded.
> > >
> > > Thanks so much for your help
> > > Wayne
> > >
> > > "Sue Mosher [MVP-Outlook]" wrote:
> > >
> > > > A message form has only one compose layout. (It can also have a read
> > > > layout.) If you want the compose layout to look different in some
> > > > situations, you can add all the necessary controls to the compose layout and
> > > > use code in the Item_Open event handler to show, hide, and otherwise modify
> > > > controls depending on the state or user.
> > > >
> > > > --
> > > > Sue Mosher, Outlook MVP
> > > > Author of
> > > > Microsoft Outlook Programming - Jumpstart for
> > > > Administrators, Power Users, and Developers
> > > > http://www.outlookcode.com/jumpstart.aspx
> > > >
> > > >
> > > > "Wayne" <(E-Mail Removed)> wrote in message
> > > > news:9117FFB2-B232-4770-A51A-(E-Mail Removed)...
> > > > > My problem: A user opens a form published in our organizational library.
> > > > > The user fills the form out and sends it to their supervisor. The
> > > > > supervisor
> > > > > forwards the email but the original Compose layout is opened. The
> > > > > supervisor
> > > > > needs to have additional fields in their Compose layout for
> > > > > "approval/disapproval" options. The supervisor then sends it onto HR
> > > > > and
> > > > > the email is printed.
> > > > >
> > > > > How do I go about creating an alternative compose layout for the
> > > > > supervisor?
> > > > > I would also like to have the alternative compose layout showing all
> > > > > details
> > > > > of the original compose layout as read only.
> > > > >
> > > > > Thanks
> > > >
> > > >
> > > >

 
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
Google Adsense Alternative - Commission Junction Alternative -ClickBank Alternative William9999 Windows XP Performance 0 2nd Nov 2010 09:02 AM
Google Adsense Alternative - Commission Junction Alternative -ClickBank Alternative William9999 Windows XP Performance 0 2nd Nov 2010 09:01 AM
Alternative to SQL to Create MS Access Table? =?Utf-8?B?Um9iZXJ0IFcu?= Microsoft ADO .NET 3 23rd Jul 2006 04:43 PM
cannot create email or go to compose in options get error Windows XP Messenger 0 10th Feb 2004 09:17 AM
ANN: How to create alternative transport via MQ for web services. Arthur Nesterovsky Microsoft C# .NET 0 2nd Oct 2003 12:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:02 PM.