Page 1 of 1

.NET Application - CreateBusinessLogic<SalesOrder>()

PostPosted: Thu Dec 04, 2014 3:11 pm
by mribbons
Hi Mike,
One of my Jiwa clients has recently gone from 7.0078 to 7.00.97

When I update my references, this line no longer compiles.

Code: Select all
this.jiwaOrder = JiwaFinancials.Jiwa.JiwaApplication.Manager.Instance.BusinessLogicFactory.CreateBusinessLogic<SalesOrder>();


BusinessLogicFactory.CreateBusinessLogic<>() seems to want an IJiwaClient now:
Code: Select all
public BusinessLogicType CreateBusinessLogic<BusinessLogicType>(IJiwaForm Client) where BusinessLogicType : IJiwaBusinessLogic, new();


Any suggestions on how I might populate it?

Re: .NET Application - CreateBusinessLogic<SalesOrder>()  Topic is solved

PostPosted: Thu Dec 04, 2014 4:38 pm
by Mike.Sheen
mribbons wrote:Hi Mike,
One of my Jiwa clients has recently gone from 7.0078 to 7.00.97

When I update my references, this line no longer compiles.

Code: Select all
this.jiwaOrder = JiwaFinancials.Jiwa.JiwaApplication.Manager.Instance.BusinessLogicFactory.CreateBusinessLogic<SalesOrder>();


BusinessLogicFactory.CreateBusinessLogic<>() seems to want an IJiwaClient now:
Code: Select all
public BusinessLogicType CreateBusinessLogic<BusinessLogicType>(IJiwaForm Client) where BusinessLogicType : IJiwaBusinessLogic, new();


Any suggestions on how I might populate it?


There was a new parameter introduced which is required to be supplied - but you can just pass null - i.e.:

Code: Select all
this.jiwaOrder = JiwaFinancials.Jiwa.JiwaApplication.Manager.Instance.BusinessLogicFactory.CreateBusinessLogic<SalesOrder>(null);


Mike

Re: .NET Application - CreateBusinessLogic<SalesOrder>()

PostPosted: Fri Dec 05, 2014 12:15 pm
by mribbons
Thanks.

I didn't run into any other issues with 7.00.97