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