Page 1 of 1

Knowing If an inventory Image has changed

PostPosted: Tue Mar 15, 2022 9:50 am
by SBarnes
We have a customer who want to record if and when the image on a product has changed.

The simplest way I can think of to do this is to add a custom date or possibly text field(in case of the time) to products and then check in the Save Start if PropertiesChanged contains the picture property and if so update the custom field.

Is there any other or easier way to do this?

Re: Knowing If an inventory Image has changed  Topic is solved

PostPosted: Tue Mar 15, 2022 10:55 am
by Mike.Sheen
SBarnes wrote:We have a customer who want to record if and when the image on a product has changed.

The simplest way I can think of to do this is to add a custom date or possibly text field(in case of the time) to products and then check in the Save Start if PropertiesChanged contains the picture property and if so update the custom field.

Is there any other or easier way to do this?


That would be the most appropriate way.

Other ways would be:
  • Peeking at private property m_PictureChanged
  • Listening to PropertyChanged event - if propertyName == "Picture"
  • Tigger on IN_Main UPDATE and seeing if Picture field is being set