Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.
by SBarnes » Wed Sep 09, 2026 11:35 am
How can you detect the change to a custom field on the sales order history I have tried adding the following code to the red end of the sales order but the event doesn't fire
- Code: Select all
var history = salesOrder.SalesOrderHistorys[salesOrder.CurrentHistoryNo];
history.CustomSettingValues.get_ItemFromSettingName("NoPallets").PropertyChanged += DetrackWorker_PropertyChanged;
history.CustomSettingValues.get_ItemFromSettingName("CollPallets").PropertyChanged += DetrackWorker_PropertyChanged;
private void DetrackWorker_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
if (e.PropertyName.ToUpper() == "CONTENTS")
{
salesOrder.GenericObjectCollection.SetOrAdd<bool>("PalletsChanged", true);
}
}
Regards
Stuart Barnes
-
SBarnes
- Shihan

-
- Posts: 1715
- Joined: Fri Aug 15, 2008 3:27 pm
- Topics Solved: 193
Return to Technical and or Programming
Who is online
Users browsing this forum: No registered users and 72 guests