Click or drag to resize

IScriptingEventsOnCurrentSelectionSaved Method

Called when an existing object is saved after having been changed.

Namespace:  SuperOffice.COM.ScriptEvents
Assembly:  Scripting.Interop (in Scripting.Interop.dll) Version: 8.0.0.0
Syntax
void OnCurrentSelectionSaved()
Examples

Description

This text may be copied to the notepad, and saved as a *.vbs file.

VB
Sub OnCurrentSelectionSaved    
If CurrentSelection.SelectionCategory.Text = "Campaign" Then
    Set myApnt = Database.CreateAppointment
    myApnt.SetDefaultsToDo
    myApnt.Contact = Database.GetContact(Database.OwnerContactId)
    myApnt.Description = "The campaign selection: " & CurrentSelection.Name & " was saved!"
    myApnt.Save
End If    


End Sub

See Also