View Single Post
  #6  
Old November 7th 06, 08:31 PM posted to microsoft.public.outlook.program_forms
Hollis Paul
external usenet poster
 
Posts: 242
Default My Form Pages are not getting hidden

In article . com,
Lalthan wrote:
Where is the form published?

The Form is published on a public folder

Does the recipient have access to it?

The recipients have access to this folder.

Also, when I send a reply mail from the recipient, the form does not
get displayed. The form gets displayed only if I forward it again from
the recipient to another user.

Well, unless you have code in the Item-open event to add a new instance
of your custom message and then add the contents of the incoming message
to it, your recipients will probably never see it displayed in the
custom form. Exchange/Outlook will look for the custom form first in
the Exchange Organizational Forms library, then in the local cache, and
then in the personal forms library, if it exists. It does not search
through public folders to find the custom form. The solution is to move
the form definition from the public folder to the Exchange Org Forms
Library. Your recipients will then be able to find the custom form.

Now, back to "request". From what you have said, I infer that the text
of what is selected in the drop-down list is getting saved to the
variable you created. This will not evaluate to a numerical value when
you try to use it in your code. What you need to do is create two
custom fields, one of type array, and one of type numeric. You need to
save the Array value of the combo-box to the field of type array, and
the index value of the combo-box to the numeric-type field. The
Combo-box should be set as unbound, and you have to provide the code, in
the click-event handler, to save to save these two values. Then, when
the item is opened at the recipient, you need to provide code to
reconstruct the state of the combo-box from the saved fields.

Review these pages for sample code and how-to information:

Syntax for Microsoft Outlook property and control values and events
5/10/2006
Correct syntax for accessing Microsoft Outlook property and control
values and writing events that respond to changes in properties or
control values
http://www.outlookcode.com/archive0/d/propsyntax.htm - 31 KB

To populate a combo box on a Microsoft Outlook form 5/10/2006
Microsoft Outlook VBScript code sample to populate a combo or list box
on an Outlook form using an ADO disconnected recordset
http://www.outlookcode.com/d/code/popcombobox.htm - 20 KB

Controls on Microsoft Outlook Custom Forms 5/10/2006
Tips, tricks and other resources for using controls on Microsoft
Outlook forms
http://www.outlookcode.com/d/formcontrols.htm - 35 KB

--
Hollis Paul
Mukilteo, WA USA


Ads