I'm writing a plugin which gets the debtor categories 1 and 2 and displays them on the sales order header just below the branch.
It works when loading the Sales Order form.
It also works when creating a new sales order.
But it doesn't work when on the salesOrder.ReadEnd event, useful when using the previous/next buttons.
My text objects are not gettiing assigned correctly. They are ending up as null yet the syntax is identical in the other code blocks.
Can you critique my code and find out why the salesOrder.ReadEnd codeblock isn't setting the txtDebtorCat1 and txtDebtorCat2 text boxes to the value assigned? See line 121.
version 7.0.175.