Somebody may find this useful.. If somebody tries to delete the Notes, it save a Note that XXXX changed Notes... Gotcha..
On an Inventory Plugin
Under Implements add this.
Private PropertiesChanges As String
Private PriorProperty As String
Under SetupBeforehandlers add this.
AddHandler inventoryForm.Inventory.SaveStart , AddressOf Inventory_SaveStart
Under the setup Sub add this.
Private Sub Inventory_PropertyChanged(sender As Object, e As System.ComponentModel.PropertyChangedEventArgs)
If PriorProperty <> e.PropertyName Then
PropertiesChanges = PropertiesChanges & " " & e.PropertyName
End If
PriorProperty = e.PropertyName
End Sub
And add this Sub to Load your Audit Note.
Private Sub Inventory_SaveStart(sender As Object, e As System.EventArgs)
' Write Note, so we can Track changes.
Dim inventory As JiwaInventory.Inventory = sender
inventory.Notes.Add(New JiwaApplication.Notes.Note With {.NoteText = "SaveDone Items Changed:" & PropertiesChanges , .NoteType = inventory.Notes.DefaultNoteType})
PropertiesChanges = ""
End Sub
Happy Coding...