Click or drag to resize

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
Syntax
void OnCurrentSaleFieldChanged(
	string fullFieldName
)

Parameters

fullFieldName
Type: SystemString
This gives you the table.fieldname of field that's changed.
Examples

Description

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

VB
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