Hello Community,
I'm struggling with a form method event handler and was hoping to get some advice.
Form method VendEditInvoice.setLineFields() turns some fields non-editable and I need to change that.
This is my approach, but i'm getting the error below :
[PostHandlerFor(formStr(VendEditInvoice), formMethodStr(VendEditInvoice, setLineFields))]
public static void VendEditInvoice_SetLineFields_Post(XppPrePostArgs args)
{
FormRun form = args.getThis();
FormStringControl scPurchParmLineItemId = form.design().controlName(formControlStr(VendEditInvoice, PurchParmLine_ItemId));
scPurchParmLineItemId.allowEdit(true);
}
Error : The instance method designated by argument does not exist
The method does exist, but for some reason it does not seem to qualify as a instance method although it is not static.
Any idea how to get this to work or a work around to achieve the goal ?
Thanks
Darrell