Jiwa Collection Item Logical Delete  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Jiwa Collection Item Logical Delete

Postby SBarnes » Mon Feb 15, 2021 3:51 pm

If I want a custom Jiwa collection item that when deleted doesn't actually delete but performs a logical delete i.e. just sets a deleted flag to true in the database will this work with a Jiwa Collection if all I change is the iSave and the sql that gets called when the deleted flag is true?

Obviously read on the collection and collection object would need to also look for this flag being false.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Jiwa Collection Item Logical Delete  Topic is solved

Postby Mike.Sheen » Tue Feb 16, 2021 1:03 pm

SBarnes wrote:If I want a custom Jiwa collection item that when deleted doesn't actually delete but performs a logical delete i.e. just sets a deleted flag to true in the database will this work with a Jiwa Collection if all I change is the iSave and the sql that gets called when the deleted flag is true?

Obviously read on the collection and collection object would need to also look for this flag being false.


Yep, that should do it.
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 4 guests