A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

contact form force not dirty



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 30th 08, 12:15 AM posted to microsoft.public.outlook.program_addins
sublimese
external usenet poster
 
Posts: 10
Default contact form force not dirty

I am having an issue that I am wondering if anyone can shed some light
on.
I have customized an outlook contact form by making the second tab "P.
2" visible, then adding additional controls to it. I have code in the
Item_Open event on the contact form that sets the visible text of the
tab with code similar to:

dim objPages
dim objPage
set objPages = item.getinspector.modifiedformpages
set objPage = objPages(1)

objPage.Name = NewValue

however this line of code causes the Contact form to become "dirty".

For example, if I open a contact, then immediately after the contact
opens I close the contact, Outlook tells me that data has changed and
asks if I want to save my changes.

If I remove "objPage.Name = NewValue" from the Item_Open event, when I
open a contact and immediately close it, it just closes and I am not
prompted to save.

Is there a way to dynamically set the visible text of the tab on a
contact form without causing the contact form to become "dirty"? Or
failing that is there a way to tell the contact form that it is not
"dirty" without saving the contact form?

This is occurring on both Outlook 2003 and Outlook 2007.
The code in question is running on the Outlook Contact form, but there
is also an addin involved if there is a way to accomplish the
necessary task from the addin.

If there is no way to accomplish this task using the Outlook form or
with an addin, is it possible to do it through any level of code c++,
exchange client extension, etc...

Thank you
  #2  
Old April 30th 08, 12:20 AM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default contact form force not dirty

Maybe a dumb question, but why not rename the page in the form design itself? I suspect that renaming it at run time will one-off the item, which will cause problems.

There is no way to "undirty" an item other than to save it.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"sublimese" wrote in message ...
I am having an issue that I am wondering if anyone can shed some light
on.
I have customized an outlook contact form by making the second tab "P.
2" visible, then adding additional controls to it. I have code in the
Item_Open event on the contact form that sets the visible text of the
tab with code similar to:

dim objPages
dim objPage
set objPages = item.getinspector.modifiedformpages
set objPage = objPages(1)

objPage.Name = NewValue

however this line of code causes the Contact form to become "dirty".

For example, if I open a contact, then immediately after the contact
opens I close the contact, Outlook tells me that data has changed and
asks if I want to save my changes.

If I remove "objPage.Name = NewValue" from the Item_Open event, when I
open a contact and immediately close it, it just closes and I am not
prompted to save.

Is there a way to dynamically set the visible text of the tab on a
contact form without causing the contact form to become "dirty"? Or
failing that is there a way to tell the contact form that it is not
"dirty" without saving the contact form?

This is occurring on both Outlook 2003 and Outlook 2007.
The code in question is running on the Outlook Contact form, but there
is also an addin involved if there is a way to accomplish the
necessary task from the addin.

If there is no way to accomplish this task using the Outlook form or
with an addin, is it possible to do it through any level of code c++,
exchange client extension, etc...

Thank you

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a contact form I created be set up as the default contact form Andrea Outlook - Using Contacts 2 January 31st 08 09:47 AM
Forcing Outlook custom form as "dirty" karlman[_2_] Outlook - Using Forms 1 January 9th 08 10:19 PM
Force Outlook to reload form region definitions. jaredb Add-ins for Outlook 3 August 31st 07 09:42 PM
How to replace Default Contact form with Customised conact form using VBScript code Satish Boddapati Outlook - Installation 0 October 12th 06 09:19 AM
OL2003 - can you auto-fill a singel new contact form with online form data TimR Outlook - Using Contacts 1 February 15th 06 02:43 PM


All times are GMT +1. The time now is 08:49 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.