New Business Logic Entities  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

New Business Logic Entities

Postby SBarnes » Thu Oct 24, 2019 7:51 am

Hi Mike

A while ago you provide details of what is necessary to create business objects here https://forums.jiwa.com.au/viewtopic.php?f=26&t=474&p=1553&hilit=own+business+objects#p1553 given the the now use of separate manager objects instead of the instance object has anything changed before doing this under 7.2.1?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1617
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: New Business Logic Entities  Topic is solved

Postby Mike.Sheen » Wed Oct 30, 2019 4:28 pm

SBarnes wrote:has anything changed before doing this under 7.2.1?


None that you wouldn't already be aware of... The constructor can't do much because the Manager property would not have been set by the factory - so most of the code in the constructor is moved into the overridden Setup method.

The one other change is one the compiler will guide you into the correct way - the override of the Save method has changed from:

Code: Select all
Public Overrides Sub Save()


To:

Code: Select all
Protected Overrides Sub iSave()
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

Re: New Business Logic Entities

Postby SBarnes » Wed Oct 30, 2019 4:36 pm

Thanks Mike
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1617
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 3 guests

cron