Knowing If an inventory Image has changed  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Knowing If an inventory Image has changed

Postby SBarnes » Tue Mar 15, 2022 9:50 am

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?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

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

Postby Mike.Sheen » Tue Mar 15, 2022 10:55 am

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
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 14 guests