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 » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Form Cache



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6  
Old February 15th 06, 03:51 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Form Cache

Outlook does some internal caching of items that the user opens. Usually, if the user opens an item and doesn't see the most recent changes (e.g. the Oppen property being set back to ""), the problem can be avoided by closing that item and opening another item, then opening the problem item.

I don't know why you'd see different behavior on Terminal Server. There is no setting to control this caching behavior.

Just a wild hunch, but try adding this statement to the end of the Item_Close procedu

Set Item = Nothing

I don't really think it will help, but somewhere in the back of my mind I recall some scenario where releasing the intrinsic Item object was possible and did help.

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


"Joel Allen" wrote in message ...
Perhaps Mail flag was the wrong way to explain it. I have a field that I
populate that will prevent others from saving when someone else is in the
form.

I have cache exchange mode off. The form is published in All Public
Folders.

Here' a code snipit:

Function Item_Write()

On Error Resume Next

if Item.UserProperties("Oppen2") "" then

Item_Write = False

MsgBox "Hey! You can't save because someone else is already in the task. Try
again some other time!"

end if

End Function



Function Item_Open(ByVal Name)

On Error Resume Next

if Item.UserProperties("Oppen") = "" then

Item.UserProperties("Oppen") = "Open"

Item.Save

else

Item.UserProperties("Oppen2") = "DO NOT SAVE WHEN EXITING!"

end if

End Function



Function Item_Close()

On Error Resume Next

if Item.UserProperties("Oppen2") = "" then

Item.UserProperties("Oppen") = ""

Item.Save

End If

End Function


Thanks,
Joel

"Sue Mosher [MVP-Outlook]" wrote in message
...
Maybe you can tell us more about what you mean by:

" a control based on a mail flag. This control will check if is form opened
by another user and prevent it from duplicate processing."

A code snippet could be helpful.

You are connecting to an Exchange mailbox directly, not in Cached Exchange
mode? Where is the form published?

"Joel Allen" wrote in message
...
No it's not an Active X item. Also, I have Outlook 2003 SP1 and have
turned
of Cache Mode, restarted and that doesn't fix it.

This might be another clue: When holding the shift key down when opening
the
form, the code still runs - it is not suppose to do that.

I am developing task management in Outlook, where I am using Outlook
forms.
I have one form which is sent from users to one e-mail address where it
will
be processed like tasks (not standard Outlook tasks). There are about 10
operators which can process this task so I have implemented a control
based
on a
mail flag. This control will check if is form opened by another user and
prevent it from duplicate processing. The problem is that Outlook is
caching the
form and when I open a form by one user, Outlook will cache this state
and
he
will use this state everytime when I open it from this one user, so he is
not
accepting changes (about flag on mail) which are made by another user.
Outlook
accepts changes only after a restart. This is causing Conflict
messages and so on.


Now when all the users run tasks from TS, none of these problems happen
whatsoever - it's just that I can't have them working from TS all the
time.

No problem whatsoever if I run the form via Terminal Server. What is
different about Terminal Server vs. the local that would free up any
errors?



 




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
Outlk 2003 Cache & Forms LeoBloom Outlook - Installation 2 March 8th 06 04:24 PM
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
Outlook opens Form as Email message, not Form [email protected] Outlook - General Queries 2 January 26th 06 10:54 PM
I send an Outlook custom form, but a std. form displays? Sue Mosher [MVP-Outlook] Outlook - Using Forms 0 January 20th 06 08:41 PM
Change Default Send email form to Custom Send email Form Sue Mosher [MVP-Outlook] Outlook - Using Forms 0 January 20th 06 06:33 PM


All times are GMT +1. The time now is 08:37 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.