Get FieldName of changed property
Hi,
Back in 6.5.13, on a module in the Changed breakout event, we were passed the FieldName.
In Jiwa 7, how can we get the fieldname when PropertyChanged fires a sub?
For example, if I wanted to write some code when the Debtor, On Hold tickbox has been ticked or unticked, how can I check that it was the AccountOnHold field which was edited?
Thanks
Back in 6.5.13, on a module in the Changed breakout event, we were passed the FieldName.
In Jiwa 7, how can we get the fieldname when PropertyChanged fires a sub?
For example, if I wanted to write some code when the Debtor, On Hold tickbox has been ticked or unticked, how can I check that it was the AccountOnHold field which was edited?
- Code: Select all
Public Sub Setup(ByVal JiwaForm As JiwaApplication.IJiwaForm, ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaFormPlugin.Setup
Dim DebtorForm As JiwaDebtorsUI.frmDebtor = DirectCast(JiwaForm, JiwaDebtorsUI.frmDebtor)
AddHandler DebtorForm.Debtor.PropertyChanged, AddressOf Debtor_Changed
End Sub
Sub Debtor_Changed(Sender As Object, e As System.EventArgs)
Dim Debtor As JiwaDebtors.Debtor = DirectCast(sender, JiwaDebtors.Debtor)
msgbox(Debtor.AccountNo)
End Sub
Thanks