IScriptingEventsOnCurrentContactFieldChanged Method |
FieldName is name of the field being changed. e.g.: 'contact.name' or 'address.city'
Namespace:
SuperOffice.COM.ScriptEvents
Assembly:
Scripting.Interop (in Scripting.Interop.dll) Version: 8.0.0.0
Syntaxvoid OnCurrentContactFieldChanged(
string fullFieldName
)
Sub OnCurrentContactFieldChanged (
fullFieldName As String
)
Dim instance As IScriptingEvents
Dim fullFieldName As String
instance.OnCurrentContactFieldChanged(fullFieldName)
void OnCurrentContactFieldChanged(
[InAttribute] String^ fullFieldName
)
Parameters
- fullFieldName
- Type: SystemString
This gives you the table.fieldname of field that's changed.
ExamplesDescription
This text may be copied to the notepad, and saved as a *.vbs file.
Sub OnCurrentContactFieldChanged (fieldname)
if fieldname = "contact.associate_id" then
set soApnt = database.createappointment
soApnt.SetDefaults
soApnt.Description "The owner was changed by: " & currentcontact.associate.fullname
soApnt.save
end if
End Sub
See Also