IScriptingEventsOnCurrentDocumentFieldChanged 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 OnCurrentDocumentFieldChanged(
string fullFieldName
)
Sub OnCurrentDocumentFieldChanged (
fullFieldName As String
)
Dim instance As IScriptingEvents
Dim fullFieldName As String
instance.OnCurrentDocumentFieldChanged(fullFieldName)
void OnCurrentDocumentFieldChanged(
[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 OnCurrentDocumentFieldChanged(fieldname)
if fieldname = "document.our_ref" then
SOMessageBox "You should not change the Our ref field of a saved document"
end if
End Sub
See Also