after Forward Custom Form "GetNameSpace("MAPI").CurrentUser" not

O

OutlookFormQ

Hi,

I have a custom form that a user CLICK on a button and his Display Name from
the GAL is automatically entered in the form,
it is working when a user use the form for the first time but after another
user get it and FORWARD that form that Button Click does not work any more

Sub UserName_Click()
item.UserProperties("Name")=Application.GetNameSpace("MAPI").CurrentUser
End Sub

any idea why?
Office 2003 + exchange 2000
 
S

Sue Mosher [MVP-Outlook]

If the form doesn't run code after you have sent or saved an item using the
form, you probably have done something to "one-off" the form. Outlook 2003,
Outlook 2002, Outlook 2000 SP2 and Outlook 2000 or 98 with the Email
Security Update will not run code on one-off forms; see
http://www.outlookcode.com/d/secforms.htm for more information on this
issue.

To ensure that a form does not one-off:

-- Make sure the "Send form definition with item" box on the (Properties)
tab of the form is *not* checked. [1]

-- For in-house corporate use with Exchange Server, publish the form to the
Organization Forms library or a public folder's forms library, as
appropriate for your application.

-- For collaboration via the Internet, publish your form to your Personal
Forms library. Save it as an .oft file and send it to other people who need
to use it with instructions to publish it with the same form name that you
used.

-- If you are working with a message form, set the Forward action on the
(Actions) tab to point to the published custom form.

Many other things can cause one-off forms. If the above steps don't work on
a new item created with your form, see
http://www.slipstick.com/dev/formpub.htm#oneoff for other possible causes.

[1] Whenever you publish a message form, Outlook will suggest that you may
want to check the "Send form definition with item" box to ensure that the
recipient will have the form, especially if you're sending to someone via
the Internet. In the current Outlook security environment, this suggestion
is obsolete. Ignore it unless your form has no code behind it.


I suspect that you didn't set the Forward action's form, as described above.
 
O

OutlookFormQ

the form is ipm.note and when i removed the "Send form definition with item"
the one that gets that form - does not get the form...just an empty screen.

its published to a public folder

what can I do next?
thanks


Sue Mosher said:
If the form doesn't run code after you have sent or saved an item using the
form, you probably have done something to "one-off" the form. Outlook 2003,
Outlook 2002, Outlook 2000 SP2 and Outlook 2000 or 98 with the Email
Security Update will not run code on one-off forms; see
http://www.outlookcode.com/d/secforms.htm for more information on this
issue.

To ensure that a form does not one-off:

-- Make sure the "Send form definition with item" box on the (Properties)
tab of the form is *not* checked. [1]

-- For in-house corporate use with Exchange Server, publish the form to the
Organization Forms library or a public folder's forms library, as
appropriate for your application.

-- For collaboration via the Internet, publish your form to your Personal
Forms library. Save it as an .oft file and send it to other people who need
to use it with instructions to publish it with the same form name that you
used.

-- If you are working with a message form, set the Forward action on the
(Actions) tab to point to the published custom form.

Many other things can cause one-off forms. If the above steps don't work on
a new item created with your form, see
http://www.slipstick.com/dev/formpub.htm#oneoff for other possible causes.

[1] Whenever you publish a message form, Outlook will suggest that you may
want to check the "Send form definition with item" box to ensure that the
recipient will have the form, especially if you're sending to someone via
the Internet. In the current Outlook security environment, this suggestion
is obsolete. Ignore it unless your form has no code behind it.


I suspect that you didn't set the Forward action's form, as described above.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



OutlookFormQ said:
Hi,

I have a custom form that a user CLICK on a button and his Display Name
from
the GAL is automatically entered in the form,
it is working when a user use the form for the first time but after
another
user get it and FORWARD that form that Button Click does not work any more

Sub UserName_Click()
item.UserProperties("Name")=Application.GetNameSpace("MAPI").CurrentUser
End Sub

any idea why?
Office 2003 + exchange 2000
 
S

Sue Mosher [MVP-Outlook]

IPM.Note would be the MessageClass for the default form, not a custom form.
If you want the forward to use your custom form, edit the Forward action on
the (Actions) page, then republish the form.

However, it is not appropriate to publish a message form to a public folder
unless you plan for it to be used only with messages sent to that folder.
Think about it: How is Outlook supposed to know to look in that folder among
potentially thousands to get the form definition? Your message form needs to
be in the Organizational Forms library or each user's Personal Forms
library.

I think you need to give more thought to the way this form is supposed to be
used.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



OutlookFormQ said:
the form is ipm.note and when i removed the "Send form definition with
item"
the one that gets that form - does not get the form...just an empty
screen.

its published to a public folder

what can I do next?
thanks


Sue Mosher said:
If the form doesn't run code after you have sent or saved an item using
the
form, you probably have done something to "one-off" the form. Outlook
2003,
Outlook 2002, Outlook 2000 SP2 and Outlook 2000 or 98 with the Email
Security Update will not run code on one-off forms; see
http://www.outlookcode.com/d/secforms.htm for more information on this
issue.

To ensure that a form does not one-off:

-- Make sure the "Send form definition with item" box on the (Properties)
tab of the form is *not* checked. [1]

-- For in-house corporate use with Exchange Server, publish the form to
the
Organization Forms library or a public folder's forms library, as
appropriate for your application.

-- For collaboration via the Internet, publish your form to your Personal
Forms library. Save it as an .oft file and send it to other people who
need
to use it with instructions to publish it with the same form name that
you
used.

-- If you are working with a message form, set the Forward action on the
(Actions) tab to point to the published custom form.

Many other things can cause one-off forms. If the above steps don't work
on
a new item created with your form, see
http://www.slipstick.com/dev/formpub.htm#oneoff for other possible
causes.

[1] Whenever you publish a message form, Outlook will suggest that you
may
want to check the "Send form definition with item" box to ensure that the
recipient will have the form, especially if you're sending to someone via
the Internet. In the current Outlook security environment, this
suggestion
is obsolete. Ignore it unless your form has no code behind it.


I suspect that you didn't set the Forward action's form, as described
above.

OutlookFormQ said:
Hi,

I have a custom form that a user CLICK on a button and his Display Name
from
the GAL is automatically entered in the form,
it is working when a user use the form for the first time but after
another
user get it and FORWARD that form that Button Click does not work any
more

Sub UserName_Click()
item.UserProperties("Name")=Application.GetNameSpace("MAPI").CurrentUser
End Sub

any idea why?
Office 2003 + exchange 2000
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top