IScriptingEventsOnCurrentSaleFieldChanged 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 OnCurrentSaleFieldChanged(
string fullFieldName
)
Sub OnCurrentSaleFieldChanged (
fullFieldName As String
)
Dim instance As IScriptingEvents
Dim fullFieldName As String
instance.OnCurrentSaleFieldChanged(fullFieldName)
void OnCurrentSaleFieldChanged(
[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 OnCurrentSaleFieldChanged(fieldname)
if fieldname = "sale.probability_idx" then
If CurrentSale.Amount > 100000 Then
SOMessageBox "This is a large sale, should you include more internal resources?"
end if
end if
End Sub
See Also