what is the SalesOrderHistoryChanged event in Jiwa 7  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

what is the SalesOrderHistoryChanged event in Jiwa 7

Postby indikad » Thu Mar 24, 2022 2:07 pm

In Jiwa 6 there is a event called SalesOrderHistoryChanged on the sales order window. This even seems to fire for almost any change action on the screen.

What is the equivalent event in Jiwa 7 ( 7.2.1) pls.
indikad
Frequent Contributor
Frequent Contributor
 
Posts: 182
Joined: Thu Jun 18, 2009 1:14 pm
Topics Solved: 2

Re: what is the SalesOrderHistoryChanged event in Jiwa 7  Topic is solved

Postby pricerc » Thu Mar 24, 2022 10:06 pm

You can hook up the "PropertyChanged" event on the SalesOrder object. It will inform you of any changes to values in the sales order. Also on SalesOrderHistory and SalesOrderLine objects.

But they be 'noisy' events.

There is probably a more specific event that would be more useful if you tell the forum what you're wanting to achieve.
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 518
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 21

Re: what is the SalesOrderHistoryChanged event in Jiwa 7

Postby SBarnes » Fri Mar 25, 2022 8:05 am

Ryan is correct is suggesting you hook up to property change but if you are looking to see what properties on the history has changed there is also the changedpropertyList property which is a string list of all the properties that have changed.

There is also an event on the sales order for when a new snapshot is created and one for when the selected snapshot changes i.e. D02 is selected when D01 was shown.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: what is the SalesOrderHistoryChanged event in Jiwa 7

Postby indikad » Wed Mar 30, 2022 4:01 pm

pricerc wrote:You can hook up the "PropertyChanged" event on the SalesOrder object. It will inform you of any changes to values in the sales order. Also on SalesOrderHistory and SalesOrderLine objects.

But they be 'noisy' events.

There is probably a more specific event that would be more useful if you tell the forum what you're wanting to achieve.



Thanks Ryan. the "PropertyChanged" is what I have to use.
- and yes you are right that it is a noisy event - placing some filters already.
indikad
Frequent Contributor
Frequent Contributor
 
Posts: 182
Joined: Thu Jun 18, 2009 1:14 pm
Topics Solved: 2


Return to Technical and or Programming

Who is online

Users browsing this forum: Google [Bot] and 4 guests