I want to disable the sales order subform in sales order form .
if "Disable" Then CurrPage.SalesLines.Page.Editable(False);
I inserted the code on the following triggers : OnOpenPage, OnAfterGetRecord, OnNewRecord, OnModifyRecord, OnAfterGetCurrRecord.
But the subform is still enabled.
Should I insert the code somewhere else?
Thank you
*This post is locked for comments