Re: Item_Save Event?
From: ScottInTexas (ScottInTexas_at_discussions.microsoft.com)
Date: 06/23/04
- Next message: Sue Mosher [MVP-Outlook]: "Re: Item_Save Event?"
- Previous message: Ken Slovak - [MVP - Outlook]: "Re: opening 'contact' links in notes field using custom form?"
- In reply to: Sue Mosher [MVP-Outlook]: "Re: Item_Save Event?"
- Next in thread: Sue Mosher [MVP-Outlook]: "Re: Item_Save Event?"
- Reply: Sue Mosher [MVP-Outlook]: "Re: Item_Save Event?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 23 Jun 2004 06:18:01 -0700
Can the "Dirty" flag be programmatically set?
"Sue Mosher [MVP-Outlook]" wrote:
> Item_Write fires when the user clicks Save or Save is invoked
> programmatically. Note that if you are using unbound controls (or binding
> controls to fields when the controls don't support it, as I suspect may be
> the case with rich-text boxes) and the user makes changes only to those
> controls, the item will not be "dirty" (i.e. will not have unsaved changes)
> and Save will not fire.
>
> --
> Sue Mosher, Outlook MVP
> Author of
> Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
> "ScottInTexas" <ScottInTexas@discussions.microsoft.com> wrote in message
> news:90D2444D-B5A3-447A-A93A-DE2E95784B4A@microsoft.com...
> > Is there an event that fires when the user clicks on Save while editing a
> mailitem? I have to save form data during the Item_Close event. If after
> selecting save and then closing the form, I get prompted to save or discard
> the changes that the Item close event just performed. If the user selects
> OK the data I want is saved otherwise it is discarded. I need to save the
> data when the user clicks save. Then when the user closes the form they
> wont be prompted again.
> >
> > The data comes from Rich Text Boxes (RTBs). Text typed into the RTB is
> not put into the Fields until Item_Send is fired, even though the RTBs are
> bound to their respective Fields.
> >
> > RTB2 is bound to field "IncidentEvent". You can type all day long in the
> RTB and none of the text appears in the field. Only after I manually place
> the values in the field are they there.
> >
> > Sub LoadRTBFields()
> > For i = 2 To 13
> > Set Box = Item.GetInspector.ModifiedFormPages("Primary
> Report").Controls("RTB" & i)
> > Select Case i
> > Case 2
> > Item.UserProperties("IncidentDescription").Value =
> Box.TextRTF
> >
> >
> > Sub LoadRTBs()
> > For i = 2 To 13
> > Set Box = Item.GetInspector.ModifiedFormPages("Primary
> Report").Controls("RTB" & i)
> > Select Case i
> > Case 2
> > Box.TextRTF =
> Item.UserProperties("IncidentDescription").Value
> >
> > I really appreciate your help on this.
>
>
>
- Next message: Sue Mosher [MVP-Outlook]: "Re: Item_Save Event?"
- Previous message: Ken Slovak - [MVP - Outlook]: "Re: opening 'contact' links in notes field using custom form?"
- In reply to: Sue Mosher [MVP-Outlook]: "Re: Item_Save Event?"
- Next in thread: Sue Mosher [MVP-Outlook]: "Re: Item_Save Event?"
- Reply: Sue Mosher [MVP-Outlook]: "Re: Item_Save Event?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|