CreateBusinessLogic arguments  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

CreateBusinessLogic arguments

Postby DannyC » Wed Jan 07, 2015 8:41 am

Hi,

I have a plugin executing via a ribbon button of sales orders.
I need to read a value from the debtor custom fields so I have the following lines to read the debtor information.
Code: Select all
      Dim Debtor As JiwaDebtors.Debtor = JiwaApplication.Manager.Instance.BusinessLogicFactory.CreateBusinessLogic(Of JiwaDebtors.Debtor)
      Debtor.Read(SalesOrderForm.SalesOrder.Debtor.DebtorID)


When I compile, I am getting an error on the first line about CreateBusinessLogic accepting different arguments. I've already searched the forums for an answer and there is information about passing in a (null) parameter but I have tried all kinds of variations of that line and still no luck. Can you give me the correct syntax?

Cheers

Danny
User avatar
DannyC
Senpai
Senpai
 
Posts: 635
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 29

Re: Get debtor custom field value from sales order  Topic is solved

Postby Mike.Sheen » Wed Jan 07, 2015 9:02 am

DannyC wrote:Can you give me the correct syntax?


Code: Select all
Dim Debtor As JiwaDebtors.Debtor = JiwaApplication.Manager.Instance.BusinessLogicFactory.CreateBusinessLogic(Of JiwaDebtors.Debtor)(Nothing)


You actually asked the exact same question here. :P
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: 2440
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 755

Re: Get debtor custom field value from sales order

Postby DannyC » Wed Jan 07, 2015 9:16 am

Aging affects memory - badly!
Thanks. I actually used the forum search to find CreateBusinessLogic and it didn't display that post but anyway, putting in the Nothing at the end makes it compile successfully.
Awesome.

Separate issue, can you check my forum question in the Jiwa 6 area http://forums.jiwa.com.au/viewtopic.php?f=14&t=269

Thanks for the fast response
User avatar
DannyC
Senpai
Senpai
 
Posts: 635
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 29

Re: CreateBusinessLogic arguments

Postby Scott.Pearce » Thu Jan 08, 2015 11:32 am

FYI - I have updated the topic heading of this thread to be more relevant to the question for future searches.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: Get debtor custom field value from sales order

Postby Mike.Sheen » Fri Jan 09, 2015 4:59 pm

DannyC wrote:I actually used the forum search to find CreateBusinessLogic and it didn't display that post


Use the Advanced search function!
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: 2440
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 755


Return to Technical and or Programming

Who is online

Users browsing this forum: Google [Bot] and 3 guests