Inventory Category Update  Topic is solved

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

Inventory Category Update

Postby SBarnes » Fri Apr 17, 2020 12:56 pm

How can you tell when an inventory category is updated or added?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Inventory Category Update

Postby Scott.Pearce » Fri Apr 17, 2020 1:18 pm

Look at it's .InsertFlag and .ChangeFlag properties?
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 765
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 230

Re: Inventory Category Update

Postby SBarnes » Fri Apr 17, 2020 1:20 pm

Are there save events on the category to attach to?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Inventory Category Update  Topic is solved

Postby Scott.Pearce » Fri Apr 17, 2020 1:27 pm

Yes.

Code: Select all
JiwaInventory.Configuration.Category.Categories.SaveStart(sender As Object, e As System.EventArgs)


or

Code: Select all
JiwaInventory.Configuration.Category.Categories.Category1Collection.SaveStart(sender As Object, e As System.EventArgs)
JiwaInventory.Configuration.Category.Categories.Category2Collection.SaveStart(sender As Object, e As System.EventArgs)
JiwaInventory.Configuration.Category.Categories.Category3Collection.SaveStart(sender As Object, e As System.EventArgs)
JiwaInventory.Configuration.Category.Categories.Category4Collection.SaveStart(sender As Object, e As System.EventArgs)
JiwaInventory.Configuration.Category.Categories.Category5Collection.SaveStart(sender As Object, e As System.EventArgs)


No events on the Category object itself though it seems.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 765
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 230

Re: Inventory Category Update

Postby SBarnes » Fri Apr 17, 2020 1:36 pm

Thanks Scott,

That'll do it I want to log that something has changed to send to an external system so I can roll over the collection and check the flags and based upon that log it.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Inventory Category Update

Postby Scott.Pearce » Fri Apr 17, 2020 1:39 pm

SBarnes wrote:I can roll over the collection and check the flags and based upon that log it.


Yep, that's the way.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 765
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 230


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 4 guests

cron